generated from es-lynn/ip-protect
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
44 lines (41 loc) · 1.19 KB
/
.eslintrc.json
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
{
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended"
],
"parser": "@typescript-eslint/parser",
"plugins": ["prettier", "@typescript-eslint", "simple-import-sort", "no-secrets"],
"rules": {
// Handled by prettierrc.js
"semi": "off",
"comma-dangle": "off",
"no-extra-semi": "off",
"prettier/prettier": "warn",
// Handled by @typescript-eslint
"no-unused-vars": "off",
"no-empty": "off",
// @typescript-eslint
"@typescript-eslint/no-empty-function": "warn",
"@typescript-eslint/no-unused-vars": [
"warn",
{ "argsIgnorePattern": "^_", "varsIgnorePattern": "^_" }
],
"@typescript-eslint/explicit-function-return-type": ["warn", {
"allowExpressions": true
}],
// Custom
"simple-import-sort/imports": "warn",
"no-console": ["warn", { "allow": ["info", "warn", "error"] }],
"consistent-return": "error",
"prefer-const": "warn",
"no-constant-condition": "warn",
"dot-notation": "off",
"no-secrets/no-secrets":"error",
"no-else-return": "warn"
},
"env": {
"node": true,
"es6": true
},
"ignorePatterns": ["**/dist/**", "**/client/sgw-src/**"]
}