@qtoggle/qui 1.18.0 → 1.18.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -12,7 +12,7 @@ jobs:
12
12
  - name: Lint Python Code
13
13
  uses: qtoggle/actions-common/actions/lint-python@v1
14
14
  with:
15
- source-folder: qui
15
+ source-dir: qui
16
16
  jsdoc:
17
17
  name: Publish Docs
18
18
  if: startsWith(github.ref, 'refs/tags/version-')
@@ -55,7 +55,7 @@ jobs:
55
55
  - name: Setup NodeJS
56
56
  uses: actions/setup-node@v4
57
57
  with:
58
- node-version: 18
58
+ node-version: '18'
59
59
  - name: Publish to NPM
60
60
  run: |
61
61
  echo '//registry.npmjs.org/:_authToken=${NPM_TOKEN}' > ~/.npmrc
@@ -0,0 +1,356 @@
1
+ import { defineConfig, globalIgnores } from 'eslint/config'
2
+ import globals from 'globals'
3
+ import babelParser from '@babel/eslint-parser'
4
+
5
+ export default defineConfig([
6
+ globalIgnores(['dist/*.js', 'js/lib/*.js']),
7
+ {
8
+ languageOptions: {
9
+ globals: {
10
+ ...globals.node,
11
+ document: 'readonly',
12
+ navigator: 'readonly',
13
+ window: 'readonly'
14
+ },
15
+
16
+ parser: babelParser,
17
+ parserOptions: {
18
+ requireConfigFile: false
19
+ },
20
+ ecmaVersion: 2018,
21
+ sourceType: 'module'
22
+ },
23
+
24
+ rules: {
25
+ 'accessor-pairs': 'error',
26
+ 'array-bracket-spacing': ['error', 'never'],
27
+
28
+ 'arrow-spacing': ['error', {
29
+ before: true,
30
+ after: true
31
+ }],
32
+
33
+ 'block-spacing': ['error', 'always'],
34
+
35
+ 'brace-style': ['error', 'stroustrup', {
36
+ allowSingleLine: false
37
+ }],
38
+
39
+ 'camelcase': ['error', {
40
+ properties: 'never'
41
+ }],
42
+
43
+ 'comma-dangle': ['error', {
44
+ arrays: 'never',
45
+ objects: 'never',
46
+ imports: 'never',
47
+ exports: 'never',
48
+ functions: 'never'
49
+ }],
50
+
51
+ 'comma-spacing': ['error', {
52
+ before: false,
53
+ after: true
54
+ }],
55
+
56
+ 'comma-style': ['error', 'last'],
57
+ 'computed-property-spacing': ['error', 'never'],
58
+ 'constructor-super': 'error',
59
+ 'curly': ['error', 'multi-line'],
60
+ 'dot-location': ['error', 'property'],
61
+ 'eol-last': 'error',
62
+
63
+ 'eqeqeq': ['error', 'always', {
64
+ null: 'ignore'
65
+ }],
66
+
67
+ 'func-call-spacing': ['error', 'never'],
68
+ 'function-paren-newline': ['error', 'consistent'],
69
+
70
+ 'generator-star-spacing': ['error', {
71
+ before: true,
72
+ after: true
73
+ }],
74
+
75
+ 'handle-callback-err': ['off'],
76
+
77
+ 'indent': ['error', 4, {
78
+ SwitchCase: 1,
79
+ VariableDeclarator: 1,
80
+ outerIIFEBody: 1,
81
+ MemberExpression: 'off',
82
+
83
+ FunctionDeclaration: {
84
+ parameters: 1,
85
+ body: 1
86
+ },
87
+
88
+ FunctionExpression: {
89
+ parameters: 1,
90
+ body: 1
91
+ },
92
+
93
+ CallExpression: {
94
+ arguments: 1
95
+ },
96
+
97
+ ArrayExpression: 1,
98
+ ObjectExpression: 1,
99
+ ImportDeclaration: 1,
100
+ flatTernaryExpressions: false,
101
+ ignoreComments: false
102
+ }],
103
+
104
+ 'key-spacing': ['error', {
105
+ beforeColon: false,
106
+ afterColon: true
107
+ }],
108
+
109
+ 'keyword-spacing': ['error', {
110
+ before: true,
111
+ after: true
112
+ }],
113
+
114
+ 'lines-between-class-members': ['error', 'always', {
115
+ exceptAfterSingleLine: true
116
+ }],
117
+
118
+ 'max-len': ['error', {
119
+ code: 120
120
+ }],
121
+
122
+ 'new-cap': ['error', {
123
+ newIsCap: true,
124
+ capIsNew: false,
125
+ properties: true
126
+ }],
127
+
128
+ 'new-parens': 'error',
129
+ 'no-array-constructor': 'error',
130
+ 'no-async-promise-executor': 'error',
131
+ 'no-caller': 'error',
132
+ 'no-case-declarations': 'error',
133
+ 'no-class-assign': 'error',
134
+ 'no-compare-neg-zero': 'error',
135
+ 'no-cond-assign': 'error',
136
+ 'no-const-assign': 'error',
137
+
138
+ 'no-constant-condition': ['error', {
139
+ checkLoops: false
140
+ }],
141
+
142
+ 'no-control-regex': 'error',
143
+ 'no-debugger': 'error',
144
+ 'no-delete-var': 'error',
145
+ 'no-dupe-args': 'error',
146
+ 'no-dupe-class-members': 'error',
147
+ 'no-dupe-keys': 'error',
148
+ 'no-duplicate-case': 'error',
149
+ 'no-empty-character-class': 'error',
150
+ 'no-empty-pattern': 'error',
151
+ 'no-eval': 'error',
152
+ 'no-ex-assign': 'error',
153
+ 'no-extend-native': 'off',
154
+ 'no-extra-bind': 'error',
155
+ 'no-extra-boolean-cast': 'error',
156
+ 'no-extra-parens': ['error', 'functions'],
157
+ 'no-fallthrough': 'error',
158
+ 'no-floating-decimal': 'error',
159
+ 'no-func-assign': 'error',
160
+ 'no-global-assign': 'error',
161
+ 'no-implied-eval': 'error',
162
+ 'no-inner-declarations': ['error', 'functions'],
163
+ 'no-invalid-regexp': 'error',
164
+ 'no-irregular-whitespace': 'error',
165
+ 'no-iterator': 'error',
166
+
167
+ 'no-labels': ['error', {
168
+ allowLoop: false,
169
+ allowSwitch: false
170
+ }],
171
+
172
+ 'no-lone-blocks': 'error',
173
+ 'no-misleading-character-class': 'error',
174
+ 'no-prototype-builtins': 'error',
175
+ 'no-useless-catch': 'error',
176
+
177
+ 'no-mixed-operators': ['error', {
178
+ groups: [
179
+ ['==', '!=', '===', '!==', '>', '>=', '<', '<='],
180
+ ['&&', '||'],
181
+ ['in', 'instanceof']
182
+ ],
183
+
184
+ allowSamePrecedence: true
185
+ }],
186
+
187
+ 'no-mixed-spaces-and-tabs': 'error',
188
+
189
+ 'no-multi-spaces': ['error', {
190
+ exceptions: {
191
+ ImportDeclaration: true,
192
+ ExportNamedDeclaration: true
193
+ }
194
+ }],
195
+
196
+ 'no-multi-str': 'error',
197
+
198
+ 'no-multiple-empty-lines': ['error', {
199
+ max: 2,
200
+ maxEOF: 0
201
+ }],
202
+
203
+ 'no-negated-in-lhs': 'error',
204
+ 'no-new': 'error',
205
+ 'no-new-func': 'error',
206
+ 'no-new-object': 'error',
207
+ 'no-new-require': 'error',
208
+ 'no-new-symbol': 'error',
209
+ 'no-new-wrappers': 'error',
210
+ 'no-obj-calls': 'error',
211
+ 'no-octal': 'error',
212
+ 'no-octal-escape': 'error',
213
+ 'no-path-concat': 'error',
214
+ 'no-proto': 'error',
215
+
216
+ 'no-redeclare': ['error', {
217
+ builtinGlobals: false
218
+ }],
219
+
220
+ 'no-regex-spaces': 'error',
221
+ 'no-return-assign': ['error', 'except-parens'],
222
+ 'no-return-await': 'error',
223
+ 'no-self-assign': 'error',
224
+ 'no-self-compare': 'error',
225
+ 'no-sequences': 'error',
226
+ 'no-shadow-restricted-names': 'error',
227
+ 'no-sparse-arrays': 'error',
228
+ 'no-tabs': 'error',
229
+ 'no-template-curly-in-string': 'error',
230
+ 'no-this-before-super': 'error',
231
+ 'no-throw-literal': 'error',
232
+ 'no-trailing-spaces': 'error',
233
+ 'no-undef': 'error',
234
+ 'no-undef-init': 'error',
235
+ 'no-unexpected-multiline': 'error',
236
+ 'no-unmodified-loop-condition': 'error',
237
+
238
+ 'no-unneeded-ternary': ['error', {
239
+ defaultAssignment: false
240
+ }],
241
+
242
+ 'no-unreachable': 'error',
243
+ 'no-unsafe-finally': 'error',
244
+ 'no-unsafe-negation': 'error',
245
+
246
+ 'no-unused-expressions': ['error', {
247
+ allowShortCircuit: true,
248
+ allowTernary: true,
249
+ allowTaggedTemplates: true
250
+ }],
251
+
252
+ 'no-unused-vars': ['error', {
253
+ vars: 'all',
254
+ varsIgnorePattern: '[A-Z]',
255
+ args: 'none',
256
+ ignoreRestSiblings: true
257
+ }],
258
+
259
+ 'no-use-before-define': ['error', {
260
+ functions: false,
261
+ classes: false,
262
+ variables: false
263
+ }],
264
+
265
+ 'no-useless-call': 'error',
266
+ 'no-useless-computed-key': 'error',
267
+ 'no-useless-constructor': 'off',
268
+ 'no-useless-escape': 'error',
269
+ 'no-useless-rename': 'error',
270
+ 'no-useless-return': 'error',
271
+ 'no-whitespace-before-property': 'error',
272
+ 'no-with': 'error',
273
+ 'no-void': 'error',
274
+ 'object-curly-spacing': 0,
275
+ 'object-property-newline': 'off',
276
+ 'one-var': 'off',
277
+
278
+ 'operator-linebreak': ['error', 'after', {
279
+ overrides: {
280
+ '?': 'before',
281
+ ':': 'before',
282
+ '|>': 'before'
283
+ }
284
+ }],
285
+
286
+ 'padded-blocks': ['error', {
287
+ classes: 'always'
288
+ }],
289
+
290
+ 'prefer-const': ['off'],
291
+
292
+ 'prefer-promise-reject-errors': ['error', {
293
+ allowEmptyReject: true
294
+ }],
295
+
296
+ 'quote-props': ['error', 'consistent-as-needed'],
297
+
298
+ 'quotes': ['error', 'single', {
299
+ avoidEscape: true,
300
+ allowTemplateLiterals: true
301
+ }],
302
+
303
+ 'rest-spread-spacing': ['error', 'never'],
304
+ 'semi': ['error', 'never'],
305
+
306
+ 'semi-spacing': ['error', {
307
+ before: false,
308
+ after: true
309
+ }],
310
+
311
+ 'space-before-blocks': ['error', 'always'],
312
+
313
+ 'space-before-function-paren': ['error', {
314
+ anonymous: 'always',
315
+ named: 'never'
316
+ }],
317
+
318
+ 'space-in-parens': ['error', 'never'],
319
+ 'space-infix-ops': 'error',
320
+
321
+ 'space-unary-ops': ['error', {
322
+ words: true,
323
+ nonwords: false
324
+ }],
325
+
326
+ 'spaced-comment': ['error', 'always', {
327
+ line: {
328
+ markers: ['*package', '!', '/', ',', '=']
329
+ },
330
+
331
+ block: {
332
+ balanced: true,
333
+ markers: ['*package', '!', ',', ':', '::', 'flow-include'],
334
+ exceptions: ['*']
335
+ }
336
+ }],
337
+
338
+ 'symbol-description': 'error',
339
+ 'template-curly-spacing': ['error', 'never'],
340
+ 'template-tag-spacing': ['error', 'never'],
341
+ 'unicode-bom': ['error', 'never'],
342
+ 'use-isnan': 'error',
343
+
344
+ 'valid-typeof': ['error', {
345
+ requireStringLiterals: true
346
+ }],
347
+
348
+ 'wrap-iife': ['error', 'any', {
349
+ functionPrototypeMethods: true
350
+ }],
351
+
352
+ 'yield-star-spacing': ['error', 'both'],
353
+ 'yoda': ['error', 'never']
354
+ }
355
+ }
356
+ ])
@@ -59,8 +59,6 @@
59
59
  * @namespace qui.icons.defaultstock
