-
-
Notifications
You must be signed in to change notification settings - Fork 5
/
.eslintrc.js
48 lines (48 loc) · 1.61 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
module.exports = {
env: {
commonjs: true,
es2021: true,
node: true,
},
extends: ["plugin:@typescript-eslint/eslint-recommended", "plugin:@typescript-eslint/recommended"],
parser: "@typescript-eslint/parser",
parserOptions: {
ecmaVersion: "latest",
},
plugins: ["@typescript-eslint", "import"],
rules: {
quotes: ["error", "double", { allowTemplateLiterals: true }],
semi: ["error", "never"],
indent: ["error", 4, { SwitchCase: 1 }],
"import/extensions": ["error", "never"],
"max-len": ["error", { code: 250 }],
"tsdoc/syntax": "off",
"lines-between-class-members": ["error", "always", { exceptAfterSingleLine: true }],
"class-methods-use-this": "off",
"no-underscore-dangle": "off",
"implicit-arrow-linebreak": "off",
"consistent-return": "off",
"@typescript-eslint/ban-ts-comment": "off",
"comma-dangle": "off",
"function-paren-newline": ["error", "consistent"],
"@typescript-eslint/no-unused-vars": "off",
"@typescript-eslint/no-empty-function": "off",
"no-plusplus": "off",
"no-continue": "off",
"no-restricted-syntax": "off",
"no-case-declarations": "off",
"import/prefer-default-export": "off",
},
ignorePatterns: ["dist/*"],
settings: {
"import/resolver": {
node: {
extensions: [".js", ".jsx", ".ts", ".tsx"],
},
typescript: {
alwaysTryTypes: true,
project: "./tsconfig.json",
},
},
},
}