-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.js
41 lines (41 loc) · 1.08 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
module.exports = {
extends: ["codex/ts", "plugin:vue/recommended", "@vue/typescript"],
parserOptions: {
project: `./tsconfig.json`,
parser: "@typescript-eslint/parser"
},
rules: {
"no-unused-vars": 0,
"@typescript-eslint/no-unused-vars-experimental": [
1,
{
ignoreArgsIfArgsAfterAreUsed: true
}
],
/**
* False positive of no-shadow rule with ENUMs in eslint
* https://github.com/typescript-eslint/typescript-eslint/issues/2483
*
*/
"no-shadow": "off",
"@typescript-eslint/no-shadow": ["error", { allow: ["state", "getters"] }],
/**
* We widely use TS types in .js files` jsdoc, so we disable this rule to prevent reporting such cases
*/
"jsdoc/no-undefined-types": 0
},
overrides: [
{
files: ["*.vue"],
rules: {
/**
* Vue files should be written on ts so
* - the return type is not needed in jsdoc
* - params type is not needed in jsdoc
*/
"jsdoc/require-returns": 0,
"jsdoc/require-param-type": 0
}
}
]
};