-
Notifications
You must be signed in to change notification settings - Fork 5
/
.eslintrc.js
32 lines (32 loc) · 1.04 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
module.exports = {
env: {
browser: true,
es6: true,
node: true,
},
extends: ['airbnb', 'poi-plugin', 'prettier', 'prettier/react'],
parser: 'babel-eslint',
plugins: ['import', 'react', 'prettier'],
rules: {
semi: ['error', 'never'],
'import/no-unresolved': [2, { ignore: ['views/.*'] }],
'react/jsx-filename-extension': 'off',
'no-underscore-dangle': ['error', { allow: ['__'], allowAfterThis: true }],
'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',
'prettier/prettier': 'error',
'react/destructuring-assignment': 'off',
},
settings: {
'import/core-modules': ['react-overlays'],
},
}