-
Notifications
You must be signed in to change notification settings - Fork 29
/
.eslintrc.json
82 lines (81 loc) · 2.15 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
{
"extends": [
"eslint:recommended",
"plugin:import/errors",
"plugin:react/recommended",
"plugin:jsx-a11y/recommended"
],
"plugins": ["react", "import", "jsx-a11y", "@babel"],
"settings": {
"react": {
"version": "detect"
}
},
"rules": {
"@babel/no-invalid-this": 1,
"block-scoped-var": 2,
"camelcase": 2,
"quote-props": ["warn", "as-needed"],
"no-useless-computed-key": ["error", { "enforceForClassMembers": true }],
"consistent-return": 1,
"curly": 2,
"eol-last": [ "off" ],
"eqeqeq": 2,
"guard-for-in": 2,
"indent": [ "error", "tab", { "SwitchCase": 1 } ],
"linebreak-style": [ "error", "unix" ],
"max-params": [ 2, 5 ],
"new-cap": 2,
"no-array-constructor": 2,
"no-async-promise-executor": 2,
"no-bitwise": 2,
"no-caller": 2,
"no-extend-native": 2,
"no-extra-parens": 1,
"no-global-assign": 2,
"no-implicit-globals": 2,
"no-invalid-this": 0,
"no-irregular-whitespace": 2,
"no-iterator": 2,
"no-loop-func": 2,
"no-misleading-character-class": 2,
"no-mixed-spaces-and-tabs": ["off", "smart-tabs"],
"no-new": 2,
"no-plusplus": 0,
"no-restricted-globals": ["error", "event"],
"no-undef": 2,
"no-unused-vars": 2,
"no-use-before-define": [ 2, { "functions": false } ],
"no-var": 2,
"one-var": [ 1, "never" ],
"one-var-declaration-per-line": 1,
"prefer-const": 1,
"quotes": [ 0, "single", { "allowTemplateLiterals": true } ],
"radix": 2,
"require-atomic-updates": 2,
"require-await": 2,
"space-before-function-paren": [ "error", { "anonymous": "always", "named": "never", "asyncArrow": "always" } ],
"strict": [1, "never"],
"valid-typeof": 2,
"wrap-iife": [ 2, "any" ]
},
"parser": "@babel/eslint-parser",
"parserOptions": {
"ecmaVersion": 6,
"allowImportExportEverywhere": true,
"requireConfigFile": false,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true
},
"babelOptions": {
"presets": ["@babel/preset-react"]
}
},
"env": {
"es6": true,
"browser": true,
"node": true,
"commonjs": true
}
}