-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.eslintrc.json
More file actions
106 lines (101 loc) · 2.37 KB
/
Copy path.eslintrc.json
File metadata and controls
106 lines (101 loc) · 2.37 KB
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
{
"env": {
"browser": true,
"node": true,
"jest": true
},
"extends": [
"airbnb-base",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"plugin:prettier/recommended"
],
"parserOptions": {
"project": ["tsconfig.json"]
},
"plugins": ["@typescript-eslint", "import", "no-only-tests", "sort-exports"],
"settings": {
"import/parsers": {
"@typescript-eslint/parser": [".ts", ".tsx"]
},
"import/resolver": {
"node": {
"extensions": [".js", ".jsx", ".ts", ".tsx", ".json"]
},
"typescript": {
"alwaysTryTypes": true
}
}
},
"rules": {
"@typescript-eslint/consistent-type-exports": "error",
"@typescript-eslint/consistent-type-imports": "error",
"@typescript-eslint/no-use-before-define": 0,
"@typescript-eslint/no-unused-vars": [
1,
{
"argsIgnorePattern": "res|next|^err|_",
"ignoreRestSiblings": true
}
],
"@typescript-eslint/semi": 0,
"class-methods-use-this": 0,
"comma-dangle": ["error", "always-multiline"],
"import/exports-last": "error",
"import/extensions": [
"error",
"ignorePackages",
{
"js": "never",
"mjs": "never",
"jsx": "never",
"ts": "never",
"tsx": "never"
}
],
"import/first": "error",
"import/group-exports": "error",
"import/no-extraneous-dependencies": [
"error",
{
"devDependencies": ["**/*.test.ts"]
}
],
"import/no-unresolved": "error",
"import/order": [
"error",
{
"alphabetize": { "order": "asc", "orderImportKind": "asc" },
"groups": [["builtin", "external"]],
"newlines-between": "always"
}
],
"no-only-tests/no-only-tests": "error",
"no-unused-vars": [
1,
{
"argsIgnorePattern": "res|next|^err|_",
"ignoreRestSiblings": true
}
],
"no-use-before-define": 0,
"no-useless-constructor": 0,
"sort-imports": [
"error",
{
"ignoreDeclarationSort": true
}
],
"prettier/prettier": [
"error",
{
"trailingComma": "all",
"singleQuote": true,
"printWidth": 120,
"semi": false
}
],
"semi": 0,
"sort-exports/sort-exports": ["error", { "sortExportKindFirst": "value" }]
}
}