forked from highcharts/highcharts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
159 lines (159 loc) · 5.71 KB
/
.eslintrc
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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
{
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"plugin:@typescript-eslint/recommended-requiring-type-checking"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": "./tsconfig.json"
},
"plugins": [
"highcharts",
"@typescript-eslint"
],
"rules": {
"camelcase": [
2,
{
"properties": "always"
}
],
"capitalized-comments": [
"error",
"always", {
"ignoreConsecutiveComments": true
}
],
"class-methods-use-this": 0,
"comma-dangle": [
2,
"never"
],
"consistent-return": 0,
"default-case": 0,
"default-param-last": 0,
"dot-notation": 0,
"function-paren-newline": 0,
"func-style": 0,
"indent": 0,
"max-len": [
"error",
{
"code": 80,
"comments": 80,
"ignoreUrls": true,
"ignorePattern": "`|eslint-disable-line|headerFormat|pointFormat|static defaultOptions| (extends|implements) |@\\w|\\w<|\\.\\/| highcharts\\/|\\]\\(#"
}
],
"no-dupe-class-members": 0,
"no-inner-declarations": 0, // deprecated with ES6
"no-invalid-this": 0, // covered by TypeScript
"no-shadow": 0, // @todo
"no-undef": 0,
"no-underscore-dangle": 0, // @todo
"no-unused-expressions": 0,
"no-use-before-define": 0,
"no-useless-constructor": 0,
"no-useless-escape": 0, // @todo
"no-useless-return": 0,
"object-curly-spacing": [2, "always"],
"object-shorthand": 0,
"prefer-const": [1, {
"destructuring": "all"
}], // @todo
"prefer-spread": 0, // @todo
"prefer-rest-params": 0, // @todo
"require-unicode-regexp": 0, // incompatible with ES2017- targets
"quote-props": [2, "as-needed", { "keywords": true, "unnecessary": false }],
"semi": 0,
"spaced-comment": ["error", "always", { "markers": ["/"] }],
"valid-jsdoc": 0,
"@typescript-eslint/array-type": 0,
"@typescript-eslint/ban-types": 0, // @todo
"@typescript-eslint/explicit-function-return-type": [
"error",
{
"allowExpressions": false,
"allowTypedFunctionExpressions": false
}
],
"@typescript-eslint/indent": [
"error",
4,
{
"FunctionExpression": { "parameters": 1 },
"SwitchCase": 1
}
],
"@typescript-eslint/no-empty-function": 0, // @todo
"@typescript-eslint/no-empty-interface": 0,
"@typescript-eslint/no-explicit-any": 0,
"@typescript-eslint/no-floating-promises": 1, // @todo
"@typescript-eslint/no-inferrable-types": 0, // @todo ?
"@typescript-eslint/no-namespace": 0,
"@typescript-eslint/no-object-literal-type-assertion": 0,
"@typescript-eslint/no-this-alias": 0, // @todo
"@typescript-eslint/no-unnecessary-type-assertion": 0, // @todo
"@typescript-eslint/no-unsafe-argument": 0, // @todo
"@typescript-eslint/no-unsafe-assignment": 0, // @todo
"@typescript-eslint/no-unsafe-call": 0, // @todo
"@typescript-eslint/no-unsafe-member-access": 0, // @todo
"@typescript-eslint/no-unsafe-return": 0, // @todo
"@typescript-eslint/no-unused-vars": ["error", { "vars": "all", "args": "after-used" }],
"@typescript-eslint/no-use-before-define": 0,
"@typescript-eslint/no-useless-constructor": 2,
"@typescript-eslint/prefer-as-const": 1, // @todo
"@typescript-eslint/prefer-includes": 0, // @todo
"@typescript-eslint/prefer-regexp-exec": 0, // @todo
"@typescript-eslint/prefer-string-starts-ends-with": 0, // @todo
"@typescript-eslint/restrict-plus-operands": 0,
"@typescript-eslint/restrict-template-expressions": 1, // @todo
"@typescript-eslint/semi": 2,
"@typescript-eslint/unbound-method": 0, // @todo
"highcharts/doclet-apioption-last": 2,
"highcharts/no-highcharts-namespace": 1, // @todo
"highcharts/no-highcharts-object": 2,
"highcharts/no-mixin": 1, // @todo
"highcharts/no-private-constructor-doclet": 0,
"highcharts/no-wrap": 1, // @todo
"highcharts/quote-members": 2,
"jsdoc/check-alignment": 0,
"jsdoc/check-param-names": 1,
"jsdoc/check-tag-names": [
"error",
{
"definedTags": [
"apioption",
"context",
"declare",
"exclude",
"excluding",
"ignore-declaration",
"ignore-option",
"internal",
"optionparent",
"product",
"productdesc",
"sample",
"validvalue"
]
}
],
"jsdoc/check-types": 0,
"jsdoc/require-description": 1,
"jsdoc/require-jsdoc": 1, // @todo
"jsdoc/require-param": 0, // @todo
"jsdoc/require-param-description": 1, // @todo
"jsdoc/require-param-type": 1, // @todo
"node/no-missing-import": 0, // @todo
"node/no-unsupported-features/es-builtins": 0, // @todo
"node/no-unsupported-features/es-syntax": 0 // @todo
},
"settings": {
"jsdoc": {
"mode": "typescript"
}
}
}