-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
46 lines (45 loc) · 1.16 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
var path = require('path');
module.exports = {
parser: "babel-eslint",
parserOptions: {
ecmaFeatures: { legacyDecorators: true }
},
extends: "airbnb",
rules: {
"class-methods-use-this": 0,
"comma-dangle": ["error", "only-multiline"],
"import/no-unresolved": ['error', { commonjs: true, caseSensitive: true }],
},
overrides: [
{
"files": ["*.js"],
"rules": {
'consistent-return': 'off',
'arrow-parens': 'off',
'arrow-body-style': 'off',
'import/no-extraneous-dependencies': 'off',
'import/prefer-default-export': 'off',
'react/jsx-filename-extension': 'off',
'react/no-array-index-key': 'off',
'react/prop-types': 'off',
'react/button-has-type': 'off',
'react/destructuring-assignment': 'off',
'react/jsx-one-expression-per-line': 'off'
}
}
],
env: {
browser: true
},
settings: {
'import/resolver': {
alias: {
map: [
['_src', path.resolve(__dirname, './src')],
// ['_common', path.resolve(__dirname, './src/common')],
],
extensions: ['.js', '.less', '.jsx']
}
}
}
};