@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 CHANGED
@@ -1,3 +1,10 @@
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
+
1
8
  1.0.4
2
9
  =====
3
10
 
@@ -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:.*/",
@@ -12,7 +12,7 @@
12
12
  "dom.iterable",
13
13
  "esnext"
14
14
  ],
15
- "module": "NodeNext",
15
+ "module": "ESNext",
16
16
  "moduleResolution": "bundler",
17
17
  "noEmit": true,
18
18
  "noImplicitOverride": true,
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
@@ -53,5 +53,5 @@
53
53
  "publishConfig": {
54
54
  "access": "public"
55
55
  },
56
- "version": "1.0.4"
56
+ "version": "1.0.5"
57
57
  }