-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.eslintrc.js
33 lines (33 loc) · 1.01 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
module.exports = {
env: {
es6: true,
node: true
},
extends: [
"eslint:recommended",
"plugin:@typescript-eslint/recommended"
],
parser: "@typescript-eslint/parser",
parserOptions: {
ecmaVersion: "latest",
sourceType: "module"
},
plugins: [
"@typescript-eslint"
],
ignorePatterns: [
"out/**",
"test.*"
],
rules: {
"quotes": [ "error", "double" ],
"semi": [ "error", "always" ],
"eol-last": [ "error", "always" ],
"no-async-promise-executor": "off",
// see https://github.com/eslint/eslint/issues/14538#issuecomment-862280037
"indent": ["error", 4, { "ignoredNodes": ["VariableDeclaration[declarations.length=0]"] }],
"@typescript-eslint/no-non-null-assertion": "off",
"@typescript-eslint/no-unused-vars": ["warn", { "ignoreRestSiblings": true, "argsIgnorePattern": "^_" }],
"@typescript-eslint/no-unsafe-declaration-merging": "off",
}
};