@pob/eslint-config 65.6.0 → 66.0.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/index.js +6 -0
- package/lib/overrides/monorepo-root-configs.js +15 -0
- package/lib/plugins/check-package-dependencies.js +3 -0
- package/package.json +37 -34
- package/CHANGELOG.md +0 -2036
package/lib/index.js
CHANGED
|
@@ -9,11 +9,13 @@ 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";
|
|
12
13
|
import scriptsOverrideConfig from "./overrides/scripts.js";
|
|
13
14
|
import {
|
|
14
15
|
testOverrideConfigsWithTypescript,
|
|
15
16
|
testOverrideConfigsWithoutTypescript,
|
|
16
17
|
} from "./overrides/test.js";
|
|
18
|
+
import checkPackageDependenciesConfigs from "./plugins/check-package-dependencies.js";
|
|
17
19
|
import importPluginBaseConfigs from "./plugins/import/import-base.js";
|
|
18
20
|
import importPluginCommonjsConfig from "./plugins/import/import-commonjs.js";
|
|
19
21
|
import importPluginModuleConfig from "./plugins/import/import-module.js";
|
|
@@ -188,6 +190,10 @@ export default () => {
|
|
|
188
190
|
app: applyTs({
|
|
189
191
|
configs: [appConfig],
|
|
190
192
|
}),
|
|
193
|
+
|
|
194
|
+
monorepo: [monorepoRootConfigsConfig],
|
|
195
|
+
|
|
196
|
+
checkPackages: checkPackageDependenciesConfigs,
|
|
191
197
|
},
|
|
192
198
|
};
|
|
193
199
|
};
|
|
@@ -0,0 +1,15 @@
|
|
|
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
|
+
};
|
package/package.json
CHANGED
|
@@ -1,20 +1,24 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pob/eslint-config",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "66.0.0",
|
|
4
4
|
"description": "eslint config files",
|
|
5
5
|
"keywords": [],
|
|
6
|
-
"
|
|
6
|
+
"homepage": "https://github.com/christophehurpeau/pob",
|
|
7
|
+
"bugs": {
|
|
8
|
+
"url": "https://github.com/christophehurpeau/pob/issues"
|
|
9
|
+
},
|
|
7
10
|
"license": "ISC",
|
|
11
|
+
"author": "Christophe Hurpeau <christophe@hurpeau.com> (http://christophe.hurpeau.com/)",
|
|
8
12
|
"repository": {
|
|
9
13
|
"type": "git",
|
|
10
|
-
"url": "https://github.com/christophehurpeau/
|
|
14
|
+
"url": "https://github.com/christophehurpeau/pob.git",
|
|
11
15
|
"directory": "@pob/eslint-config"
|
|
12
16
|
},
|
|
13
|
-
"
|
|
17
|
+
"files": [
|
|
18
|
+
"lib",
|
|
19
|
+
"utils.js"
|
|
20
|
+
],
|
|
14
21
|
"type": "module",
|
|
15
|
-
"engines": {
|
|
16
|
-
"node": ">=22.18.0"
|
|
17
|
-
},
|
|
18
22
|
"sideEffects": false,
|
|
19
23
|
"main": "./lib/index.js",
|
|
20
24
|
"exports": {
|
|
@@ -29,46 +33,45 @@
|
|
|
29
33
|
"publishConfig": {
|
|
30
34
|
"access": "public"
|
|
31
35
|
},
|
|
32
|
-
"files": [
|
|
33
|
-
"lib",
|
|
34
|
-
"utils.js"
|
|
35
|
-
],
|
|
36
|
-
"scripts": {
|
|
37
|
-
"lint": "yarn run lint:eslint",
|
|
38
|
-
"lint:eslint": "yarn '../..' run eslint --quiet '@pob/eslint-config'"
|
|
39
|
-
},
|
|
40
|
-
"pob": {},
|
|
41
|
-
"prettier": "@pob/root/prettier-config",
|
|
42
|
-
"peerDependencies": {
|
|
43
|
-
"eslint": "^9.39.1 || ^10.0.2",
|
|
44
|
-
"typescript": ">=5.0.0 <7.0.0"
|
|
45
|
-
},
|
|
46
|
-
"peerDependenciesMeta": {
|
|
47
|
-
"typescript": {
|
|
48
|
-
"optional": true
|
|
49
|
-
}
|
|
50
|
-
},
|
|
51
36
|
"dependencies": {
|
|
52
37
|
"@eslint/js": "^10.0.1",
|
|
53
38
|
"@eslint/json": "^1.2.0",
|
|
54
|
-
"@
|
|
55
|
-
"@typescript-eslint/
|
|
56
|
-
"
|
|
39
|
+
"@typescript-eslint/eslint-plugin": "8.63.0",
|
|
40
|
+
"@typescript-eslint/parser": "8.63.0",
|
|
41
|
+
"check-package-dependencies": "^12.1.0",
|
|
57
42
|
"confusing-browser-globals": "^1.0.11",
|
|
58
43
|
"eslint-plugin-import-x": "^4.16.2",
|
|
59
44
|
"eslint-plugin-n": "^17.24.0",
|
|
60
45
|
"eslint-plugin-regexp": "^3.1.0",
|
|
61
46
|
"eslint-plugin-unicorn": "^64.0.0",
|
|
62
|
-
"typescript-eslint": "^8.
|
|
47
|
+
"typescript-eslint": "^8.63.0",
|
|
48
|
+
"@pob/eslint-plugin": "66.0.0"
|
|
63
49
|
},
|
|
64
50
|
"devDependencies": {
|
|
65
|
-
"@types/node": "24.
|
|
66
|
-
"eslint": "10.
|
|
51
|
+
"@types/node": "24.13.3",
|
|
52
|
+
"eslint": "10.7.0",
|
|
67
53
|
"eslint-plugin-import-x": "4.16.2",
|
|
68
54
|
"eslint-plugin-n": "17.24.0",
|
|
69
55
|
"eslint-plugin-regexp": "3.1.0",
|
|
70
56
|
"eslint-plugin-unicorn": "64.0.0",
|
|
71
|
-
"typescript": "6.0.
|
|
72
|
-
"typescript-eslint": "8.
|
|
57
|
+
"typescript": "npm:@typescript/typescript6@6.0.2",
|
|
58
|
+
"typescript-eslint": "8.63.0"
|
|
59
|
+
},
|
|
60
|
+
"peerDependencies": {
|
|
61
|
+
"eslint": "^10.6.0",
|
|
62
|
+
"typescript": ">=5.0.0 <7.0.0"
|
|
63
|
+
},
|
|
64
|
+
"peerDependenciesMeta": {
|
|
65
|
+
"typescript": {
|
|
66
|
+
"optional": true
|
|
67
|
+
}
|
|
68
|
+
},
|
|
69
|
+
"engines": {
|
|
70
|
+
"node": ">=22.18.0"
|
|
71
|
+
},
|
|
72
|
+
"pob": {},
|
|
73
|
+
"scripts": {
|
|
74
|
+
"lint": "pnpm run lint:eslint",
|
|
75
|
+
"lint:eslint": "pnpm run --dir '../..' eslint --quiet '@pob/eslint-config'"
|
|
73
76
|
}
|
|
74
77
|
}
|