60
60
  */
61
61
 
62
- /* eslint-disable quote-props */
63
-
64
62
  import Config from '$qui/config.js'
65
63
  import * as Theme from '$qui/theme.js'
66
64
 
package/js/utils/css.js CHANGED
@@ -114,13 +114,18 @@ export function findRules(selectorRe) {
114
114
 
115
115
  let rules = [...sheet.cssRules]
116
116
  let mRules = rules.filter(r => r.selectorText && r.selectorText.match(selectorRe)).map(function (rule) {
117
- return {
118
- selector: rule.selectorText,
119
- declaration: rule.cssText.substring(rule.selectorText.length).trim()
120
- }
117
+ return rule.selectorText.split(',').map(function (selectorTextPart) {
118
+ if (!selectorTextPart.match(selectorRe)) {
119
+ return null
120
+ }
121
+ return {
122
+ selector: selectorTextPart,
123
+ declaration: rule.cssText.substring(rule.selectorText.length).trim()
124
+ }
125
+ })
121
126
  })
122
127
 
123
- matchedRules = matchedRules.concat(mRules)
128
+ matchedRules = matchedRules.concat(mRules.flat().filter(r => r != null))
124
129
  })
125
130
 
126
131
  return matchedRules
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@qtoggle/qui",
3
3
  "description": "A JavaScript UI library with batteries included.",
