forked from tusharmath/node-config-ts
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc
58 lines (58 loc) · 1.52 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
51
52
53
54
55
56
57
58
{
"root": true,
"env": {
"es6": true,
"node": true,
"mocha": true
},
"globals": {
"NodeJS": true
},
"parser": "@typescript-eslint/parser",
"plugins": ["@typescript-eslint", "prettier", "no-only-tests", "import", "mocha"],
"settings": {
"import/parsers": {
"@typescript-eslint/parser": [".ts", ".tsx"]
},
"import/resolver": {
"typescript": {
"alwaysTryTypes": true
}
}
},
"ignorePatterns": ["**/*.guard.ts"],
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"plugin:import/errors",
"plugin:import/warnings",
"plugin:import/typescript",
"prettier"
],
"rules": {
"prettier/prettier": "error",
"import/named": "error",
"strict": ["error", "global"],
"no-undef": [2, { "typeof": true }],
"curly": ["error", "all"],
"no-param-reassign": 0,
"arrow-parens": ["error", "always"],
"no-plusplus": ["error", { "allowForLoopAfterthoughts": true }],
"no-only-tests/no-only-tests": "error",
"mocha/no-skipped-tests": "error",
"mocha/no-exclusive-tests": "error",
"import/no-anonymous-default-export": [
"error",
{
"allowArray": false,
"allowArrowFunction": false,
"allowAnonymousClass": false,
"allowAnonymousFunction": false,
"allowCallExpression": true, // The true value here is for backward compatibility
"allowLiteral": false,
"allowObject": false
}
]
}
}