-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc
34 lines (34 loc) · 880 Bytes
/
.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
{
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended-type-checked",
"plugin:@typescript-eslint/stylistic-type-checked",
"plugin:prettier/recommended"
],
"ignorePatterns": ["**/*.js"],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": "latest",
"project": true,
"sourceType": "module"
},
"plugins": [
"@typescript-eslint",
"import",
"simple-import-sort",
"typescript-sort-keys"
],
"root": true,
"rules": {
// import
"import/first": "error",
"import/newline-after-import": "error",
"import/no-duplicates": "error",
// simple-import-sort
"simple-import-sort/exports": "error",
"simple-import-sort/imports": "error",
// typescript-sort-keys
"typescript-sort-keys/interface": "error",
"typescript-sort-keys/string-enum": "error"
}
}