@pob/eslint-config 67.1.1 → 67.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/lib/_base.js CHANGED
@@ -1,5 +1,6 @@
1
1
  import js from "@eslint/js";
2
2
  import pobPlugin from "@pob/eslint-plugin";
3
+ import checkPackageDependenciesConfigs from "./languages/check-package-dependencies.js";
3
4
  import jsonConfigs from "./languages/json.js";
4
5
  import regexpPluginConfigs from "./plugins/regexp.js";
5
6
  import unicornPluginConfigs from "./plugins/unicorn.js";
@@ -38,6 +39,7 @@ export default [
38
39
  ],
39
40
  },
40
41
  ...jsonConfigs,
42
+ ...checkPackageDependenciesConfigs,
41
43
  ...apply({
42
44
  extensions: "{js,mjs,cjs,ts,tsx}",
43
45
  mode: "add-extensions",
package/lib/index.js CHANGED
@@ -9,13 +9,12 @@ import allowImplicitReturnTypeConfig from "./overrides/allow-implicit-return-typ
9
9
  import allowUnsafeAsWarnConfig from "./overrides/allow-unsafe-as-warn.js";
10
10
  import allowUnsafeConfig from "./overrides/allow-unsafe.js";
11
11
  import appConfig from "./overrides/app.js";
12
- import monorepoRootConfigsConfig from "./overrides/monorepo-root-configs.js";
13
12
  import scriptsOverrideConfig from "./overrides/scripts.js";
14
13
  import {
15
14
  testOverrideConfigsWithTypescript,
16
15
  testOverrideConfigsWithoutTypescript,
17
16
  } from "./overrides/test.js";
18
- import checkPackageDependenciesConfigs from "./plugins/check-package-dependencies.js";
17
+ import toolsProjectConfig from "./overrides/tools-project.js";
19
18
  import importPluginBaseConfigs from "./plugins/import/import-base.js";
20
19
  import importPluginCommonjsConfig from "./plugins/import/import-commonjs.js";
21
20
  import importPluginModuleConfig from "./plugins/import/import-module.js";
@@ -193,8 +192,7 @@ export default {
193
192
  configs: [appConfig],
194
193
  }),
195
194
 
196
- monorepo: [monorepoRootConfigsConfig],
197
-
198
- checkPackages: checkPackageDependenciesConfigs,
195
+ monorepo: [toolsProjectConfig],
196
+ toolsProject: [toolsProjectConfig],
199
197
  },
200
198
  };
@@ -0,0 +1,17 @@
1
+ // non-published typescript run in place (scripts/**/*.ts, root *.config.ts) is
2
+ // not part of any emitting tsconfig.json, so it uses the dedicated
3
+ // tsconfig.tools.json project for type-aware linting. The scripts glob is
4
+ // **/scripts/** so it covers both single repos and monorepo package scripts
5
+ // (packages/*/scripts, @scope/*/scripts, ...) against the root tools project.
6
+ export default {
7
+ name: "@pob/eslint-config/overrides/tools-project",
8
+ files: ["**/scripts/**/*.{ts,mts,cts}", "*.config.{ts,mts,cts}"],
9
+ languageOptions: {
10
+ parserOptions: {
11
+ project: "tsconfig.tools.json",
12
+ },
13
+ },
14
+ settings: {
15
+ "import-x/core-modules": ["vitest"],
16
+ },
17
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pob/eslint-config",
3
- "version": "67.1.1",
3
+ "version": "67.3.0",
4
4
  "description": "eslint config files",
5
5
  "keywords": [],
6
6
  "homepage": "https://github.com/christophehurpeau/pob",
@@ -38,7 +38,7 @@
38
38
  "@eslint/json": "^1.2.0",
39
39
  "@typescript-eslint/eslint-plugin": "8.63.0",
40
40
  "@typescript-eslint/parser": "8.63.0",
41
- "check-package-dependencies": "^12.1.0",
41
+ "check-package-dependencies": "^13.0.0",
42
42
  "confusing-browser-globals": "^1.0.11",
43
43
  "eslint-plugin-import-x": "^4.17.1",
44
44
  "eslint-plugin-n": "^17.24.0",
@@ -58,7 +58,7 @@
58
58
  "typescript-eslint": "8.63.0"
59
59
  },
60
60
  "peerDependencies": {
61
- "eslint": "^10.6.0",
61
+ "eslint": "^10.8.0",
62
62
  "typescript": ">=5.0.0 <8.0.0"
63
63
  },
64
64
  "peerDependenciesMeta": {
@@ -1,15 +0,0 @@
1
- // root config files written in typescript (e.g. vitest.config.ts) are not part
2
- // of any package tsconfig, so they use the dedicated tsconfig.root-configs.json
3
- // project for type-aware linting
4
- export default {
5
- name: "@pob/eslint-config/overrides/monorepo-root-configs",
6
- files: ["*.config.{ts,mts,cts}"],
7
- languageOptions: {
8
- parserOptions: {
9
- project: "tsconfig.root-configs.json",
10
- },
11
- },
12
- settings: {
13
- "import-x/core-modules": ["vitest"],
14
- },
15
- };