-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
48 lines (48 loc) · 1.36 KB
/
.eslintrc.json
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
{
"extends": [
// Uses the recommended rules from the @typescript-eslint/eslint-plugin
"plugin:@typescript-eslint/recommended",
"prettier",
// Enables eslint-plugin-prettier and displays prettier errors as ESLint errors. Make sure this is always the last configuration in the extends array.
"plugin:prettier/recommended"
],
"plugins": ["jsdoc", "tsc"],
"rules": {
"@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/explicit-module-boundary-types": "off",
"@typescript-eslint/no-unused-vars": "error",
"jsdoc/require-jsdoc": [
"error",
{
"require": {
"ArrowFunctionExpression": true,
"ClassDeclaration": true,
"ClassExpression": true,
"FunctionDeclaration": true,
"FunctionExpression": true,
"MethodDefinition": true
}
}
],
"jsdoc/require-description": "error",
"jsdoc/require-returns-type": "off",
"jsdoc/require-returns": "off",
"jsdoc/require-param-type": "off",
"prettier/prettier": [
"error",
{
// Fixes mismatching windows/unix file end of lines
"endOfLine": "auto"
}
]
},
"overrides": [
{
"files": ["*.js"],
"rules": {
// Disable "no requires" for js files
"@typescript-eslint/no-var-requires": "off"
}
}
]
}