-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc
50 lines (50 loc) · 1.29 KB
/
.eslintrc
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
{
"extends": ["eslint:recommended", "prettier"],
"overrides": [
{
"files": ["*.mjs", "*.js", "*.c.js"],
"env": {
"browser": true,
"node": true,
"es6": true
},
"rules": {
"import/first": "warn",
"import/newline-after-import": "warn",
"import/no-duplicates": "warn",
"simple-import-sort/imports": "warn",
"simple-import-sort/exports": "warn",
"prettier/prettier": "warn"
}
},
{
"files": ["*.ts", "*.d.ts"],
"parser": "@typescript-eslint/parser",
"plugins": ["typescript-sort-keys", "sort-destructure-keys"],
"extends": [
"plugin:import/typescript",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"plugin:typescript-sort-keys/recommended"
],
"rules": {
"typescript-sort-keys/interface": "error",
"typescript-sort-keys/string-enum": "error",
"sort-destructure-keys/sort-destructure-keys": "error"
}
}
],
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module"
},
"plugins": ["import", "simple-import-sort", "prettier"],
"rules": {
"import/first": "error",
"import/newline-after-import": "error",
"import/no-duplicates": "error",
"simple-import-sort/imports": "error",
"simple-import-sort/exports": "error",
"prettier/prettier": "warn"
}
}