Fix Webpack, PostCSS and related configs
This commit is contained in:
parent
cc7f434e0f
commit
ee72421ecb
13 changed files with 886 additions and 1127 deletions
96
.eslintrc.yml
Normal file
96
.eslintrc.yml
Normal file
|
@ -0,0 +1,96 @@
|
|||
---
|
||||
|
||||
env:
|
||||
es6: true
|
||||
|
||||
extends:
|
||||
# https://github.com/airbnb/javascript
|
||||
- airbnb
|
||||
- eslint:recommended
|
||||
- prettier
|
||||
|
||||
parser: babel-eslint
|
||||
|
||||
rules:
|
||||
# best practices
|
||||
arrow-parens:
|
||||
- 2
|
||||
- as-needed
|
||||
semi:
|
||||
- 2
|
||||
- never
|
||||
class-methods-use-this: 0
|
||||
comma-dangle:
|
||||
- 2
|
||||
- always-multiline
|
||||
no-console:
|
||||
- 2
|
||||
no-unused-expressions: 0
|
||||
no-param-reassign:
|
||||
- 2
|
||||
- props: false
|
||||
no-useless-escape: 0
|
||||
func-names: 0
|
||||
quotes:
|
||||
- 2
|
||||
- single
|
||||
- allowTemplateLiterals: true
|
||||
no-underscore-dangle: 0
|
||||
object-curly-newline: 0
|
||||
function-paren-newline: 0
|
||||
operator-linebreak:
|
||||
- 2
|
||||
- after
|
||||
no-unused-vars:
|
||||
- 2
|
||||
- argsIgnorePattern: "^_"
|
||||
# jsx a11y
|
||||
jsx-a11y/no-static-element-interactions: 0
|
||||
jsx-a11y/anchor-is-valid:
|
||||
- 2
|
||||
- specialLink:
|
||||
- to
|
||||
# react
|
||||
react/prop-types: 0
|
||||
react/jsx-filename-extension: 0
|
||||
react/jsx-no-bind:
|
||||
- 2
|
||||
- ignoreRefs: true
|
||||
react/jsx-first-prop-new-line:
|
||||
- 2
|
||||
- never
|
||||
react/jsx-indent-props:
|
||||
- 2
|
||||
- 2
|
||||
react/jsx-closing-bracket-location:
|
||||
- 1
|
||||
- selfClosing: after-props
|
||||
nonEmpty: after-props
|
||||
react/prefer-stateless-function:
|
||||
- 1
|
||||
- ignorePureComponents: true
|
||||
react/jsx-boolean-value:
|
||||
- 2
|
||||
- always
|
||||
react/no-unused-prop-types: 0
|
||||
# import - wyłączone! jak pogodzić resolver webpack i react-native?
|
||||
import/no-unresolved: 0
|
||||
import/extensions: 0
|
||||
import/no-extraneous-dependencies: 0
|
||||
import/prefer-default-export: 0
|
||||
flowtype/delimiter-dangle:
|
||||
- 2
|
||||
- always-multiline
|
||||
flowtype/require-return-type:
|
||||
- 2
|
||||
- always
|
||||
- excludeArrowFunctions: true
|
||||
annotateUndefined: always
|
||||
|
||||
globals:
|
||||
document: true
|
||||
requestAnimationFrame: true
|
||||
window: true
|
||||
self: true
|
||||
fetch: true
|
||||
Headers: true
|
Loading…
Add table
Add a link
Reference in a new issue