-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
47 lines (47 loc) · 1.15 KB
/
.eslintrc.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
module.exports = {
root: true,
env: {
browser: true,
node: true,
jest: true,
},
settings: {
'import/resolver': {
webpack: {
config: './config/webpack.common.js',
},
node: {
extensions: ['.js', '.mjs', '.json'],
},
},
},
parser: 'babel-eslint',
parserOptions: {
sourceType: 'module',
ecmaVersion: 9,
ecmaFeatures: {
impliedStrict: true,
jsx: true,
},
},
plugins: ['react', 'flowtype'],
extends: ['plugin:flowtype/recommended', 'airbnb', 'prettier'],
rules: {
'no-console': 0,
'global-require': 0,
'no-param-reassign': [2, { props: false }],
'no-underscore-dangle': [2, { allowAfterThis: true }],
'no-nested-ternary': 0,
'import/extensions': [
2,
'always',
{ js: 'never', mjs: 'never', json: 'never' },
],
'import/no-extraneous-dependencies': 0, // allow import devDependencies
'import/prefer-default-export': 0,
'react/jsx-filename-extension': 0, // enfore all .js extension
'react/prefer-stateless-function': 0,
'react/default-props-match-prop-types': 0,
'jsx-a11y/anchor-is-valid': 0,
},
};