@meteorlxy/eslint-config 2.9.0 → 2.11.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/lib/index.js +21 -0
  2. package/package.json +2 -2
package/lib/index.js CHANGED
@@ -1,3 +1,5 @@
1
+ const airbnbRulesImports = require('eslint-config-airbnb-base/rules/imports');
2
+
1
3
  /**
2
4
  * Based on Airbnb JavaScript Base Style
3
5
  *
@@ -67,6 +69,25 @@ module.exports = {
67
69
  },
68
70
  ],
69
71
 
72
+ // Add config files of some other tools
73
+ // @see https://github.com/import-js/eslint-plugin-import/blob/main/docs/rules/no-extraneous-dependencies.md
74
+ 'import/no-extraneous-dependencies': [
75
+ airbnbRulesImports.rules['import/no-extraneous-dependencies'][0],
76
+ {
77
+ ...airbnbRulesImports.rules['import/no-extraneous-dependencies'][1],
78
+ devDependencies: [
79
+ ...airbnbRulesImports.rules['import/no-extraneous-dependencies'][1]
80
+ .devDependencies,
81
+ '**/.vitepress/*.js',
82
+ '**/.vuepress/*.js',
83
+ '**/tsup.config.js',
84
+ '**/vite.config.js',
85
+ '**/vitest.config.js',
86
+ '**/vuepress.config.js',
87
+ ],
88
+ },
89
+ ],
90
+
70
91
  /**
71
92
  * Override airbnb-base rules to ensure import order
72
93
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@meteorlxy/eslint-config",
3
- "version": "2.9.0",
3
+ "version": "2.11.0",
4
4
  "description": "meteorlxy eslint config",
5
5
  "keywords": [
6
6
  "config",
@@ -25,5 +25,5 @@
25
25
  "publishConfig": {
26
26
  "access": "public"
27
27
  },
28
- "gitHead": "74b8742085fab0087bfd67aef778521b2d62010e"
28
+ "gitHead": "f5cb476a66acf2856eb5c303bd6c7dacd71c60f1"
29
29
  }