generated from iansan5653/ts-boilerplate
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
74 lines (74 loc) · 2.09 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
{
"env": {
"browser": true,
"es6": true,
"node": true,
"mocha": true
},
"extends": [
"eslint:recommended",
"google",
"plugin:@typescript-eslint/recommended"
],
"globals": {
"Atomics": "readonly",
"SharedArrayBuffer": "readonly"
},
"parserOptions": {
"ecmaVersion": 2018,
"sourceType": "module"
},
"parser": "@typescript-eslint/parser",
"plugins": ["jsdoc"],
"rules": {
//: Off because Prettier controls this
"indent": "off",
"@typescript-eslint/indent": "off",
"linebreak-style": "off",
"@typescript-eslint/linebreak-style": "off",
//: Off because conflicts with jsdoc plugin
"valid-jsdoc": "off",
"require-jsdoc": "off",
"jsdoc/check-alignment": 1,
//: Off because https://github.com/gajus/eslint-plugin-jsdoc/issues/334
"jsdoc/check-indentation": 0,
"jsdoc/check-param-names": 1,
"jsdoc/check-syntax": 1,
"jsdoc/check-tag-names": 1,
"jsdoc/implements-on-classes": 1,
"jsdoc/match-description": 1,
"jsdoc/no-types": 1,
"jsdoc/require-jsdoc": "off",
"jsdoc/require-param": 1,
"jsdoc/require-param-description": 1,
"jsdoc/require-param-name": 1,
"comma-dangle": ["error", "never"],
"quotes": "off",
"no-console": "off",
"no-dupe-class-members": "off",
"no-param-reassign": "error",
"@typescript-eslint/prefer-for-of": "error",
"@typescript-eslint/no-parameter-properties": "off",
"@typescript-eslint/camelcase": "off",
"@typescript-eslint/array-type": ["error", {"default": "array-simple"}],
"@typescript-eslint/explicit-function-return-type": [
"error",
{"allowExpressions": true}
],
//: Off because sometimes using any makes sense; ie: `(...args: any[]) -> any`
"@typescript-eslint/no-explicit-any": "off",
"max-len": [
"error",
{
"code": 80,
"tabWidth": 2,
"ignoreComments": false,
"ignoreTrailingComments": false,
"ignoreUrls": true,
"ignoreStrings": false,
"ignoreTemplateLiterals": false,
"ignoreRegExpLiterals": true
}
]
}
}