@21torr/janus 1.0.4 → 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 +7 -0
- package/_init/next-js/package.json +2 -1
- package/_init/next-js/tsconfig.json +1 -1
- package/bin/cli.mjs +12 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -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/package.json
CHANGED