@theholocron/eslint-config 7.21.0 → 7.22.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/dist/bundles/library.js +2 -0
- package/dist/bundles/next-app.js +3 -1
- package/dist/bundles/node-app.js +3 -1
- package/dist/bundles/react-app.js +3 -1
- package/dist/configs/package-json.d.ts +5 -0
- package/dist/configs/package-json.js +15 -0
- package/dist/index.d.ts +2 -1
- package/dist/index.js +2 -1
- package/package.json +11 -5
package/dist/bundles/library.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { base } from "../configs/base.js";
|
|
2
|
+
import { packageJson } from "../configs/package-json.js";
|
|
2
3
|
import { typescript } from "../configs/typescript.js";
|
|
3
4
|
import { node } from "../configs/node.js";
|
|
4
5
|
//#region bundles/library.ts
|
|
@@ -7,6 +8,7 @@ function library() {
|
|
|
7
8
|
...base(),
|
|
8
9
|
...node(),
|
|
9
10
|
...typescript(),
|
|
11
|
+
...packageJson(),
|
|
10
12
|
{
|
|
11
13
|
name: "@theholocron/library",
|
|
12
14
|
rules: { "n/hashbang": "off" }
|
package/dist/bundles/next-app.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { base } from "../configs/base.js";
|
|
2
|
+
import { packageJson } from "../configs/package-json.js";
|
|
2
3
|
import { typescript } from "../configs/typescript.js";
|
|
3
4
|
import { cypress as cypressConfig } from "../configs/cypress.js";
|
|
4
5
|
import { next as nextConfig } from "../configs/next.js";
|
|
@@ -14,7 +15,8 @@ function nextApp() {
|
|
|
14
15
|
...nextConfig(),
|
|
15
16
|
...vitestConfig(),
|
|
16
17
|
...storybookConfig(),
|
|
17
|
-
...cypressConfig()
|
|
18
|
+
...cypressConfig(),
|
|
19
|
+
...packageJson()
|
|
18
20
|
];
|
|
19
21
|
}
|
|
20
22
|
//#endregion
|
package/dist/bundles/node-app.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { base } from "../configs/base.js";
|
|
2
|
+
import { packageJson } from "../configs/package-json.js";
|
|
2
3
|
import { typescript } from "../configs/typescript.js";
|
|
3
4
|
import { node } from "../configs/node.js";
|
|
4
5
|
import { vitest as vitestConfig } from "../configs/vitest.js";
|
|
@@ -8,7 +9,8 @@ function nodeApp() {
|
|
|
8
9
|
...base(),
|
|
9
10
|
...node(),
|
|
10
11
|
...typescript(),
|
|
11
|
-
...vitestConfig()
|
|
12
|
+
...vitestConfig(),
|
|
13
|
+
...packageJson()
|
|
12
14
|
];
|
|
13
15
|
}
|
|
14
16
|
//#endregion
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { base } from "../configs/base.js";
|
|
2
|
+
import { packageJson } from "../configs/package-json.js";
|
|
2
3
|
import { typescript } from "../configs/typescript.js";
|
|
3
4
|
import { react as reactConfig } from "../configs/react.js";
|
|
4
5
|
import { storybook as storybookConfig } from "../configs/storybook.js";
|
|
@@ -10,7 +11,8 @@ function reactApp() {
|
|
|
10
11
|
...typescript(),
|
|
11
12
|
...reactConfig(),
|
|
12
13
|
...storybookConfig(),
|
|
13
|
-
...vitestConfig()
|
|
14
|
+
...vitestConfig(),
|
|
15
|
+
...packageJson()
|
|
14
16
|
];
|
|
15
17
|
}
|
|
16
18
|
//#endregion
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import eslintPackageJson from "eslint-package-json";
|
|
2
|
+
//#region configs/package-json.ts
|
|
3
|
+
function packageJson() {
|
|
4
|
+
return [{
|
|
5
|
+
name: "@theholocron/package-json",
|
|
6
|
+
...eslintPackageJson.configs.recommended,
|
|
7
|
+
rules: {
|
|
8
|
+
...eslintPackageJson.configs.recommended.rules,
|
|
9
|
+
"package-json/dependency-version-range": "off",
|
|
10
|
+
"package-json/no-wildcard-dependencies": "off"
|
|
11
|
+
}
|
|
12
|
+
}];
|
|
13
|
+
}
|
|
14
|
+
//#endregion
|
|
15
|
+
export { packageJson };
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@theholocron/eslint-config",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.22.0",
|
|
4
4
|
"description": "A ESLint configuration for writing well-formed Javascript within the Galaxy.",
|
|
5
5
|
"homepage": "https://github.com/theholocron/configs/tree/main/packages/eslint-config#readme",
|
|
6
6
|
"bugs": "https://github.com/theholocron/configs/issues",
|
|
@@ -22,7 +22,8 @@
|
|
|
22
22
|
],
|
|
23
23
|
"type": "module",
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@eslint/compat": "^2.1.0"
|
|
25
|
+
"@eslint/compat": "^2.1.0",
|
|
26
|
+
"eslint-package-json": "^0.3.0"
|
|
26
27
|
},
|
|
27
28
|
"devDependencies": {
|
|
28
29
|
"@eslint/js": "^10.0.0",
|
|
@@ -33,8 +34,8 @@
|
|
|
33
34
|
"typescript": "^5.9.3",
|
|
34
35
|
"typescript-eslint": "^8.66.0",
|
|
35
36
|
"vitest": "^4.1.10",
|
|
36
|
-
"@theholocron/
|
|
37
|
-
"@theholocron/
|
|
37
|
+
"@theholocron/tsconfig": "7.22.0",
|
|
38
|
+
"@theholocron/vitest-config": "7.22.0"
|
|
38
39
|
},
|
|
39
40
|
"exports": {
|
|
40
41
|
".": {
|
|
@@ -67,6 +68,11 @@
|
|
|
67
68
|
"import": "./dist/configs/node.js",
|
|
68
69
|
"default": "./dist/configs/node.js"
|
|
69
70
|
},
|
|
71
|
+
"./package-json": {
|
|
72
|
+
"types": "./dist/configs/package-json.d.ts",
|
|
73
|
+
"import": "./dist/configs/package-json.js",
|
|
74
|
+
"default": "./dist/configs/package-json.js"
|
|
75
|
+
},
|
|
70
76
|
"./vitest": {
|
|
71
77
|
"types": "./dist/configs/vitest.d.ts",
|
|
72
78
|
"import": "./dist/configs/vitest.js",
|
|
@@ -115,8 +121,8 @@
|
|
|
115
121
|
"eslint-plugin-cypress": "^6",
|
|
116
122
|
"eslint-plugin-n": "^18",
|
|
117
123
|
"eslint-plugin-react": "^7",
|
|
118
|
-
"eslint-plugin-storybook": "^10",
|
|
119
124
|
"eslint-plugin-simple-import-sort": "^14",
|
|
125
|
+
"eslint-plugin-storybook": "^10",
|
|
120
126
|
"globals": "^17",
|
|
121
127
|
"typescript-eslint": "^8"
|
|
122
128
|
},
|