-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc
50 lines (50 loc) · 1.63 KB
/
.eslintrc
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
{
"env": { "browser": true, "es2021": true },
"extends": ["plugin:import/recommended", "plugin:import/typescript", "prettier"],
"plugins": ["prettier", "unused-imports", "@typescript-eslint"],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 12,
"sourceType": "module"
},
"rules": {
"import/default": 0,
"eqeqeq": ["warn", "always"],
"unused-imports/no-unused-vars": "error",
"unused-imports/no-unused-imports": "error",
"func-style": ["warn", "declaration"],
"semi": ["error", "always"],
"arrow-parens": ["error", "as-needed"],
"no-duplicate-imports": "error",
"max-len": ["error", { "code": 175, "ignoreUrls": true }],
"prettier/prettier": ["warn", { "printWidth": 175 }],
"no-unused-expressions": ["error", { "allowShortCircuit": true }],
"no-console": "error",
"no-unused-vars": "error",
"no-var": "error",
"no-shadow": "error",
"no-useless-constructor": "error",
"require-jsdoc": [
"error",
{
"require": {
"FunctionDeclaration": true,
"MethodDefinition": false,
"ClassDeclaration": false,
"ArrowFunctionExpression": false,
"FunctionExpression": false
}
}
],
"@typescript-eslint/no-empty-function": "error",
"@typescript-eslint/explicit-function-return-type": "error",
"@typescript-eslint/no-unused-vars": ["error", { "argsIgnorePattern": "^_" }],
"@typescript-eslint/naming-convention": [
"error",
{ "selector": "interface", "format": ["PascalCase"] },
{ "selector": "typeAlias", "format": ["PascalCase"] },
{ "selector": "typeParameter", "format": ["PascalCase"] },
{ "selector": "enumMember", "format": ["PascalCase"] }
]
}
}