forked from man-group/dtale
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
97 lines (97 loc) · 3.22 KB
/
.eslintrc.json
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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
{
"env": {
"browser": true,
"node": true,
"jest": true
},
"globals": {
"Promise": true
},
"parser": "babel-eslint",
"parserOptions": {
"ecmaVersion": 6,
"ecmaFeatures": {
"jsx": true,
"impliedStrict": true
},
"sourceType": "module"
},
"rules": {
"arrow-body-style": ["error", "as-needed"],
"babel/no-invalid-this": "error",
"block-scoped-var": "error",
"camelcase": ["error", {"properties": "never"}],
"complexity": "error",
"consistent-this": ["error", "me"],
"consistent-return": "error",
"curly": "error",
"dot-notation": "error",
"lodash/chaining": "off",
"lodash/import-scope": "off",
"lodash/prefer-constant": "off",
"lodash/prefer-includes": "error",
"lodash/prefer-lodash-chain": "off",
"lodash/prefer-lodash-method": "off",
"lodash/path-style": ["error", "as-needed"],
"max-len": ["error", {"code": 120}],
"max-lines": ["error", 300],
"max-params": ["error", 8],
"max-statements": ["error", 25],
"max-statements-per-line": ["error", {"max": 2}],
"new-cap": "error",
"no-alert": "error",
"no-console": ["error", {"allow": ["error"]}],
"no-constant-condition": ["error", {"checkLoops": false}],
"no-eq-null": "error",
"no-eval": "error",
"no-extra-label": "error",
"no-extra-bind": "error",
"no-extend-native": "error",
"no-fallthrough": "error",
"no-invalid-this": "off",
"no-lone-blocks": "error",
"no-lonely-if": "error",
"no-mixed-spaces-and-tabs": "off",
"no-negated-condition": "error",
"no-return-assign": "error",
"no-restricted-globals": ["error", "fetch", "self", "module"],
"no-self-compare": "error",
"no-sequences": "error",
"no-unused-expressions": "error",
"no-unused-vars": ["error", {"args": "all", "argsIgnorePattern": "^_"}],
"no-useless-computed-key": "error",
"no-useless-escape": "error",
"no-use-before-define": "error",
"no-unreachable": "error",
"no-useless-call": "error",
"no-useless-concat": "error",
"no-void": "error",
"no-with": "error",
"prefer-const": ["error", {"destructuring": "all"}],
"prefer-rest-params": "error",
"prefer-spread": "error",
"prettier/prettier": ["error", {"trailingComma": "es5", "printWidth": 120, "jsxBracketSameLine": true}],
"promise/catch-or-return": "error",
"react/no-unused-prop-types": "error",
"react/jsx-key": "error",
"strict": "error",
"tape/no-ignored-test-files": ["error", {"files": ["static/__tests__/**/*test.js", "static/__tests__/**/*test.jsx"]}]
},
"plugins": [
"lodash",
"promise",
"react",
"tape",
"prettier",
"flowtype",
"babel"
],
"extends": [
"eslint:recommended",
"plugin:lodash/recommended",
"plugin:react/recommended",
"plugin:tape/recommended",
"prettier",
"plugin:flowtype/recommended"
]
}