-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
52 lines (52 loc) · 1.33 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
47
48
49
50
51
52
module.exports = {
parser: "@babel/eslint-parser",
plugins: [
"@babel",
"import"
],
env: {
"browser": true,
"node": true,
"jest": true,
},
extends: "airbnb-base",
globals: {
"__DEV__": true,
},
rules: {
"@babel/semi": "error",
"@babel/no-invalid-this": "error",
"@babel/object-curly-spacing": "off",
"@babel/quotes": "off",
"@babel/no-unused-expressions": "error",
"default-param-last": "off",
"import/no-extraneous-dependencies": "off",
"import/prefer-default-export": "off",
"import/extensions": "off",
"import/no-unresolved": "off",
"import/exports-last": "error",
"import/no-namespace": "error",
"no-underscore-dangle": "off",
"no-prototype-builtins": "off",
"no-class-assign": "error",
"no-param-reassign": "off",
"class-methods-use-this": "off",
"object-curly-newline": "off",
"guard-for-in": "off",
"consistent-return": "off",
"arrow-parens": ["error", "always"],
"no-restricted-syntax": ["off", "ForInStatement"],
"prefer-destructuring": ["error", {
AssignmentExpression: {"array": true, "object": true }
}],
"quotes": ["warn", "single", {
allowTemplateLiterals: true
}],
"padded-blocks": ["warn", {
classes:"always"
}],
"no-unused-vars": ["error", {
args: "none"
}]
}
}