-
Notifications
You must be signed in to change notification settings - Fork 3
/
.eslintrc.js
32 lines (31 loc) · 894 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 = {
// parserOptions: { ecmaVersion: 2017 },
extends: ['eslint:recommended', 'plugin:react/recommended'],
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',
'no-console': 0,
'linebreak-style': 0,
'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,
es6: true,
},
};
export default eslintrc;