-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
86 lines (86 loc) · 2.44 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
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
module.exports = {
"parser": "babel-eslint",
"env": {
"es6": true,
"node": true
},
"extends": "airbnb",
"globals": {
"Atomics": "readonly",
"SharedArrayBuffer": "readonly"
},
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": 2018,
"sourceType": "module",
},
"plugins": [
"react"
],
"rules": {
"no-tabs": 0,
"indent":0,
"semi": 0,
"no-const-assign": "warn",
"no-this-before-super": "warn",
"no-undef": "error",
"no-unreachable": "warn",
"no-unused-vars": "warn",
"constructor-super": "warn",
"valid-typeof": "warn",
"react/prefer-stateless-function":0,
"react/jsx-filename-extension": [1, { "extensions": [".js", ".jsx"] }],
"no-multiple-empty-lines": 0,
"no-use-before-define": ["error", { "functions": true, "classes": true, "variables": false }],
"object-curly-newline": ["warn", {
"ObjectExpression": "never",
"ObjectPattern": { "multiline": true },
"ImportDeclaration": "never",
"ExportDeclaration": { "multiline": true, "minProperties": 3 }
}],
"react/self-closing-comp": ["warn", {
"component": true,
"html": true
}],
"no-trailing-spaces": 0,
"comma-dangle": ["error", {
"arrays": "never",
"objects": "ignore",
"imports": "never",
"exports": "never",
"functions": "ignore"
}],
"react/react-in-jsx-scope": 0,
"react/jsx-indent": 0,
"arrow-body-style": 0,
"use_spaces": 0,
"react/destructuring-assignment": 0,
"react/prop-types": 0,
"object-curly-spacing": 0,
"key-spacing": 0,
"react/jsx-indent-props": 0,
"global-require": 0,
"react/jsx-boolean-value": 0,
"react/jsx-closing-bracket-location": 0,
"object-curly-newline": 0,
"react/jsx-curly-brace-presence": 0,
"react/jsx-equals-spacing": 0,
"quotes": 0,
"padded-blocks": 0,
"react/no-unescaped-entities": 0,
"arrow-parens": 0,
"no-unneeded-ternary": 1,
"react/jsx-closing-tag-location": 1,
"prefer-const": 1,
"react/no-unused-state": 1,
"quote-props": 0,
"no-mixed-spaces-and-tabs": 0,
"max-len": 0,
"react/jsx-one-expression-per-line": 0,
"react/no-access-state-in-setstate": 0,
"no-plusplus": 0,
"react/prop-types": 0
}
};