-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
48 lines (48 loc) · 1.3 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: {
node: true,
jest: true,
},
extends: ["plugin:@typescript-eslint/recommended", "plugin:prettier/recommended"],
ignorePatterns: ["coverage", "dist", "node_modules", "package-lock.json"],
parser: "@typescript-eslint/parser",
parserOptions: {
project: "tsconfig.json",
sourceType: "module",
tsconfigRootDir: __dirname,
},
plugins: ["@typescript-eslint/eslint-plugin"],
root: true,
rules: {
"arrow-parens": 1,
"max-params": ["error", 2],
"no-duplicate-imports": 1,
"no-restricted-syntax": [
1,
{
selector: "ExportDefaultDeclaration",
message: "Prefer named exports.",
},
],
"no-tabs": 1,
"@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/explicit-module-boundary-types": "off",
"@typescript-eslint/naming-convention": [
1,
{
format: ["StrictPascalCase"],
prefix: ["I"],
selector: "interface",
},
{
format: ["StrictPascalCase"],
prefix: ["can", "did", "has", "is", "should", "will"],
selector: "variable",
types: ["boolean"],
},
],
"@typescript-eslint/no-empty-function": "off",
"@typescript-eslint/no-var-requires": "off",
"@typescript-eslint/no-unused-vars": 0,
},
}