-
Notifications
You must be signed in to change notification settings - Fork 13
/
.eslintrc
129 lines (129 loc) · 3.68 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
{
"root": true,
"env": {
"browser": true,
"node": true,
"es6": true,
"mocha": true
},
"extends": "eslint:recommended",
"globals": {
"Atomics": "readonly",
"SharedArrayBuffer": "readonly"
},
"parserOptions": {
"ecmaVersion": 2017,
"sourceType": "module"
},
"plugins": [
"jsdoc"
],
"rules": {
"array-bracket-spacing": [ "error" ],
"brace-style": [ "error" ],
"camelcase": [ "error", {
"allow": [
"SamplingRate_8KHZ",
"SamplingRate_16KHZ",
"SamplingRate_22KHZ",
"SamplingRate_44KHZ",
"BitsPerSample_8_BIT",
"BitsPerSample_16_BIT",
]
}],
"comma-dangle": [
"error",
{
"arrays": "always-multiline",
"objects": "always-multiline"
}
],
"comma-spacing": [ "error" ],
"comma-style": [ "error" ],
"curly": [ "error" ],
"dot-notation": [ "error" ],
"eqeqeq": [ "error" ],
"id-length": [ "error", { "exceptions": ["x", "y", "c"] } ],
"indent": [
"error",
4,
{
"SwitchCase": 1
}
],
"keyword-spacing": [ "error" ],
"linebreak-style": [
"error",
"unix"
],
"new-cap": [ "error", {
"newIsCapExceptions": ["tClass"]
}],
"no-case-declarations": [ "error" ],
"no-const-assign": [ "error" ],
"no-mixed-operators": [ "error" ],
"no-multi-str": [ "error" ],
"no-nested-ternary": [ "error" ],
"no-new-object": [ "error" ],
"no-throw-literal": [ "error" ],
"no-trailing-spaces": [ "error" ],
"no-unneeded-ternary": [ "error" ],
"no-unused-vars": [ "warn", {
"args": "none"
}],
"no-var": [ "error" ],
"no-whitespace-before-property": [ "error" ],
"nonblock-statement-body-position": [
"error",
"below"
],
"object-curly-spacing": [
"error",
"always"
],
"object-shorthand": [ "error" ],
"padded-blocks": [
"error",
"never"
],
"prefer-const": [
"error",
{
"destructuring": "any",
"ignoreReadBeforeAssign": false
}
],
"prefer-template": [ "error" ],
"quotes": [
"error",
"single"
],
"semi": [ "error" ],
"space-before-blocks": [ "error" ],
"space-before-function-paren": [ "error" ],
"space-in-parens": [ "error" ],
"space-infix-ops": [ "error" ],
"spaced-comment": [ "error" ],
"template-curly-spacing": [ "error" ],
"jsdoc/check-access": 1,
"jsdoc/check-alignment": 1,
"jsdoc/check-indentation": 1,
"jsdoc/check-param-names": 1,
"jsdoc/check-property-names": 1,
"jsdoc/check-tag-names": 1,
"jsdoc/empty-tags": 1,
"jsdoc/implements-on-classes": 1,
"jsdoc/require-description": 1,
"jsdoc/require-hyphen-before-param-description": 1,
"jsdoc/require-jsdoc": 1,
"jsdoc/require-param": 1,
"jsdoc/require-param-name": 1,
"jsdoc/require-param-type": 1,
"jsdoc/require-param-description": 1,
"jsdoc/require-returns": 1,
"jsdoc/require-returns-check": 1,
"jsdoc/require-returns-description": 1,
"jsdoc/require-returns-type": 1,
"jsdoc/valid-types": 1
}
}