-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
32 lines (31 loc) · 887 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
31
32
const eslintrc = {
extends: 'airbnb',
plugins: ['react', 'jsx-a11y', 'import'],
settings: {
'import/core-modules': [
'react',
'react-dom',
'react-router-dom',
'config',
'react-helmet',
'prop-types',
],
},
rules: {
'react/jsx-filename-extension': [1, { extensions: ['.js', '.jsx'] }],
'react/forbid-prop-types': 0,
'no-shadow': 'warn',
'import/extensions': [
2,
'never',
{ 'web.js': 'never', json: 'never', css: 'always' },
],
'import/no-extraneous-dependencies': [2, { devDependencies: true }],
'import/no-unresolved': [2, { ignore: ['antd'] }],
'no-underscore-dangle': ['error', { allow: ['_id'] }],
},
env: {
browser: true,
},
};
module.exports = eslintrc;