-
Notifications
You must be signed in to change notification settings - Fork 135
/
.eslintrc.json
33 lines (30 loc) · 876 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
{
"extends": ["plugin:@typescript-eslint/recommended", "prettier"],
"plugins": ["simple-import-sort", "n"],
"parserOptions": {
"project": "./tsconfig.json"
},
"env": {
"browser": false,
"node": true
},
"rules": {
"n/prefer-node-protocol": "error",
"simple-import-sort/imports": "error",
"simple-import-sort/exports": "error",
"import/no-extraneous-dependencies": 0,
"no-underscore-dangle": ["error", {"allow": ["_id"]}],
"@typescript-eslint/lines-between-class-members": ["error", "always", {"exceptAfterSingleLine": true}],
"@typescript-eslint/no-unused-vars": ["error", {"argsIgnorePattern": "^_"}]
},
"overrides": [
{
"files": ["*.js", "*.jsx"],
"extends": ["prettier"],
"parser": "@babel/eslint-parser",
"rules": {
"@typescript-eslint/no-var-requires": 0
}
}
]
}