@playcanvas/eslint-config 1.6.0 → 1.7.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.
- package/index.js +9 -5
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
module.exports = {
|
|
2
2
|
|
|
3
3
|
"parserOptions": {
|
|
4
|
-
"ecmaVersion":
|
|
4
|
+
"ecmaVersion": 2022,
|
|
5
5
|
"sourceType": "module",
|
|
6
6
|
"ecmaFeatures": {}
|
|
7
7
|
},
|
|
@@ -45,6 +45,7 @@ module.exports = {
|
|
|
45
45
|
"no-irregular-whitespace": "error",
|
|
46
46
|
"no-loss-of-precision": "error",
|
|
47
47
|
"no-misleading-character-class": "error",
|
|
48
|
+
"no-new-native-nonconstructor": "error",
|
|
48
49
|
"no-new-symbol": "error",
|
|
49
50
|
"no-obj-calls": "error",
|
|
50
51
|
"no-promise-executor-return": "error",
|
|
@@ -104,6 +105,7 @@ module.exports = {
|
|
|
104
105
|
"id-length": "off",
|
|
105
106
|
"id-match": "off",
|
|
106
107
|
"init-declarations": "off",
|
|
108
|
+
"logical-assignment-operators": "off",
|
|
107
109
|
"max-classes-per-file": "off",
|
|
108
110
|
"max-depth": "off",
|
|
109
111
|
"max-lines": "off",
|
|
@@ -130,6 +132,7 @@ module.exports = {
|
|
|
130
132
|
}
|
|
131
133
|
],
|
|
132
134
|
"no-empty-function": "off",
|
|
135
|
+
"no-empty-static-block": "error",
|
|
133
136
|
"no-eq-null": "off",
|
|
134
137
|
"no-eval": "error",
|
|
135
138
|
"no-extend-native": "error",
|
|
@@ -174,7 +177,6 @@ module.exports = {
|
|
|
174
177
|
"no-restricted-properties": "off",
|
|
175
178
|
"no-restricted-syntax": "error",
|
|
176
179
|
"no-return-assign": "error",
|
|
177
|
-
"no-return-await": "error",
|
|
178
180
|
"no-script-url": "error",
|
|
179
181
|
"no-sequences": "error",
|
|
180
182
|
"no-shadow": "off",
|
|
@@ -395,7 +397,7 @@ module.exports = {
|
|
|
395
397
|
"import/no-named-as-default-member": "warn",
|
|
396
398
|
|
|
397
399
|
// Style guide
|
|
398
|
-
"import/extensions": ["error", "always"],
|
|
400
|
+
"import/extensions": ["error", "always", { "ts": "never", "tsx": "never" }],
|
|
399
401
|
"import/no-duplicates": "warn",
|
|
400
402
|
|
|
401
403
|
// JSDoc rules
|
|
@@ -418,7 +420,8 @@ module.exports = {
|
|
|
418
420
|
"jsdoc/multiline-blocks": "error",
|
|
419
421
|
"jsdoc/no-bad-blocks": "error",
|
|
420
422
|
"jsdoc/no-blank-block-descriptions": "error",
|
|
421
|
-
"jsdoc/no-
|
|
423
|
+
"jsdoc/no-blank-blocks": "error",
|
|
424
|
+
"jsdoc/no-defaults": "error",
|
|
422
425
|
"jsdoc/no-missing-syntax": "off",
|
|
423
426
|
"jsdoc/no-multi-asterisks": "error",
|
|
424
427
|
"jsdoc/no-restricted-syntax": "off",
|
|
@@ -452,6 +455,7 @@ module.exports = {
|
|
|
452
455
|
"jsdoc/require-yields-check": "error",
|
|
453
456
|
"jsdoc/sort-tags": "off",
|
|
454
457
|
"jsdoc/tag-lines": "off",
|
|
458
|
+
"jsdoc/text-escaping": "off",
|
|
455
459
|
"jsdoc/valid-types": "off"
|
|
456
460
|
},
|
|
457
461
|
|
|
@@ -468,7 +472,7 @@ module.exports = {
|
|
|
468
472
|
|
|
469
473
|
"env": {
|
|
470
474
|
"browser": true,
|
|
471
|
-
"
|
|
475
|
+
"es2022": true,
|
|
472
476
|
"node": true,
|
|
473
477
|
"worker": true
|
|
474
478
|
}
|