eslint-config-complete 1.1.0 → 1.2.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-config-complete",
3
- "version": "1.1.0",
3
+ "version": "1.2.0",
4
4
  "description": "A sharable ESLint config for TypeScript projects.",
5
5
  "keywords": [
6
6
  "eslint",
@@ -295,4 +295,26 @@ export const baseImportX = tseslint.config(
295
295
  "import-x/no-default-export": "off",
296
296
  },
297
297
  },
298
+
299
+ {
300
+ files: ["eslint.config.js", "eslint.config.cjs", "eslint.config.mjs"],
301
+
302
+ rules: {
303
+ "import-x/no-extraneous-dependencies": [
304
+ "warn",
305
+ {
306
+ devDependencies: [
307
+ "eslint.config.js",
308
+ "eslint.config.cjs",
309
+ "eslint.config.mjs",
310
+ ],
311
+
312
+ // ESLint configs in monorepos will import from "eslint-config-complete" and
313
+ // "typescript-eslint", which might be installed as part of `complete-lint` (as a
314
+ // transitive dependency).
315
+ whitelist: ["eslint-config-complete", "typescript-eslint"],
316
+ },
317
+ ],
318
+ },
319
+ },
298
320
  );