forked from petermoresi/pivot-crossfilter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
87 lines (87 loc) · 2.6 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
87
module.exports = {
"extends": "airbnb",
"plugins": [
"react",
"jsx-a11y",
"import"
],
"rules": {
/* off because we dont agree with AirBnB's settings */
"radix": "off",
"arrow-body-style": "off",
"react/no-array-index-key": "warn",
"arrow-parens": "off",
"brace-style": "warn",
"react/jsx-no-target-blank": "warn",
"camelcase": "off", // we use camelCase, but we also break it in places, e.g. myFn2_subFn()
"class-methods-use-this": "off",
"comma-dangle": "off",
"func-names": "off",
"import/newline-after-import": "warn",
"indent": ["warn", "tab"],
"jsx-a11y/href-no-hash": "warn",
"jsx-a11y/img-has-alt": "warn",
"max-depth": ["warn", 4],
"max-len": ["warn", 140],
"max-nested-callbacks": ["warn", 4],
"no-continue": "off",
"no-confusing-arrow": "off",
"no-param-reassign": "off",
"no-plusplus": "off",
"no-tabs": "off",
"no-underscore-dangle": "off",
"no-unused-vars": "warn",
"no-useless-constructor": "warn",
"no-useless-return": "off",
"prefer-template": "off",
"quote-props": "warn",
"react/jsx-closing-bracket-location": "warn",
"react/jsx-first-prop-new-line": "off",
"react/jsx-indent": ["warn", "tab"],
"react/jsx-indent-props": ["warn", "tab"],
"react/no-multi-comp": "warn",
"react/prefer-stateless-function": "warn",
"react/self-closing-comp": "warn",
"react/sort-comp": "warn",
"space-in-parens": "off",
"space-unary-ops": "off",
"spaced-comment": "off",
/* broken - seems to cause errors in linting */
"no-multi-assign": "off",
/* off because the warnings are more noise than signal i.e. we might switch them on sometime*/
"comma-spacing": "off",
"consistent-return": "warn",
"import/extensions": "warn",
"import/first": "warn",
"import/no-named-as-default": "off",
"jsx-a11y/label-has-for": "warn",
"jsx-a11y/no-static-element-interactions": "warn",
"jsx-quotes": "off",
"key-spacing": "off",
"keyword-spacing": "off",
"no-extra-bind": "warn",
"no-trailing-spaces": "warn",
"no-use-before-define": "warn",
"object-curly-spacing": "off",
"object-property-newline": "off",
"object-shorthand": "off",
"prefer-arrow-callback": "off",
"prefer-const": "off",
"quotes": "off",
"react/jsx-curly-spacing": "warn",
"react/jsx-no-bind": "warn",
"react/jsx-space-before-closing": "warn",
"react/jsx-tag-spacing": "warn",
"react/no-unescaped-entities": "warn",
"react/prop-types": "off",
"react/forbid-prop-types": "warn",
"space-before-blocks": "warn",
"space-before-function-paren": "off",
"space-comment": "off",
"space-infix-ops": "off",
},
"globals": {
"window": true,
"document": true,
}
};