-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
35 lines (35 loc) · 1.07 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
module.exports = {
parser: "@typescript-eslint/parser",
plugins: [
"@typescript-eslint"
],
extends: [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:@typescript-eslint/eslint-recommended",
"airbnb/base",
"airbnb-typescript/base"
],
parserOptions: {
ecmaVersion: "latest",
project: "./tsconfig.json"
},
rules: {
quotes: ["error", "double"],
curly: ["error", "all"],
indent: "off",
"no-console": ["error", { allow: ["info", "warn", "error"] }],
"no-use-before-define": ["error", { functions: false, classes: false }],
"@typescript-eslint/no-use-before-define": ["error", { functions: false, classes: false }],
"brace-style": ["error", "1tbs", { allowSingleLine: false }],
"import/no-unresolved": 0,
"import/prefer-default-export": 0,
"@typescript-eslint/quotes": 0,
"@typescript-eslint/no-explicit-any": 0,
"@typescript-eslint/indent": ["error", 2, {
ignoredNodes: ["TSTypeParameterInstantiation"],
SwitchCase: 1,
}]
},
ignorePatterns: [".eslintrc.js"]
}