-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.cjs
48 lines (48 loc) · 1.28 KB
/
.eslintrc.cjs
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
module.exports = {
parser: "@typescript-eslint/parser",
parserOptions: {
ecmaVersion: "latest",
sourceType: "module",
tsconfigRootDir: __dirname,
project: "./tsconfig.json"
},
ignorePatterns: [
"*.cjs",
"*.config.ts",
"**/*.css",
"**/*.scss",
"**/*.d.ts",
"**/*.d.cts"
],
plugins: ["@typescript-eslint"],
extends: [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:@typescript-eslint/recommended-requiring-type-checking",
"./eslint-rules/typescript-rules.yaml",
"./eslint-rules/consistent-typeimports.yaml",
"./eslint-rules/functional-rules.yaml",
"./eslint-rules/import-rules.yaml",
"./eslint-rules/no-console.yaml",
"./eslint-rules/no-restricted-syntax.yaml",
"./eslint-rules/sort-imports.yaml",
"./eslint-rules/unused-vars.yaml",
"./eslint-rules/prefer-arrows.yaml"
],
rules: {
"no-unexpected-multiline": 2,
"no-case-declarations": 0,
"no-restricted-globals": "error",
eqeqeq: "off",
"prefer-const": "error",
"no-param-reassign": "warn",
"no-var": "error",
"arrow-body-style": ["warn", "as-needed"]
},
settings: {
"import/extensions": [".ts", ".tsx"],
"import/parsers": {
"@typescript-eslint/parser": [".ts", ".tsx"]
}
}
}