-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
96 lines (91 loc) · 2.65 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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
{
"extends": [
"airbnb",
"plugin:react/recommended",
"plugin:flowtype/recommended",
"plugin:jest/recommended",
"plugin:jsx-a11y/recommended"
],
"parser": "babel-eslint",
"parserOptions": {
"ecmaVersion": 7, // specify version of JavaScript
"sourceType": "module", // how code is arranged
"ecmaFeatures": {
"jsx": true
}
},
"plugins": [
"react",
"babel",
"import",
"jest",
"jsx-a11y",
"flowtype"
],
"env": {
"browser": true,
"es6": true,
"node": true
},
"rules": {
// JS overrides
"quotes": [ 2, "single" ],
"no-console": 0,
"max-len": [2, 300, 4],
"linebreak-style": "off",
"padded-blocks": 0,
"comma-dangle": 0,
"class-methods-use-this": 0,
"generator-star-spacing": [1, "after"],
"array-bracket-spacing": 1,
"no-await-in-loop": 1,
"object-shorthand": 1,
"prefer-destructuring": 0,
"space-unary-ops": 0,
"no-underscore-dangle": 0,
"arrow-body-style": 0,
"no-return-assign": 0,
//babel
"babel/new-cap": 0,
"babel/arrow-parens": 0,
"babel/func-params-comma-dangle": 0,
//react
"react/display-name": 0, // Turn on later
"react/jsx-uses-react": 2,
"react/jsx-uses-vars": 2,
"react/jsx-no-bind": 2,
"react/jsx-curly-spacing": [2, "always", {"allowMultiline": true}],
"react/prefer-stateless-function": 0, // turn on later
"react/forbid-prop-types": 0,
"react/require-default-props": 0,
"react/no-unused-prop-types": 0,
"react/jsx-filename-extension": 0,
"react/no-array-index-key": 0,
"react/jsx-wrap-multilines": 0,
"react/sort-comp": 0,
"react/no-unused-state": 0,
"react/jsx-curly-brace-presence": 0,
"react/jsx-indent": 0,
"react/prop-types": 0,
"react/destructuring-assignment": 0,
"react/no-access-state-in-setstate": 0,
"jsx-a11y/label-has-associated-control": 0,
//import
"import/no-unresolved": 0,
"import/no-extraneous-dependencies": 1,
"import/extensions": 1,
"import/newline-after-import": 0,
"import/prefer-default-export": 0,
//jsx
"jsx-a11y/label-has-for": 0,
"jsx-a11y/href-no-hash": "off", // remove with aibnb updated,
"jsx-a11y/anchor-is-valid": 0, // turn on later
"jsx-a11y/click-events-have-key-events": 0, // turn on later
"jsx-a11y/mouse-events-have-key-events": 0, // turn on later
//css
// "css-modules/no-unused-class": [2, { "camelCase": true }], // turn on later
"css-modules/no-unused-class": 0, // turn off later
"css-modules/no-undef-class": 0 // turn off later
// "css-modules/no-undef-class": [2, { "camelCase": true }] // turn on later
}
}