-
-
Notifications
You must be signed in to change notification settings - Fork 60
/
.eslintrc.json
35 lines (35 loc) · 941 Bytes
/
.eslintrc.json
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
{
"root": true,
"plugins": ["prettier", "@babel/development", "import"],
"extends": "eslint:recommended",
"parser": "@babel/eslint-parser",
"rules": {
"prettier/prettier": "error"
},
"env": { "node": true, "es6": true },
"overrides": [
{
"files": ["**/*.ts"],
"parser": "@typescript-eslint/parser",
"plugins": ["@typescript-eslint"],
"rules": {
"no-unused-vars": "off",
"@typescript-eslint/no-unused-vars": "error"
}
},
{
"files": ["packages/*/src/**/*.{js,ts}"],
"rules": {
"@babel/development/no-undefined-identifier": "error",
"@babel/development/no-deprecated-clone": "error",
"import/no-extraneous-dependencies": "error",
"eqeqeq": ["error", "always", { "null": "ignore" }],
"guard-for-in": "error"
}
},
{
"files": ["packages/*/test/**/*.js"],
"env": { "jest": true }
}
]
}