-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy path.eslintrc.js
30 lines (30 loc) · 1014 Bytes
/
.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
module.exports = {
env: {
browser: true,
es6: true,
node: true,
},
extends: ['airbnb', 'prettier', 'prettier/react', 'poi-plugin'],
parser: 'babel-eslint',
plugins: ['import', 'react', 'prettier'],
rules: {
'import/no-unresolved': ['error', { ignore: ['views/.*'] }],
'react/jsx-filename-extension': 'off',
'import/extensions': ['error', { es: 'never' }],
'import/no-extraneous-dependencies': 'off',
'comma-dangle': ['error', 'always-multiline'],
camelcase: 'off',
'no-confusing-arrow': 'off',
'react/require-default-props': 'off',
'no-console': ['error', { allow: ['warn', 'error'] }],
'function-paren-newline': 'off',
'jsx-a11y/click-events-have-key-events': 'off',
'react/no-multi-comp': 'off',
'react/forbid-prop-types': 'off',
'no-underscore-dangle': 'off',
'prettier/prettier': 'error',
'react/static-property-placement': 'off',
'react/state-in-constructor': 'off',
'import/prefer-default-export': 'off',
},
}