-
-
Notifications
You must be signed in to change notification settings - Fork 28
/
Copy patheslint.config.mjs
50 lines (42 loc) · 1.24 KB
/
eslint.config.mjs
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
import typescriptEslint from "@typescript-eslint/eslint-plugin";
import simpleImportSort from "eslint-plugin-simple-import-sort";
import tsParser from "@typescript-eslint/parser";
export default [{
ignores: [
"!**/.*",
"**/coverage/",
"**/junit/",
"**/dist/",
"**/mobiles/",
"**/node_modules/*",
],
files: ['**/*.ts', '**/*.tsx'],
plugins: {
"@typescript-eslint": typescriptEslint,
"simple-import-sort": simpleImportSort,
},
languageOptions: {
parser: tsParser,
parserOptions: {
project: "./tsconfig.json",
},
},
rules: {
"@typescript-eslint/no-restricted-types": "error",
"@typescript-eslint/no-explicit-any": "warn",
"max-len": ["warn", {
code: 80,
tabWidth: 2,
comments: 80,
ignoreComments: true,
ignoreTrailingComments: true,
ignoreUrls: true,
ignoreStrings: true,
ignoreTemplateLiterals: true,
ignoreRegExpLiterals: true,
}],
"@typescript-eslint/no-unused-vars": ["warn"],
"simple-import-sort/imports": "error",
"simple-import-sort/exports": "error",
},
}];