-
Notifications
You must be signed in to change notification settings - Fork 16
/
.eslintrc.js
41 lines (41 loc) · 1.05 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
module.exports = {
extends: ["airbnb", "prettier", "prettier/flowtype", "prettier/react"],
parser: "babel-eslint",
plugins: ["jest", "flowtype"],
env: {
"jest/globals": true,
browser: true,
node: true
},
rules: {
quotes: [2, "double"],
"comma-dangle": 0,
"no-param-reassign": 0,
"global-require": 0,
"no-underscore-dangle": 0,
"arrow-parens": 0,
"jsx-a11y/href-no-hash": "off",
"import/no-extraneous-dependencies": 0,
"import/no-named-as-default": 0,
"import/prefer-default-export": 0,
"react/require-extension": 0,
"react/prop-types": 0,
"flowtype/define-flow-type": 1,
"flowtype/space-after-type-colon": [1, "always"],
"flowtype/space-before-type-colon": [1, "never"],
"flowtype/type-id-match": [1, "^([A-Z][a-z0-9]+)+Type$"],
"flowtype/use-flow-type": 1
},
settings: {
"import/resolver": {
webpack: {
config: {
resolve: {
extensions: [".js", ".jsx"],
modules: ["app", "node_modules"]
}
}
}
}
}
};