-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy path.eslintrc.js
65 lines (65 loc) · 1.66 KB
/
.eslintrc.js
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
module.exports = {
extends: ["shellscape", "plugin:import/typescript"],
parser: "@typescript-eslint/parser",
parserOptions: {
project: ["./tsconfig.eslint.json", "./src/*/tsconfig.json"],
tsconfigRootDir: __dirname,
},
plugins: ["@typescript-eslint"],
rules: {
"@typescript-eslint/consistent-type-assertions": "error",
"@typescript-eslint/consistent-type-definitions": "error",
"@typescript-eslint/member-ordering": "error",
"@typescript-eslint/no-inferrable-types": "error",
"@typescript-eslint/no-redeclare": "error",
"@typescript-eslint/no-unnecessary-type-assertion": "error",
"@typescript-eslint/no-unused-vars": [
"error",
{
vars: "local",
args: "after-used",
ignoreRestSiblings: true,
},
],
"import/extensions": [
"error",
"always",
{
js: "never",
jsx: "never",
ts: "never",
tsx: "never",
},
],
"import/no-extraneous-dependencies": [
"error",
{ devDependencies: ["**/test/**/*.ts"] },
],
"import/no-namespace": "off",
"import/no-named-export": "off",
"import/prefer-default-export": "off",
"no-redeclare": "off",
"no-unused-expressions": [2, { allowShortCircuit: true }],
"no-unused-vars": "off",
"no-void": "off",
"spaced-comment": "off",
"prettier/prettier": [
"error",
{
arrowParens: "always",
printWidth: 100,
singleQuote: true,
trailingComma: "none",
plugins: ["prettier-plugin-package"],
},
],
},
overrides: [
{
files: ["**/*.ts"],
rules: {
"no-undef": "off",
},
},
],
};