forked from kofrasa/mingo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
51 lines (51 loc) · 1.5 KB
/
.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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
{
"env": {
"es6": true
},
"parser": "@typescript-eslint/parser",
"parserOptions": {
"sourceType": "module",
"project": "./tsconfig.lint.json"
},
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"plugin:@typescript-eslint/recommended-requiring-type-checking",
"plugin:import/typescript",
"plugin:import/errors",
"plugin:import/warnings",
"plugin:prettier/recommended"
],
"plugins": ["simple-import-sort", "import", "unused-imports"],
"rules": {
"no-console": "error",
"simple-import-sort/imports": "error",
"simple-import-sort/exports": "error",
"import/newline-after-import": "error",
"import/no-duplicates": "error",
"import/no-cycle": ["error", { "maxDepth": "∞" }],
"import/first": "error",
"sort-imports": "off",
"import/order": "off",
"typescript-eslint/no-unsafe-assignment": "off",
"@typescript-eslint/no-this-alias": [
"error",
{
"allowDestructuring": true, // Allow `const { props, state } = this`; false by default
"allowedNames": ["self"] // Allow `const self = this`; `[]` by default
}
],
"@typescript-eslint/no-unused-vars": "off",
"unused-imports/no-unused-imports-ts": "error",
"unused-imports/no-unused-vars-ts": [
"warn",
{
"vars": "all",
"varsIgnorePattern": "^_",
"args": "after-used",
"argsIgnorePattern": "^(_|options)$"
}
]
}
}