forked from dotnet/vscode-csharp
-
Notifications
You must be signed in to change notification settings - Fork 17
/
.eslintrc.js
59 lines (59 loc) · 1.58 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
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
59
module.exports = {
env: {
node: true
},
extends: [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
],
parser: "@typescript-eslint/parser",
parserOptions: {
project: true,
tsconfigRootDir: __dirname,
},
plugins: [
"@typescript-eslint",
"unicorn",
"header",
"prettier"
],
root: true,
rules: {
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-non-null-assertion": "off",
"@typescript-eslint/no-require-imports": "off",
// Allow unused vars if prefixed by _
"@typescript-eslint/no-unused-vars": [
"warn",
{
"argsIgnorePattern": "^_",
"varsIgnorePattern": "^_",
"caughtErrorsIgnorePattern": "^_"
}
],
"@typescript-eslint/no-namespace": "off",
"@typescript-eslint/promise-function-async": "error",
"@typescript-eslint/no-floating-promises": "error",
"prefer-promise-reject-errors": "error",
"curly": "error",
"prettier/prettier": [ "error", { "endOfLine": "auto" } ],
"unicorn/filename-case": [
"error",
{
"case": "camelCase",
"ignore": [
"I[A-Z].*\\.ts$",
"vscode-tasks\\.d\\.ts"
]
}
],
},
ignorePatterns: [
"out/",
"dist/",
"wallaby.js",
"webpack.config.js",
".eslintrc.js",
"**/*.d.ts"
],
};