@playcanvas/eslint-config 1.1.1 → 1.3.0
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 +19 -1
- package/package.json +3 -2
package/index.js
CHANGED
|
@@ -19,6 +19,7 @@ module.exports = {
|
|
|
19
19
|
"no-compare-neg-zero": "error",
|
|
20
20
|
"no-cond-assign": "error",
|
|
21
21
|
"no-const-assign": "error",
|
|
22
|
+
"no-constant-binary-expression": "error",
|
|
22
23
|
"no-constant-condition": [
|
|
23
24
|
"error", {
|
|
24
25
|
"checkLoops": false
|
|
@@ -93,7 +94,7 @@ module.exports = {
|
|
|
93
94
|
"default-case-last": "off",
|
|
94
95
|
"default-param-last": "off",
|
|
95
96
|
"dot-notation": "error",
|
|
96
|
-
"eqeqeq": "
|
|
97
|
+
"eqeqeq": ["error", "smart"],
|
|
97
98
|
"func-name-matching": "error",
|
|
98
99
|
"func-names": "off",
|
|
99
100
|
"func-style": "off",
|
|
@@ -208,6 +209,7 @@ module.exports = {
|
|
|
208
209
|
"prefer-exponentiation-operator": "off",
|
|
209
210
|
"prefer-named-capture-group": "off",
|
|
210
211
|
"prefer-numeric-literals": "error",
|
|
212
|
+
"prefer-object-has-own": "off",
|
|
211
213
|
"prefer-object-spread": "off",
|
|
212
214
|
"prefer-promise-reject-errors": "error",
|
|
213
215
|
"prefer-regex-literals": "off",
|
|
@@ -379,6 +381,20 @@ module.exports = {
|
|
|
379
381
|
"wrap-regex": "off",
|
|
380
382
|
"yield-star-spacing": "error",
|
|
381
383
|
|
|
384
|
+
// Import rules
|
|
385
|
+
|
|
386
|
+
// Static Analysis
|
|
387
|
+
"import/no-unresolved": "error",
|
|
388
|
+
"import/named": "error",
|
|
389
|
+
"import/namespace": "error",
|
|
390
|
+
"import/default": "error",
|
|
391
|
+
"import/export": "error",
|
|
392
|
+
|
|
393
|
+
// Helpful Warnings
|
|
394
|
+
"import/no-named-as-default": "warn",
|
|
395
|
+
"import/no-named-as-default-member": "warn",
|
|
396
|
+
"import/no-duplicates": "warn",
|
|
397
|
+
|
|
382
398
|
// JSDoc rules
|
|
383
399
|
"jsdoc/check-access": "error",
|
|
384
400
|
"jsdoc/check-alignment": "error",
|
|
@@ -430,11 +446,13 @@ module.exports = {
|
|
|
430
446
|
"jsdoc/require-throws": "off",
|
|
431
447
|
"jsdoc/require-yields": "error",
|
|
432
448
|
"jsdoc/require-yields-check": "error",
|
|
449
|
+
"jsdoc/sort-tags": "off",
|
|
433
450
|
"jsdoc/tag-lines": "off",
|
|
434
451
|
"jsdoc/valid-types": "off"
|
|
435
452
|
},
|
|
436
453
|
|
|
437
454
|
"plugins": [
|
|
455
|
+
"import",
|
|
438
456
|
"jsdoc"
|
|
439
457
|
],
|
|
440
458
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@playcanvas/eslint-config",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.3.0",
|
|
4
4
|
"author": "PlayCanvas <support@playcanvas.com>",
|
|
5
5
|
"homepage": "https://playcanvas.com",
|
|
6
6
|
"description": "ESLint configuration used by PlayCanvas",
|
|
@@ -26,7 +26,8 @@
|
|
|
26
26
|
"README.md"
|
|
27
27
|
],
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"eslint-plugin-
|
|
29
|
+
"eslint-plugin-import": "^2.26.0",
|
|
30
|
+
"eslint-plugin-jsdoc": "^39.3.6"
|
|
30
31
|
},
|
|
31
32
|
"scripts": {
|
|
32
33
|
"test": "echo \"Error: no test specified\" && exit 1"
|