forked from highcharts/highcharts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
65 lines (65 loc) · 2.48 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
{
"extends": "./node_modules/eslint-config-eslint/default.yml",
"rules": {
"camelcase": [2, {"properties": "always"}],
"comma-dangle": [2, "never"],
"dot-location": [2, "property"],
"lines-around-comment": 0,
"max-len": 2,
"newline-after-var": 0,
"no-alert": 2,
"no-console": 2,
"no-debugger": 2,
"no-else-return": 2,
"no-nested-ternary": 0,
"no-param-reassign": 0, // Would be useful, but takes some work
"no-restricted-properties": 0, // Complains about .substr and .substring. Not yet.
"no-unmodified-loop-condition": 0,
"no-unused-vars": 1,
"no-useless-escape": 0, // @todo: Useful but a bit risky to change. 54 errors.
"no-var": 0, // Not yet
"object-curly-spacing": [2, "always"],
"operator-assignment": 0, // Could be nice, but the change is somewhat error prone.
"operator-linebreak": [2, "after"],
"quotes": [2, "single"],
"padding-line-between-statements": 0, // Annoying in samples and tools. If we want it, do --fix.
"prefer-arrow-callback": 0, // Not supported in Highcharts, too early for tests and samples.
"prefer-spread": 0, // Too early for samples
"prefer-template": 0, // Will probably create a lot of noise in samples
"require-unicode-regexp": 1,
"space-before-function-paren": [2, {"anonymous": "always", "named": "never"}], // JSLint style
"strict": 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"
}
}
}
}