@21torr/janus 1.0.0 → 1.0.5
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/CHANGELOG.md +35 -0
- package/_init/next-js/package.json +2 -1
- package/_init/next-js/tsconfig.json +1 -1
- package/bin/cli.mjs +12 -0
- package/dprint/app.json +2 -2
- package/package.json +56 -37
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
1.0.5
|
|
2
|
+
=====
|
|
3
|
+
|
|
4
|
+
* (improvement) Update ESLint integration for next.js projects.
|
|
5
|
+
* (bug) Fix wrong module in `tsconfig.json` for next-js.
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
1.0.4
|
|
9
|
+
=====
|
|
10
|
+
|
|
11
|
+
* (bug) Fix release workflow once more.
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
1.0.3
|
|
15
|
+
=====
|
|
16
|
+
|
|
17
|
+
* (bug) Fix release workflow once more.
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
1.0.2
|
|
21
|
+
=====
|
|
22
|
+
|
|
23
|
+
* (bug) Fix release workflow.
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
1.0.1
|
|
27
|
+
=====
|
|
28
|
+
|
|
29
|
+
* (improvement) Bump dprint plugins.
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
1.0.0
|
|
33
|
+
=====
|
|
34
|
+
|
|
35
|
+
Initial Release `\o/`
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"scripts": {
|
|
3
3
|
"fix-lint": "pnpm run /^fix-lint:.*/",
|
|
4
|
+
"fix-lint:eslint": "eslint --fix src stories || true",
|
|
4
5
|
"fix-lint:format": "dprint fmt",
|
|
5
6
|
"fix-lint:stylelint": "stylelint 'assets/**/*.{scss,css}' 'src/**/*.{scss,css}' --color --fix",
|
|
6
7
|
"fix-lint:package.json": "prettier-package-json --use-tabs --write",
|
|
7
8
|
"lint": "pnpm run /^lint:.*/",
|
|
9
|
+
"lint:eslint": "eslint src stories",
|
|
8
10
|
"lint:format": "dprint check",
|
|
9
|
-
"lint:next": "next lint",
|
|
10
11
|
"lint:stylelint": "stylelint 'assets/**/*.{scss,css}' 'src/**/*.{scss,css}' --color",
|
|
11
12
|
"lint:package.json": "prettier-package-json --use-tabs --list-different",
|
|
12
13
|
"test": "pnpm run /^test:.*/",
|
package/bin/cli.mjs
CHANGED
|
@@ -87,6 +87,18 @@ program
|
|
|
87
87
|
|
|
88
88
|
console.log("");
|
|
89
89
|
|
|
90
|
+
if ("next-js" === appType)
|
|
91
|
+
{
|
|
92
|
+
console.log("");
|
|
93
|
+
console.log("You need to set `ignoreDuringBuilds` in your next config to circumvent the internal ESLint call in Next.js (we our own call):");
|
|
94
|
+
console.log("");
|
|
95
|
+
console.log(kleur.yellow(" eslint: {"));
|
|
96
|
+
console.log(kleur.yellow(" // we use ESLint directly"));
|
|
97
|
+
console.log(kleur.yellow(" ignoreDuringBuilds: true,"));
|
|
98
|
+
console.log(kleur.yellow(" }"));
|
|
99
|
+
console.log("");
|
|
100
|
+
}
|
|
101
|
+
|
|
90
102
|
if (hasAnyChange)
|
|
91
103
|
{
|
|
92
104
|
console.log(kleur.bgYellow(" "));
|
package/dprint/app.json
CHANGED
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
],
|
|
46
46
|
"plugins": [
|
|
47
47
|
"https://plugins.dprint.dev/json-0.19.3.wasm",
|
|
48
|
-
"https://plugins.dprint.dev/typescript-0.91.
|
|
49
|
-
"https://plugins.dprint.dev/prettier-0.
|
|
48
|
+
"https://plugins.dprint.dev/typescript-0.91.4.wasm",
|
|
49
|
+
"https://plugins.dprint.dev/prettier-0.46.1.json@e5bd083088a8dfc6e5ce2d3c9bee81489b065bd5345ef55b59f5d96627928b7a"
|
|
50
50
|
]
|
|
51
51
|
}
|
package/package.json
CHANGED
|
@@ -1,38 +1,57 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
2
|
+
"name": "@21torr/janus",
|
|
3
|
+
"description": "All config files and tools for code style tools, formatters and linters for TS / JS / SCSS / CSS.",
|
|
4
|
+
"license": "MIT",
|
|
5
|
+
"homepage": "https://github.com/21TORR/janus-ts",
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "https://github.com/21TORR/janus-ts.git"
|
|
9
|
+
},
|
|
10
|
+
"type": "module",
|
|
11
|
+
"bin": {
|
|
12
|
+
"janus": "bin/cli.mjs"
|
|
13
|
+
},
|
|
14
|
+
"scripts": {
|
|
15
|
+
"fix-lint": "pnpm run /^fix-lint:.*/",
|
|
16
|
+
"fix-lint:package": "prettier-package-json --use-tabs --write",
|
|
17
|
+
"lint": "pnpm run /^lint:.*/",
|
|
18
|
+
"lint:package": "prettier-package-json --use-tabs --list-different",
|
|
19
|
+
"prepare-release": "npm pack --dry-run && publint",
|
|
20
|
+
"test": "pnpm run /^test:.*/",
|
|
21
|
+
"test:eslint-nextjs": "eslint --config tests/next-js/eslint.config.mjs tests/next-js/test.ts",
|
|
22
|
+
"test:publint": "pnpm version '1.0.0-dummy' --no-git-tag-version && npm pack --dry-run && publint",
|
|
23
|
+
"test:stylelint": "stylelint --config tests/stylelint/.stylelintrc.yml 'tests/stylelint/*.{scss,css}' --color"
|
|
24
|
+
},
|
|
25
|
+
"dependencies": {
|
|
26
|
+
"@eslint/eslintrc": "^3.1.0",
|
|
27
|
+
"@eslint/js": "^9.6.0",
|
|
28
|
+
"@next/eslint-plugin-next": "^14.2.5",
|
|
29
|
+
"deep-equal-json": "^1.0.0",
|
|
30
|
+
"deep-extend": "^0.6.0",
|
|
31
|
+
"eslint-plugin-jsdoc": "^48.7.0",
|
|
32
|
+
"eslint-plugin-jsx-a11y": "^6.9.0",
|
|
33
|
+
"eslint-plugin-react": "^7.34.3",
|
|
34
|
+
"eslint-plugin-react-hooks": "^4.6.2",
|
|
35
|
+
"eslint-plugin-storybook": "^0.8.0",
|
|
36
|
+
"fs-extra": "^11.2.0",
|
|
37
|
+
"glob": "^10.3.10",
|
|
38
|
+
"globals": "^15.8.0",
|
|
39
|
+
"inquirer": "^9.2.12",
|
|
40
|
+
"kleur": "^4.1.5",
|
|
41
|
+
"postcss-scss": "^4.0.9",
|
|
42
|
+
"sade": "^1.8.1",
|
|
43
|
+
"stylelint-config-standard": "^36.0.1",
|
|
44
|
+
"stylelint-scss": "^6.4.1",
|
|
45
|
+
"typescript-eslint": "^7.16.0"
|
|
46
|
+
},
|
|
47
|
+
"devDependencies": {
|
|
48
|
+
"eslint": "^9.6.0",
|
|
49
|
+
"prettier-package-json": "^2.8.0",
|
|
50
|
+
"publint": "^0.2.9",
|
|
51
|
+
"stylelint": "^16.7.0"
|
|
52
|
+
},
|
|
53
|
+
"publishConfig": {
|
|
54
|
+
"access": "public"
|
|
55
|
+
},
|
|
56
|
+
"version": "1.0.5"
|
|
57
|
+
}
|