-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
122 lines (122 loc) · 4.12 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
{
"extends": [
"eslint:recommended"
],
"env": {
"browser": true,
"es6": true,
"node": true,
"jasmine": true
},
"globals": {
"HighchartsConnectors": true,
"Dashboards": true,
"Highcharts": true
},
"parserOptions": {
"ecmaVersion": 2020
},
"rules": {
"camelcase": [2, {"properties": "always"}],
"comma-dangle": [2, "never"],
"dot-location": [2, "property"],
"lines-around-comment": 0,
"max-len": [2, {"code": 100, "comments": 80}],
"newline-after-var": 0,
"no-alert": 2,
"no-console": 2,
"no-debugger": 2,
"no-else-return": 2,
"no-nested-ternary": 0,
"no-unmodified-loop-condition": 0,
"no-unused-vars": 1,
"object-curly-spacing": [2, "always"],
"operator-linebreak": [2, "after"],
"quotes": [2, "single"],
"require-unicode-regexp": 1,
"space-before-function-paren": 2,
"strict": 0
},
"overrides": [
{
"files": ["*.ts"],
"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": [
"brackets",
"jsdoc",
"@typescript-eslint"
],
"globals": {
"Dashboards": false,
"Highcharts": false
},
"rules": {
"camelcase": [2, {"properties": "always"}],
"comma-dangle": [2, "never"],
"dot-location": [2, "property"],
"lines-around-comment": 0,
"max-len": [2, {"code": 100, "comments": 80}],
"newline-after-var": 0,
"no-alert": 2,
"no-console": 2,
"no-debugger": 2,
"no-else-return": 2,
"no-nested-ternary": 0,
"no-unmodified-loop-condition": 0,
"no-unused-vars": 1,
"no-useless-escape": 0,
"object-curly-spacing": [2, "always"],
"operator-linebreak": [2, "after"],
"quotes": [2, "single"],
"require-unicode-regexp": 1,
"space-before-function-paren": 2,
"strict": 0,
"eol-last": ["error", "always"],
"@typescript-eslint/require-await": 0,
"@typescript-eslint/restrict-plus-operands": 0,
"@typescript-eslint/restrict-template-expressions": 0,
"jsdoc/check-alignment": 1,
"jsdoc/check-param-names": 1,
"jsdoc/check-tag-names": 1,
"jsdoc/check-types": 0,
"jsdoc/newline-after-description": 0,
"jsdoc/require-jsdoc": 0,
"jsdoc/require-param": 1,
"jsdoc/require-returns": 0,
"node/shebang": 0,
"node/no-unpublished-require": 0
},
"settings": {
"jsdoc": {
"preferredTypes": {
"array": "Array",
"function": "Function",
"object": "Object",
"Boolean": "boolean",
"Number": "number",
"Object": "Object",
"String": "string"
},
"tagNamePreference": {
"augments": "augments",
"class": "class",
"constructor": "class",
"emits": "emits",
"extends": "extends",
"fires": "emits",
"returns": "return"
}
}
}
}
]
}