@21torr/janus 1.0.4 → 1.0.6
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 +14 -0
- package/_init/library/package.json +2 -1
- package/_init/next-js/package.json +2 -1
- package/_init/next-js/tsconfig.json +1 -1
- package/bin/cli.mjs +12 -0
- package/eslint/base.mjs +10 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
1.0.6
|
|
2
|
+
=====
|
|
3
|
+
|
|
4
|
+
* (improvement) Disable eslint rule `@typescript-eslint/no-namespace` only for files in `src/@types`.
|
|
5
|
+
* (improvement) Add to `lint:eslint` and `fix-lint:eslint` in both init `package.json` the `--no-error-on-unmatched-pattern` flag.
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
1.0.5
|
|
9
|
+
=====
|
|
10
|
+
|
|
11
|
+
* (improvement) Update ESLint integration for next.js projects.
|
|
12
|
+
* (bug) Fix wrong module in `tsconfig.json` for next-js.
|
|
13
|
+
|
|
14
|
+
|
|
1
15
|
1.0.4
|
|
2
16
|
=====
|
|
3
17
|
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"scripts": {
|
|
3
3
|
"fix-lint": "pnpm run /^fix-lint:.*/",
|
|
4
|
+
"fix-lint:eslint": "eslint --fix --no-error-on-unmatched-pattern src || 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 --no-error-on-unmatched-pattern src",
|
|
8
10
|
"lint:format": "dprint check",
|
|
9
|
-
"lint:eslint": "eslint src",
|
|
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:.*/",
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"scripts": {
|
|
3
3
|
"fix-lint": "pnpm run /^fix-lint:.*/",
|
|
4
|
+
"fix-lint:eslint": "eslint --fix --no-error-on-unmatched-pattern 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 --no-error-on-unmatched-pattern 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/eslint/base.mjs
CHANGED
|
@@ -174,5 +174,14 @@ export default [
|
|
|
174
174
|
"@typescript-eslint/no-duplicate-type-constituents": "off",
|
|
175
175
|
// endregion
|
|
176
176
|
}
|
|
177
|
-
}
|
|
177
|
+
},
|
|
178
|
+
{
|
|
179
|
+
name: "Allow namespace in @types",
|
|
180
|
+
rules: {
|
|
181
|
+
"@typescript-eslint/no-namespace": "off",
|
|
182
|
+
},
|
|
183
|
+
files: [
|
|
184
|
+
"src/@types/*",
|
|
185
|
+
],
|
|
186
|
+
},
|
|
178
187
|
];
|
package/package.json
CHANGED