forked from gridsound/daw
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
142 lines (137 loc) · 7.01 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
{
"parserOptions": {
"ecmaVersion": 2022,
"sourceType": "script"
},
"noInlineConfig": true,
"rules": {
// main
// .....................................................................
"semi": [ "error", "always" ],
"yoda": [ "error", "never", { "exceptRange": true } ],
"strict": [ "error", "global" ],
"eqeqeq": [ "error", "always", { "null": "ignore" } ],
"quotes": [ "error", "double" ],
"indent": [ "error", "tab", { "SwitchCase": 1, "flatTernaryExpressions": true } ],
"no-var": [ "error" ],
"one-var": [ "error", "never" ],
"no-empty": [ "error" ],
"semi-style": [ "error", "last" ],
"comma-style": [ "error", "last" ],
"quote-props": [ "error", "as-needed" ],
"dot-notation": [ "error" ],
"prefer-const": [ "error" ],
"prefer-spread": [ "error" ],
"no-lonely-if": [ "error" ],
"no-else-return": [ "error" ],
"no-unused-vars": [ "error", { "argsIgnorePattern": "^_" } ],
"prefer-template": [ "error" ],
"linebreak-style": [ "error", "unix" ],
"no-empty-function": [ "error", { "allow": [ "arrowFunctions", "methods" ] } ],
"no-param-reassign": [ "error", { "props": false } ],
"prefer-rest-params": [ "error" ],
"operator-assignment": [ "error", "always" ],
"prefer-object-spread": [ "error" ],
"prefer-arrow-callback": [ "error" ],
"require-unicode-regexp": [ "error" ],
"prefer-exponentiation-operator": [ "error" ],
"no-unused-private-class-members": [ "error" ],
// brackets/braces/parens
// .....................................................................
"curly": [ "error", "all" ],
"new-parens": [ "error" ],
"brace-style": [ "error", "1tbs", { "allowSingleLine": true } ],
"arrow-parens": [ "error", "as-needed" ],
"no-extra-parens": [ "error", "all", { "nestedBinaryExpressions": false, "returnAssign": false } ],
"object-shorthand": [ "error", "always", { "avoidExplicitReturnArrows": true } ],
// spacing
// .....................................................................
"no-tabs": [ "error", { "allowIndentationTabs": true } ],
"eol-last": [ "error", "always" ],
"key-spacing": [ "error", { "mode": "minimum" } ],
"arrow-spacing": [ "error", { "before": true, "after": true } ],
"comma-spacing": [ "error", { "before": false, "after": true } ],
"padded-blocks": [ "error", "never" ],
"spaced-comment": [ "error", "always" ],
"space-infix-ops": [ "error" ],
"keyword-spacing": [ "error", { "before": true, "after": true } ],
"space-in-parens": [ "error", "always" ],
"func-call-spacing": [ "error", "never" ],
"no-trailing-spaces": [ "error" ],
"rest-spread-spacing": [ "error", "never" ],
"object-curly-spacing": [ "error", "always" ],
"switch-colon-spacing": [ "error", { "before": false, "after": true } ],
"array-bracket-spacing": [ "error", "always" ],
"template-curly-spacing": [ "error", "always" ],
"no-mixed-spaces-and-tabs": [ "error", "smart-tabs" ],
"computed-property-spacing": [ "error", "always" ],
"no-whitespace-before-property": [ "error" ],
"padding-line-between-statements": [ "error",
{ blankLine: "always", prev: [ "const", "let" ], next: "*" },
{ blankLine: "never", prev: [ "const", "let" ], next: [ "const", "let" ] }
],
// checks
// .....................................................................
"use-isnan": [ "error" ],
"valid-typeof": [ "error" ],
"no-const-assign": [ "error" ],
"no-dupe-else-if": [ "error" ],
"constructor-super": [ "error" ],
"no-duplicate-case": [ "error" ],
"no-case-declarations": [ "error" ],
"no-this-before-super": [ "error" ],
// no-*
// .....................................................................
"no-eval": [ "error" ],
"no-void": [ "error" ],
"no-with": [ "error" ],
"no-proto": [ "error" ],
"no-labels": [ "error" ],
"no-caller": [ "error" ],
"no-debugger": [ "error" ],
"no-new-func": [ "error" ],
"no-dupe-args": [ "error" ],
"no-dupe-keys": [ "error" ],
"no-multi-str": [ "error" ],
"no-obj-calls": [ "error" ],
"no-redeclare": [ "error", { "builtinGlobals": true } ],
"no-extra-bind": [ "error" ],
"no-extra-semi": [ "error" ],
"no-script-url": [ "error" ],
"no-undef-init": [ "error" ],
"no-unreachable": [ "error" ],
"no-lone-blocks": [ "error" ],
"no-new-wrappers": [ "error" ],
"no-return-await": [ "error" ],
"no-class-assign": [ "error" ],
"no-self-compare": [ "error" ],
"no-octal-escape": [ "error" ],
"no-implied-eval": [ "error" ],
"no-useless-call": [ "error" ],
"no-global-assign": [ "error" ],
"no-empty-pattern": [ "error" ],
"no-await-in-loop": [ "error" ],
"no-extend-native": [ "error" ],
"no-unsafe-finally": [ "error" ],
"no-useless-concat": [ "error" ],
"no-useless-escape": [ "error" ],
"no-useless-rename": [ "error" ],
"no-useless-return": [ "error" ],
"no-unsafe-negation": [ "error" ],
"no-compare-neg-zero": [ "error" ],
"no-use-before-define": [ "error", { "functions": true, "classes": false, "variables": true } ],
"no-constant-condition": [ "error" ],
"no-dupe-class-members": [ "error" ],
"no-prototype-builtins": [ "error" ],
"no-inner-declarations": [ "error" ],
"no-extra-boolean-cast": [ "error" ],
"no-unused-expressions": [ "error", { "allowShortCircuit": true, "allowTernary": true } ],
"no-useless-constructor": [ "error" ],
"no-useless-computed-key": [ "error" ],
"no-irregular-whitespace": [ "error" ],
"no-unexpected-multiline": [ "error" ],
"no-template-curly-in-string": [ "error" ],
"no-unsafe-optional-chaining": [ "error" ],
"no-unmodified-loop-condition": [ "error" ]
}
}