-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy path.eslintrc.js
More file actions
41 lines (38 loc) · 888 Bytes
/
.eslintrc.js
File metadata and controls
41 lines (38 loc) · 888 Bytes
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
module.exports = {
extends: [
"standard",
// "standard-jsx",
"standard-react",
"plugin:flowtype/recommended",
"prettier",
],
parser: "@babel/eslint-parser",
parserOptions: {
ecmaFeatures: {
jsx: true,
},
},
plugins: ["flowtype", "import", "node", "promise", "react"],
globals: {
$: true,
},
rules: {
eqeqeq: "off",
// TODO: eventually enable/fix the following rules:
"dot-notation": "off",
"prefer-const": "off",
"no-case-declarations": "off",
"no-prototype-builtins": "off",
"no-use-before-define": "off",
"no-useless-return": "off",
"no-var": "off",
"prefer-promise-reject-errors": "off",
"react/jsx-uses-react": 1,
"react/jsx-uses-vars": 1,
"react/no-unused-prop-types": "off",
"flowtype/no-types-missing-file-annotation": "off",
},
env: {
browser: true,
},
}