-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
31 lines (31 loc) · 1.12 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
{
"env": {
"es2021": true,
"node": true,
"mocha": true
},
"ignorePatterns": ["copyStaticAssets.js", "node_modules/", "dist/", "types/"],
"extends": ["eslint:recommended", "plugin:@typescript-eslint/recommended", "prettier"],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 12,
"sourceType": "module"
},
"plugins": ["@typescript-eslint"],
"rules": {
"indent": ["error", 4],
"brace-style": "off",
"@typescript-eslint/brace-style": ["error", "allman"],
"no-trailing-spaces": [2, { "skipBlankLines": true }],
"@typescript-eslint/ban-types": "off",
"@typescript-eslint/no-explicit-any": "warn",
"@typescript-eslint/explicit-function-return-type": "warn",
"@typescript-eslint/explicit-module-boundary-types": "warn",
"@typescript-eslint/no-unused-vars": "warn",
"@typescript-eslint/no-empty-interface": "warn",
"@typescript-eslint/no-var-requires": 0,
"no-async-promise-executor": 0,
"no-useless-catch": "warn",
"no-empty": "warn"
}
}