-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy path.eslintrc.js
More file actions
29 lines (29 loc) · 769 Bytes
/
Copy path.eslintrc.js
File metadata and controls
29 lines (29 loc) · 769 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
module.exports = {
plugins: [
"prettier",
"flowtype",
"react",
"eslint-comments",
"flowtype-errors"
],
extends: [
"eslint:recommended",
"prettier",
"plugin:react/recommended",
"plugin:eslint-comments/recommended"
],
parser: "babel-eslint",
env: {
es6: true,
node: true
},
rules: {
"prettier/prettier": "error", // Prettier errors (autofixes) are now ESLint errors (autofixes)
"flowtype/define-flow-type": "error", // Play nice with Flow identifiers
"flowtype-errors/show-errors": "error", // Flow errors are now ESLint errors
"react/prop-types": "off" // We use Flow rather than PropTypes
},
overrides: [
{ files: ["**/__tests__/**/*.js", "**/*.test.js"], env: { jest: true } }
]
};