-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
executable file
·36 lines (36 loc) · 1023 Bytes
/
.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
module.exports = {
root: true,
ignorePatterns: ["**/*d.ts"],
parserOptions: {
"tsconfigRootDir": process.cwd(),
"project": ['./tsconfig.json'],
"createDefaultProgram": true
},
rules: {
"@typescript-eslint/no-floating-promises": ["error", { "ignoreVoid": true }],
"@typescript-eslint/no-unused-vars": ["warn", {
"argsIgnorePattern": "^_",
"vars": "all",
"args": "all",
"ignoreRestSiblings": false,
"caughtErrors": "all"
}],
"unicorn/no-unused-properties": "error",
"unicorn/error-message": "error",
"unicorn/expiring-todo-comments": "error",
"unicorn/no-abusive-eslint-disable": "error",
"unicorn/no-new-buffer": "error",
"unicorn/no-unreadable-array-destructuring": "error",
"unicorn/no-unsafe-regex": "error",
"unicorn/number-literal-case": "error",
"unicorn/throw-new-error": "error"
},
env: {
"es6": true
},
parser: "@typescript-eslint/parser",
plugins: [
"@typescript-eslint",
"unicorn"
]
}