forked from higlass/higlass
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc
114 lines (111 loc) · 3.37 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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
{
"parser": "babel-eslint",
"env": {
"browser": true,
"es6": true
},
"extends": [
"eslint:recommended",
"airbnb",
"plugin:react/recommended"
],
"plugins": [
"react"
],
"settings": {
"react": {
"pragma": "React"
},
"ecmascript": 6
},
"globals": {
"VERSION": false
},
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": 6
},
"rules": {
// TODOs:
"no-param-reassign": 0, // https://github.com/higlass/higlass/issues/483
"no-return-assign": 0, // https://github.com/higlass/higlass/issues/480
"no-undef": 0, // https://github.com/higlass/higlass/pull/506
"react/no-find-dom-node": 0, // https://github.com/higlass/higlass/issues/510
"react/require-default-props": 0, // https://github.com/higlass/higlass/issues/523
// Below, if it's turned off (0), we definitely do not care about the rule.
// If it's turned on (2), and you have a violation, either
// - fix it
// - eslint-disable just your line
// - or turn it off globally; we might be too picky.
// If it's a warning (1), we'd like to turn it either fully on or fully off, eventually.
"jsx-a11y/anchor-is-valid": 0,
"jsx-a11y/click-events-have-key-events": 0,
"jsx-a11y/no-noninteractive-element-interactions": 0,
"jsx-a11y/no-static-element-interactions": 0,
"jsx-a11y/role-has-required-aria-props": 0,
"class-methods-use-this": 0,
"comma-dangle": 0,
"guard-for-in": 0,
"jsx-quotes": 2,
"no-bitwise": 0,
"no-console": [2, { "allow": ["warn", "error"] }],
"no-constant-condition": 2,
"no-continue": 0,
"no-mixed-operators": 0,
"no-multi-spaces": [2, { "ignoreEOLComments": true }],
"no-plusplus": 0,
"no-prototype-builtins": 0,
"no-underscore-dangle": 0,
"no-unused-vars": [2, { "args": "none" }],
"prefer-destructuring": 0,
"react/destructuring-assignment": 0,
"react/display-name": 0,
"react/forbid-prop-types": 0,
"react/jsx-boolean-value": 0,
"react/jsx-closing-bracket-location": 2,
"react/jsx-curly-spacing": 2,
"react/jsx-equals-spacing": 2,
"react/jsx-filename-extension": [2, { "extensions": [".js", ".jsx"] }],
"react/jsx-handler-names": 0,
"react/jsx-indent": 0,
"react/jsx-indent-props": 0,
"react/jsx-key": 2,
"react/jsx-max-props-per-line": 2,
"react/jsx-no-bind": [0, {"ignoreRefs": true }],
"react/jsx-no-duplicate-props": 2,
"react/jsx-no-literals": 0,
"react/jsx-no-undef": 2,
"react/jsx-pascal-case": 2,
"react/jsx-sort-props": 2,
"react/jsx-uses-react": 2,
"react/jsx-uses-vars": 2,
"no-restricted-syntax": 0,
"react/no-danger": 1,
"react/no-deprecated": 2,
"react/no-did-mount-set-state": 1,
"react/no-did-update-set-state": 2,
"react/no-direct-mutation-state": 1,
"react/no-is-mounted": 2,
"react/no-multi-comp": 2,
"react/no-set-state": 0,
"react/no-string-refs": 1,
"react/no-unknown-property": 2,
"react/no-unused-prop-types": 0,
"react/no-unused-state": 0,
"react/prefer-es6-class": 2,
"react/prop-types": 1,
"react/react-in-jsx-scope": 1,
"react/self-closing-comp": 2,
"react/sort-comp": 1
},
"overrides": [
{
"files": ["test/**/*.js"],
"rules": {
"no-use-before-define": 0 // So viewconfs can be below the body of the test.
}
}
]
}