-
Notifications
You must be signed in to change notification settings - Fork 5
/
.eslintrc.js
32 lines (32 loc) · 1.09 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
module.exports = {
root: true,
parser: "@typescript-eslint/parser",
parserOptions: {
project: "./tsconfig.json",
tsconfigRootDir: __dirname,
},
plugins: ["@typescript-eslint", "prettier", "jest"],
extends: [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
// 'plugin:@typescript-eslint/recommended-requiring-type-checking',
"prettier",
],
rules: {
"prettier/prettier": 2,
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/ban-types": "off",
"@typescript-eslint/no-empty-function": "off",
"@typescript-eslint/explicit-module-boundary-types": "off",
"no-implicit-coercion": ["warn", { allow: ["!!"] }],
"eol-last": ["error", "always"],
"@typescript-eslint/no-floating-promises": ["error"],
"no-implicit-coercion": ["warn", { allow: ["!!"] }],
curly: ["error", "all"],
"@typescript-eslint/no-unused-vars": ["error", { "argsIgnorePattern": "^_" }],
},
env: {
node: true,
"jest/globals": true,
},
}