forked from reactabular/reactabular
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
32 lines (32 loc) · 1.12 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
module.exports = {
"extends": "airbnb",
"parser": "babel-eslint",
"env": {
"browser": true,
"jasmine": true,
"node": true
},
"plugins": [
"react"
],
"rules": {
"comma-dangle": ["error", "never"], // personal preference
"prefer-arrow-callback": 0, // mocha tests (recommendation)
"func-names": 0, // mocha tests (recommendation)
"import/extensions": 0, // skip import extensions
"import/no-extraneous-dependencies": 0, // monorepo setup
"import/no-unresolved": [1, { ignore: ['^reactabular'] }], // monorepo setup
"no-underscore-dangle": 0, // implementation detail (_highlights etc.)
"no-unused-expressions": 0, // chai
"no-use-before-define": 0, // personal preference
"react/forbid-prop-types": 0, // TODO: re-enable this later
"react/sort-comp": 0, // personal preference
"react/require-default-props": 0, // personal preference
"react/no-array-index-key": 0, // XXX: crashes, re-enable later
"react/no-multi-comp": 0, // personal preference
"jsx-a11y/no-static-element-interactions": 0 // personal preference
},
"globals": {
"jest": false
}
};