-
Notifications
You must be signed in to change notification settings - Fork 73
/
.eslintrc.js
46 lines (45 loc) · 993 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
40
41
42
43
44
45
46
const path = require("path");
module.exports = {
root: true,
parser: "babel-eslint",
plugins: ["prettier", "import"],
rules: {
"no-extra-bind": 2,
"no-else-return": 2,
"no-useless-return": 2,
"no-var": 2,
"prettier/prettier": 2,
"import/order": [
"error",
{
"newlines-between": "always",
groups: [
"builtin",
"external",
"internal",
"parent",
"sibling",
"index"
]
}
],
"import/no-unresolved": 2,
"import/export": 2,
"import/no-extraneous-dependencies": 2,
"import/first": 2
},
settings: {
"import/resolver": {
[path.resolve(
__dirname,
"./packages/react-native-dom/scripts/eslint-module-resolver-haste"
)]: {},
node: {
paths: [
path.resolve(__dirname, "node_modules"),
path.resolve(__dirname, "./packages/react-native-dom/node_modules")
]
}
}
}
};