-
Notifications
You must be signed in to change notification settings - Fork 86
/
.eslintrc
62 lines (56 loc) · 1.61 KB
/
.eslintrc
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
53
54
55
56
57
58
59
60
61
62
{
"extends": [
"eslint:recommended",
"airbnb-base",
"plugin:react/recommended",
"plugin:@typescript-eslint/eslint-recommended"
],
"plugins": ["react", "@typescript-eslint"],
"parser": "@typescript-eslint/parser",
"env": {
"browser": true,
"es6": true,
"jquery": true
},
"rules": {
"camelcase": "off",
"comma-dangle": [1, "only-multiline"],
"class-methods-use-this": 0,
"func-names": [1, "never"],
"import/extensions": 0,
"import/no-unresolved": 0,
"key-spacing": [1, {
"singleLine": { "beforeColon": false,"afterColon": true },
"multiLine": { "beforeColon": false,"afterColon": true, "align": "value" }
}],
"max-len": [1, { "code": 121, "ignoreComments": true }],
"no-alert": 0,
"no-underscore-dangle": 0,
"no-unused-vars": "off",
"@typescript-eslint/no-unused-vars": ["error"],
"no-use-before-define": "off",
"@typescript-eslint/no-use-before-define": ["error"],
"no-else-return": 0,
"no-param-reassign": ["error", { "props": false }],
"radix": [2, "as-needed"],
"react/display-name": 0,
"react/prop-types": [1, { "skipUndeclared": true }],
"space-before-function-paren": [1, "always"],
"arrow-parens": ["error", "as-needed", { "requireForBlockBody": true }],
"max-classes-per-file": ["error", 3],
"prefer-destructuring": ["error", {"object": true, "array": false}],
"curly": [1, "all"]
},
"globals": {
"Application": true,
"I18n": true,
"modulejs": true,
"moment": true,
"node": true
},
"settings": {
"react": {
"version": "16.14.0"
}
}
}