4
- "version": "1.18.0",
4
+ "version": "1.18.1",
5
5
  "author": {
6
6
  "name": "Calin Crisan",
7
7
  "email": "ccrisan@gmail.com"
@@ -19,10 +19,10 @@
19
19
  "@babel/core": "^7",
20
20
  "@babel/plugin-proposal-class-properties": "^7",
21
21
  "@babel/preset-env": "^7",
22
- "babel-eslint": "^10",
22
+ "@babel/eslint-parser": "*",
23
23
  "babel-loader": "^8",
24
24
  "css-loader": "^3",
25
- "eslint": "^6",
25
+ "eslint": "^9",
26
26
  "expose-loader": "^0",
27
27
  "file-loader": "^6",
28
28
  "glob": "^7",
package/pyproject.toml CHANGED
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "qui-server"
3
- version = "1.18.0"
3
+ version = "1.18.1"
4
4
  description = "A fully fledged qToggle implementation written in Python"
5
5
  authors = [
6
6
  {name = "Calin Crisan", email = "ccrisan@gmail.com"},
package/.eslintignore DELETED
@@ -1,2 +0,0 @@
1
- dist/*.js
2
- js/lib/*.js
package/.eslintrc.json DELETED
@@ -1,492 +0,0 @@
1
- {
2
- "parser": "babel-eslint",
3
- "parserOptions": {
4
- "ecmaVersion": 2018,
5
- "sourceType": "module"
6
- },
7
- "env": {
8
- "es6": true,
9
- "node": true
10
- },
11
- "globals": {
12
- "document": "readonly",
13
- "navigator": "readonly",
14
- "window": "readonly"
15
- },
16
- "rules": {
17
- "accessor-pairs": "error",
18
- "array-bracket-spacing": [
19
- "error",
20
- "never"
21
- ],
22
- "arrow-spacing": [
23
- "error",
24
- {
25
- "before": true,
26
- "after": true
27
- }
28
- ],
29
- "block-spacing": [
30
- "error",
31
- "always"
32
- ],
33
- "brace-style": [
34
- "error",
35
- "stroustrup",
36
- {
37
- "allowSingleLine": false
38
- }
39
- ],
40
- "camelcase": [
41
- "error",
42
- {
43
- "properties": "never"
44
- }
45
- ],
46
- "comma-dangle": [
47
- "error",
48
- {
49
- "arrays": "never",
50
- "objects": "never",
51
- "imports": "never",
52
- "exports": "never",
53
- "functions": "never"
54
- }
55
- ],
56
- "comma-spacing": [
57
- "error",
58
- {
59
- "before": false,
60
- "after": true
61
- }
62
- ],
63
- "comma-style": [
64
- "error",
65
- "last"
66
- ],
67
- "computed-property-spacing": [
68
- "error",
69
- "never"
70
- ],
71
- "constructor-super": "error",
72
- "curly": [
73
- "error",
74
- "multi-line"
75
- ],
76
- "dot-location": [
77
- "error",
78
- "property"
79
- ],
80
- "eol-last": "error",
81
- "eqeqeq": [
82
- "error",
83
- "always",
84
- {
85
- "null": "ignore"
86
- }
87
- ],
88
- "func-call-spacing": [
89
- "error",
90
- "never"
91
- ],
92
- "function-paren-newline": [
93
- "error",
94
- "consistent"
95
- ],
96
- "generator-star-spacing": [
97
- "error",
98
- {
99
- "before": true,
100
- "after": true
101
- }
102
- ],
103
- "handle-callback-err": [
104
- "off"
105
- ],
106
- "indent": [
107
- "error",
108
- 4,
109
- {
110
- "SwitchCase": 1,
111
- "VariableDeclarator": 1,
112
- "outerIIFEBody": 1,
113
- "MemberExpression": "off",
114
- "FunctionDeclaration": {
115
- "parameters": 1,
116
- "body": 1
117
- },
118
- "FunctionExpression": {
119
- "parameters": 1,
120
- "body": 1
121
- },
122
- "CallExpression": {
123
- "arguments": 1
124
- },
125
- "ArrayExpression": 1,
126
- "ObjectExpression": 1,
127
- "ImportDeclaration": 1,
128
- "flatTernaryExpressions": false,
129
- "ignoreComments": false
130
- }
131
- ],
132
- "key-spacing": [
133
- "error",
134
- {
135
- "beforeColon": false,
136
- "afterColon": true
137
- }
138
- ],
139
- "keyword-spacing": [
140
- "error",
141
- {
142
- "before": true,
143
- "after": true
144
- }
145
- ],
146
- "lines-between-class-members": [
147
- "error",
148
- "always",
149
- {
150
- "exceptAfterSingleLine": true
151
- }
152
- ],
153
- "max-len": [
154
- "error",
155
- {
156
- "code": 120
157
- }
158
- ],
159
- "new-cap": [
160
- "error",
161
- {
162
- "newIsCap": true,
163
- "capIsNew": false,
164
- "properties": true
165
- }
166
- ],
167
- "new-parens": "error",
168
- "no-array-constructor": "error",
169
- "no-async-promise-executor": "error",
170
- "no-caller": "error",
171
- "no-case-declarations": "error",
172
- "no-class-assign": "error",
173
- "no-compare-neg-zero": "error",
174
- "no-cond-assign": "error",
175
- "no-const-assign": "error",
176
- "no-constant-condition": [
177
- "error",
178
- {
179
- "checkLoops": false
180
- }
181
- ],
182
- "no-control-regex": "error",
183
- "no-debugger": "error",
184
- "no-delete-var": "error",
185
- "no-dupe-args": "error",
186
- "no-dupe-class-members": "error",
187
- "no-dupe-keys": "error",
188
- "no-duplicate-case": "error",
189
- "no-empty-character-class": "error",
190
- "no-empty-pattern": "error",
191
- "no-eval": "error",
192
- "no-ex-assign": "error",
193
- "no-extend-native": "off",
194
- "no-extra-bind": "error",
195
- "no-extra-boolean-cast": "error",
196
- "no-extra-parens": [
197
- "error",
198
- "functions"
199
- ],
200
- "no-fallthrough": "error",
201
- "no-floating-decimal": "error",
202
- "no-func-assign": "error",
203
- "no-global-assign": "error",
204
- "no-implied-eval": "error",
205
- "no-inner-declarations": [
206
- "error",
207
- "functions"
208
- ],
209
- "no-invalid-regexp": "error",
210
- "no-irregular-whitespace": "error",
211
- "no-iterator": "error",
212
- "no-labels": [
213
- "error",
214
- {
215
- "allowLoop": false,
216
- "allowSwitch": false
217
- }
218
- ],
219
- "no-lone-blocks": "error",
220
- "no-misleading-character-class": "error",
221
- "no-prototype-builtins": "error",
222
- "no-useless-catch": "error",
223
- "no-mixed-operators": [
224
- "error",
225
- {
226
- "groups": [
227
- [
228
- "==",
229
- "!=",
230
- "===",
231
- "!==",
232
- ">",
233
- ">=",
234
- "<",
235
- "<="
236
- ],
237
- [
238
- "&&",
239
- "||"
240
- ],
241
- [
242
- "in",
243
- "instanceof"
244
- ]
245
- ],
246
- "allowSamePrecedence": true
247
- }
248
- ],
249
- "no-mixed-spaces-and-tabs": "error",
250
- "no-multi-spaces": [
251
- "error",
252
- {
253
- "exceptions": {
254
- "ImportDeclaration": true,
255
- "ExportNamedDeclaration": true
256
- }
257
- }
258
- ],
259
- "no-multi-str": "error",
260
- "no-multiple-empty-lines": [
261
- "error",
262
- {
263
- "max": 2,
264
- "maxEOF": 0
265
- }
266
- ],
267
- "no-negated-in-lhs": "error",
268
- "no-new": "error",
269
- "no-new-func": "error",
270
- "no-new-object": "error",
271
- "no-new-require": "error",
272
- "no-new-symbol": "error",
273
- "no-new-wrappers": "error",
274
- "no-obj-calls": "error",
275
- "no-octal": "error",
276
- "no-octal-escape": "error",
277
- "no-path-concat": "error",
278
- "no-proto": "error",
279
- "no-redeclare": [
280
- "error",
281
- {
282
- "builtinGlobals": false
283
- }
284
- ],
285
- "no-regex-spaces": "error",
286
- "no-return-assign": [
287
- "error",
288
- "except-parens"
289
- ],
290
- "no-return-await": "error",
291
- "no-self-assign": "error",
292
- "no-self-compare": "error",
293
- "no-sequences": "error",
294
- "no-shadow-restricted-names": "error",
295
- "no-sparse-arrays": "error",
296
- "no-tabs": "error",
297
- "no-template-curly-in-string": "error",
298
- "no-this-before-super": "error",
299
- "no-throw-literal": "error",
300
- "no-trailing-spaces": "error",
301
- "no-undef": "error",
302
- "no-undef-init": "error",
303
- "no-unexpected-multiline": "error",
304
- "no-unmodified-loop-condition": "error",
305
- "no-unneeded-ternary": [
306
- "error",
307
- {
308
- "defaultAssignment": false
309
- }
310
- ],
311
- "no-unreachable": "error",
312
- "no-unsafe-finally": "error",
313
- "no-unsafe-negation": "error",
314
- "no-unused-expressions": [
315
- "error",
316
- {
317
- "allowShortCircuit": true,
318
- "allowTernary": true,
319
- "allowTaggedTemplates": true
320
- }
321
- ],
322
- "no-unused-vars": [
323
- "error",
324
- {
325
- "vars": "all",
326
- "varsIgnorePattern": "[A-Z]",
327
- "args": "none",
328
- "ignoreRestSiblings": true
329
- }
330
- ],
331
- "no-use-before-define": [
332
- "error",
333
- {
334
- "functions": false,
335
- "classes": false,
336
- "variables": false
337
- }
338
- ],
339
- "no-useless-call": "error",
340
- "no-useless-computed-key": "error",
341
- "no-useless-constructor": "off",
342
- "no-useless-escape": "error",
343
- "no-useless-rename": "error",
344
- "no-useless-return": "error",
345
- "no-whitespace-before-property": "error",
346
- "no-with": "error",
347
- "no-void": "error",
348
- "object-curly-spacing": 0,
349
- "object-property-newline": "off",
350
- "one-var": "off",
351
- "operator-linebreak": [
352
- "error",
353
- "after",
354
- {
355
- "overrides": {
356
- "?": "before",
357
- ":": "before",
358
- "|>": "before"
359
- }
360
- }
361
- ],
362
- "padded-blocks": [
363
- "error",
364
- {
365
- "classes": "always"
366
- }
367
- ],
368
- "prefer-const": [
369
- "off"
370
- ],
371
- "prefer-promise-reject-errors": [
372
- "error",
373
- {
374
- "allowEmptyReject": true
375
- }
376
- ],
377
- "quote-props": [
378
- "error",
379
- "consistent-as-needed"
380
- ],
381
- "quotes": [
382
- "error",
383
- "single",
384
- {
385
- "avoidEscape": true,
386
- "allowTemplateLiterals": true
387
- }
388
- ],
389
- "rest-spread-spacing": [
390
- "error",
391
- "never"
392
- ],
393
- "semi": [
394
- "error",
395
- "never"
396
- ],
397
- "semi-spacing": [
398
- "error",
399
- {
400
- "before": false,
401
- "after": true
402
- }
403
- ],
404
- "space-before-blocks": [
405
- "error",
406
- "always"
407
- ],
408
- "space-before-function-paren": [
409
- "error",
410
- {
411
- "anonymous": "always",
412
- "named": "never"
413
- }
414
- ],
415
- "space-in-parens": [
416
- "error",
417
- "never"
418
- ],
419
- "space-infix-ops": "error",
420
- "space-unary-ops": [
421
- "error",
422
- {
423
- "words": true,
424
- "nonwords": false
425
- }
426
- ],
427
- "spaced-comment": [
428
- "error",
429
- "always",
430
- {
431
- "line": {
432
- "markers": [
433
- "*package",
434
- "!",
435
- "/",
436
- ",",
437
- "="
438
- ]
439
- },
440
- "block": {
441
- "balanced": true,
442
- "markers": [
443
- "*package",
444
- "!",
445
- ",",
446
- ":",
447
- "::",
448
- "flow-include"
449
- ],
450
- "exceptions": [
451
- "*"
452
- ]
453
- }
454
- }
455
- ],
456
- "symbol-description": "error",
457
- "template-curly-spacing": [
458
- "error",
459
- "never"
460
- ],
461
- "template-tag-spacing": [
462
- "error",
463
- "never"
464
- ],
465
- "unicode-bom": [
466
- "error",
467
- "never"
468
- ],
469
- "use-isnan": "error",
470
- "valid-typeof": [
471
- "error",
472
- {
473
- "requireStringLiterals": true
474
- }
475
- ],
476
- "wrap-iife": [
477
- "error",
478
- "any",
479
- {
480
- "functionPrototypeMethods": true
481
- }
482
- ],
483
- "yield-star-spacing": [
484
- "error",
485
- "both"
486
- ],
487
- "yoda": [
488
- "error",
489
- "never"
490
- ]
491
- }
492
- }