-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.eslintrc.js
39 lines (38 loc) · 994 Bytes
/
.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
module.exports = {
env: {
browser: true,
es6: true,
"react-native/react-native": true
},
extends: [
"standard",
"plugin:flowtype/recommended",
"plugin:react/recommended",
"prettier",
"prettier/flowtype",
"prettier/react",
"prettier/standard",
"plugin:react-native/all"
],
plugins: ["flowtype", "react","react-native", "prettier", "standard"],
parserOptions: {
sourceType: "module",
ecmaFeatures: {
jsx: true
}
},
rules: {
"jsx-a11y/href-no-hash": "off",
"jsx-a11y/anchor-is-valid": ["warn", { "aspects": ["invalidHref"] }]
"prettier/prettier": "error"
},
settings: {
react: {
createClass: "createReactClass", // Regex for Component Factory to use,
// default to "createReactClass"
pragma: "React", // Pragma to use, default to "React"
version: "16.0", // React version, default to the latest React stable release
flowVersion: "0.53" // Flow version
}
}
};