forked from highcharts/highcharts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc
103 lines (103 loc) · 3.82 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
{
"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"
}
],
"class-methods-use-this": 0, // @todo
"comma-dangle": [
2,
"never"
],
"consistent-return": 0,
"function-paren-newline": 0,
"func-style": 0,
"indent": 0,
"max-len": [
"error",
{
"code": 120,
"comments": 80,
"ignoreUrls": true,
"ignorePattern": "(eslint-disable-line|pointFormat|headerFormat| highcharts\/|\\]\\(#|@apioption|@borrows|@declare|@default|@extends|@name|@param|@property|@return|@sample|@see|@type|@typedef|@validvalue)"
}
],
"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, // @todo
"prefer-spread": 0, // @todo
"prefer-rest-params": 0, // @todo
"quote-props": [2, "as-needed", { "keywords": false, "unnecessary": false }],
"valid-jsdoc": [ // @todo EOL 2018-11
"error",
{
"prefer": {
"returns": "return"
},
"requireReturn": false,
"requireReturnDescription": false
}
],
"@typescript-eslint/array-type": 0,
"@typescript-eslint/explicit-function-return-type": [
"error",
{
"allowExpressions": false,
"allowTypedFunctionExpressions": false
}
],
"@typescript-eslint/indent": ["error", 4, { "FunctionExpression": { "parameters": 1 }}],
"@typescript-eslint/no-empty-function": 0, // @todo
"@typescript-eslint/no-empty-interface": 0,
"@typescript-eslint/no-explicit-any": 0,
"@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-unused-vars": 0, // @todo
"@typescript-eslint/no-use-before-define": 0,
"@typescript-eslint/no-useless-constructor": 2,
"@typescript-eslint/prefer-includes": 0, // @todo
"@typescript-eslint/prefer-regexp-exec": 0, // @todo
"@typescript-eslint/prefer-string-starts-ends-with": 0, // @todo
"@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-optional-chaining": 2,
"highcharts/no-private-constructor-doclet": 0,
"highcharts/no-wrap": 1, // @todo
"highcharts/quote-members": 2,
"node/no-missing-import": 0, // @todo
"node/no-unsupported-features/es-syntax": 0, // @todo
}
}