-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.js
37 lines (37 loc) · 1.19 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
module.exports = {
parserOptions: {
parser: "@typescript-eslint/parser"
},
env: {
node: true
},
extends: [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:promise/recommended",
"prettier",
"prettier/@typescript-eslint"
],
plugins: ["@typescript-eslint", "import", "jest"],
rules: {
"vue/attributes-order": "off",
"no-prototype-builtins": "off",
"import/no-default-export": "off",
"no-use-before-define": ["error", { functions: false, classes: true, variables: false }],
"@typescript-eslint/no-use-before-define": [
"error",
{ functions: false, classes: true, variables: false, typedefs: true }
],
"@typescript-eslint/ban-ts-comment": "off",
"@typescript-eslint/no-var-requires": "off",
"@typescript-eslint/explicit-module-boundary-types": "off",
"@typescript-eslint/explicit-function-return-type": [
"off",
{
allowExpressions: true,
allowHigherOrderFunctions: true,
allowTypedFunctionExpressions: true
}
]
}
}