-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc
80 lines (78 loc) · 2.81 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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
{
"env": {
"browser": true,
"es6": true,
"jest": true,
"node": true
},
"extends": ["eslint:recommended", "plugin:prettier/recommended", "plugin:react/recommended"],
"parser": "babel-eslint",
"parserOptions": {
"ecmaFeatures": {
"experimentalObjectRestSpread": true,
"jsx": true
},
"ecmaVersion": 2017,
"sourceType": "module"
},
"settings": {
"react": {
"createClass": "createReactClass",
"pragma": "React",
"version": "16.5"
},
"propWrapperFunctions": [ "forbidExtraProps" ]
},
"plugins": ["react", "import"],
"rules": {
"array-bracket-spacing": ["error", "never"],
"arrow-parens": ["error", "as-needed"],
"arrow-spacing": ["error", { "before": true, "after": true }],
"block-spacing": ["warn"],
"brace-style": ["error", "1tbs", { "allowSingleLine": true }],
"comma-dangle": ["error", "never"],
"comma-spacing": ["warn"],
"computed-property-spacing": ["error", "never"],
"eqeqeq": ["error", "smart"],
"func-call-spacing": ["error", "never"],
"key-spacing": ["error"],
"keyword-spacing": ["error", { "before": true, "after": true }],
"no-console": ["error", { "allow": ["count", "error", "info", "log", "warn", "table"] }],
"no-debugger": ["warn"],
"no-mixed-spaces-and-tabs": ["error", "smart-tabs"],
"no-multi-spaces": ["error", { "ignoreEOLComments": false }],
"no-multiple-empty-lines": ["error", { "max": 1 }],
"no-unused-vars": ["warn", { "vars": "local", "args": "none", "ignoreRestSiblings": true }],
"no-var": ["error"],
"object-curly-spacing": ["error", "always"],
"prefer-arrow-callback": ["error"],
"prefer-const": ["error", { "destructuring": "all" }],
"prefer-destructuring": ["error"],
"quote-props": ["error", "as-needed"],
"quotes": ["error", "single", { "avoidEscape": true }],
"semi": ["warn", "always"],
"space-before-blocks": ["error"],
"space-before-function-paren": ["error", {"anonymous": "always", "named": "never", "asyncArrow": "always"}],
"space-in-parens": ["error", "never"],
"space-infix-ops": ["error"],
"import/first": ["error"],
"import/newline-after-import": "error",
"import/no-duplicates": "error",
"import/no-named-default": "error",
"import/order": ["error", {
"groups": [
["builtin", "external"],
["index", "sibling", "parent", "internal"]
],
"newlines-between": "always"
}
],
"jsx-quotes": ["error", "prefer-double"],
"react/jsx-curly-spacing": [2, "never", {"spacing": { "objectLiterals": "never" }}],
"react/jsx-equals-spacing": [2, "never"],
"react/jsx-key": ["error"],
"react/jsx-tag-spacing": ["error", { "beforeSelfClosing": "always" }],
"react/jsx-wrap-multilines": ["error"],
"react/prop-types": ["error"]
}
}