@playcanvas/eslint-config 1.4.1 → 1.6.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 +10 -7
- package/package.json +3 -3
package/index.js
CHANGED
|
@@ -383,16 +383,19 @@ module.exports = {
|
|
|
383
383
|
|
|
384
384
|
// Import rules
|
|
385
385
|
|
|
386
|
-
// Static
|
|
387
|
-
"import/
|
|
386
|
+
// Static analysis
|
|
387
|
+
"import/default": "error",
|
|
388
388
|
"import/named": "error",
|
|
389
389
|
"import/namespace": "error",
|
|
390
|
-
"import/
|
|
391
|
-
"import/export": "error",
|
|
390
|
+
"import/no-unresolved": "error",
|
|
392
391
|
|
|
393
|
-
// Helpful
|
|
392
|
+
// Helpful warnings
|
|
393
|
+
"import/export": "error",
|
|
394
394
|
"import/no-named-as-default": "warn",
|
|
395
395
|
"import/no-named-as-default-member": "warn",
|
|
396
|
+
|
|
397
|
+
// Style guide
|
|
398
|
+
"import/extensions": ["error", "always"],
|
|
396
399
|
"import/no-duplicates": "warn",
|
|
397
400
|
|
|
398
401
|
// JSDoc rules
|
|
@@ -405,7 +408,7 @@ module.exports = {
|
|
|
405
408
|
"jsdoc/check-property-names": "error",
|
|
406
409
|
"jsdoc/check-syntax": "error",
|
|
407
410
|
"jsdoc/check-tag-names": "error",
|
|
408
|
-
"jsdoc/check-types": "
|
|
411
|
+
"jsdoc/check-types": "off",
|
|
409
412
|
"jsdoc/check-values": "error",
|
|
410
413
|
"jsdoc/empty-tags": "error",
|
|
411
414
|
"jsdoc/implements-on-classes": "error",
|
|
@@ -465,7 +468,7 @@ module.exports = {
|
|
|
465
468
|
|
|
466
469
|
"env": {
|
|
467
470
|
"browser": true,
|
|
468
|
-
"
|
|
471
|
+
"es2020": true,
|
|
469
472
|
"node": true,
|
|
470
473
|
"worker": true
|
|
471
474
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@playcanvas/eslint-config",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.6.0",
|
|
4
4
|
"author": "PlayCanvas <support@playcanvas.com>",
|
|
5
5
|
"homepage": "https://playcanvas.com",
|
|
6
6
|
"description": "ESLint configuration used by PlayCanvas",
|
|
@@ -26,8 +26,8 @@
|
|
|
26
26
|
"README.md"
|
|
27
27
|
],
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"eslint-plugin-import": "^2.
|
|
30
|
-
"eslint-plugin-jsdoc": "^
|
|
29
|
+
"eslint-plugin-import": "^2.28.0",
|
|
30
|
+
"eslint-plugin-jsdoc": "^46.4.6"
|
|
31
31
|
},
|
|
32
32
|
"scripts": {
|
|
33
33
|
"test": "echo \"Error: no test specified\" && exit 1"
|