@playcanvas/eslint-config 1.2.0 → 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.
Files changed (2) hide show
  1. package/index.js +15 -0
  2. package/package.json +3 -2
package/index.js CHANGED
@@ -381,6 +381,20 @@ module.exports = {
381
381
  "wrap-regex": "off",
382
382
  "yield-star-spacing": "error",
383
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
+
384
398
  // JSDoc rules
385
399
  "jsdoc/check-access": "error",
386
400
  "jsdoc/check-alignment": "error",
@@ -438,6 +452,7 @@ module.exports = {
438
452
  },
439
453
 
440
454
  "plugins": [
455
+ "import",
441
456
  "jsdoc"
442
457
  ],
443
458
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@playcanvas/eslint-config",
3
- "version": "1.2.0",
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-jsdoc": "^39.3.3"
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"