This repository has been archived by the owner on Apr 14, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.eslintrc.js
57 lines (57 loc) · 1.59 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
53
54
55
56
57
module.exports = {
"env": {
"browser": true,
"commonjs": true,
"es6": true,
"mocha": true,
"node": true,
"jest/globals": true
},
"extends": [
"eslint:recommended",
/* Avoid complaints about unused React import. */
"plugin:react/recommended"
],
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": true,
"sourceType": "module"
},
"plugins": [
"react", "jest"
],
"rules": {
"indent": ["error", 4],
"react/jsx-uses-vars": ["error"],
"no-duplicate-imports": ["error"],
"linebreak-style": [ "error", "unix" ],
"quotes": [ "error", "single" ],
"semi": [ "error", "always" ],
"no-extra-semi": ["error"],
"no-tabs": ["error"],
"block-scoped-var": ["warn"],
"camelcase": ["warn"],
"comma-spacing": ["warn"],
"curly": ["warn"],
"default-case": ["warn"],
"dot-location": ["warn"],
"dot-notation": ["warn"],
"eqeqeq": ["warn"],
"no-eq-null": ["warn"],
"no-irregular-whitespace": ["warn"],
"no-lonely-if": ["warn"],
"no-template-curly-in-string": ["warn"],
"space-before-function-paren": [ "warn", "never" ],
"space-before-blocks": [ "warn", "always" ],
"no-trailing-spaces": [ "warn" ],
"no-var": ["warn"],
"no-unused-vars": [1, {"args": "all", "argsIgnorePattern": "^_"}]
},
"settings": {
"react": {
"version": "detect"
}
}
};