@adbayb/stack 3.0.0 → 3.0.1
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/configs/oxlint/index.ts +2 -0
- package/dist/configs/oxlint.d.ts +2 -0
- package/dist/configs/oxlint.js +3 -1
- package/dist/index.js +3 -2
- package/package.json +3 -3
package/configs/oxlint/index.ts
CHANGED
|
@@ -255,6 +255,7 @@ const config = defineConfig({
|
|
|
255
255
|
"no-magic-numbers": "off",
|
|
256
256
|
"no-optional-chaining": "off",
|
|
257
257
|
"no-param-reassign": "off",
|
|
258
|
+
"no-plusplus": "off",
|
|
258
259
|
"no-rest-spread-properties": "off",
|
|
259
260
|
"no-ternary": "off",
|
|
260
261
|
"no-undef": "off",
|
|
@@ -302,6 +303,7 @@ const config = defineConfig({
|
|
|
302
303
|
"unicorn/no-array-reduce": "off",
|
|
303
304
|
"unicorn/no-useless-switch-case": "off",
|
|
304
305
|
"unicorn/no-useless-undefined": "off",
|
|
306
|
+
"unicorn/prefer-math-trunc": "off", // No really identical replacement especially for `hash >>> 0` ensuring a positive integer
|
|
305
307
|
},
|
|
306
308
|
});
|
|
307
309
|
|
package/dist/configs/oxlint.d.ts
CHANGED
|
@@ -213,6 +213,7 @@ declare const config: {
|
|
|
213
213
|
"no-magic-numbers": "off";
|
|
214
214
|
"no-optional-chaining": "off";
|
|
215
215
|
"no-param-reassign": "off";
|
|
216
|
+
"no-plusplus": "off";
|
|
216
217
|
"no-rest-spread-properties": "off";
|
|
217
218
|
"no-ternary": "off";
|
|
218
219
|
"no-undef": "off";
|
|
@@ -264,6 +265,7 @@ declare const config: {
|
|
|
264
265
|
"unicorn/no-array-reduce": "off";
|
|
265
266
|
"unicorn/no-useless-switch-case": "off";
|
|
266
267
|
"unicorn/no-useless-undefined": "off";
|
|
268
|
+
"unicorn/prefer-math-trunc": "off";
|
|
267
269
|
};
|
|
268
270
|
};
|
|
269
271
|
declare const createConfig: ({ ignorePatterns }: Required<Pick<OxlintConfig, "ignorePatterns">>) => OxlintConfig;
|
package/dist/configs/oxlint.js
CHANGED
|
@@ -263,6 +263,7 @@ const config = defineConfig({
|
|
|
263
263
|
"no-magic-numbers": "off",
|
|
264
264
|
"no-optional-chaining": "off",
|
|
265
265
|
"no-param-reassign": "off",
|
|
266
|
+
"no-plusplus": "off",
|
|
266
267
|
"no-rest-spread-properties": "off",
|
|
267
268
|
"no-ternary": "off",
|
|
268
269
|
"no-undef": "off",
|
|
@@ -309,7 +310,8 @@ const config = defineConfig({
|
|
|
309
310
|
"unicorn/no-array-for-each": "off",
|
|
310
311
|
"unicorn/no-array-reduce": "off",
|
|
311
312
|
"unicorn/no-useless-switch-case": "off",
|
|
312
|
-
"unicorn/no-useless-undefined": "off"
|
|
313
|
+
"unicorn/no-useless-undefined": "off",
|
|
314
|
+
"unicorn/prefer-math-trunc": "off"
|
|
313
315
|
}
|
|
314
316
|
});
|
|
315
317
|
const createConfig = ({ ignorePatterns }) => {
|
package/dist/index.js
CHANGED
|
@@ -442,7 +442,7 @@ const PRESERVE_FILES = ["node_modules"];
|
|
|
442
442
|
|
|
443
443
|
//#endregion
|
|
444
444
|
//#region package.json
|
|
445
|
-
var version = "3.0.
|
|
445
|
+
var version = "3.0.1";
|
|
446
446
|
|
|
447
447
|
//#endregion
|
|
448
448
|
//#region src/commands/create.ts
|
|
@@ -731,7 +731,8 @@ const createInstallCommand = (program) => {
|
|
|
731
731
|
}).task({
|
|
732
732
|
label: label("Install `git.pre-commit` hook"),
|
|
733
733
|
async handler() {
|
|
734
|
-
const
|
|
734
|
+
const lineBreakMatcher = String.raw`\n|\r\n`;
|
|
735
|
+
const stackCommand = getStackCommand(`fix $(node -e 'console.log(require("child_process").execSync("git status --porcelain", {encoding: "utf8"}).split(/${lineBreakMatcher}/).filter(Boolean).map(item => item.split(" ").at(-1)).join(" "))')`);
|
|
735
736
|
await installGitHook("pre-commit", `${stackCommand} && git add -A`);
|
|
736
737
|
}
|
|
737
738
|
}).task({
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adbayb/stack",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.1",
|
|
4
4
|
"description": "My opinionated JavaScript-based toolchain",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"development",
|
|
@@ -61,13 +61,13 @@
|
|
|
61
61
|
"oxfmt": "^0.61.0",
|
|
62
62
|
"oxlint": "^1.76.0",
|
|
63
63
|
"oxlint-tsgolint": "^7.0.2001",
|
|
64
|
-
"termost": "^1.9.
|
|
64
|
+
"termost": "^1.9.2",
|
|
65
65
|
"turbo": "^2.10.8",
|
|
66
66
|
"typescript": "^6.0.3"
|
|
67
67
|
},
|
|
68
68
|
"devDependencies": {
|
|
69
69
|
"@types/node": "24.13.3",
|
|
70
|
-
"quickbundle": "3.1.
|
|
70
|
+
"quickbundle": "3.1.1"
|
|
71
71
|
},
|
|
72
72
|
"scripts": {
|
|
73
73
|
"build": "quickbundle build",
|