@anolilab/lint-staged-config 2.1.4 → 2.1.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 +12 -0
- package/dist/{chunk-PP4XAK3E.mjs → chunk-24WLFZUE.mjs} +3 -3
- package/dist/chunk-24WLFZUE.mjs.map +1 -0
- package/dist/{chunk-KP7AH4EU.js → chunk-PLWO6XD7.js} +3 -3
- package/dist/chunk-PLWO6XD7.js.map +1 -0
- package/dist/groups/eslint/index.js +2 -2
- package/dist/groups/eslint/index.mjs +1 -1
- package/dist/groups/json.js +2 -2
- package/dist/groups/json.mjs +1 -1
- package/dist/groups/markdown.js +2 -2
- package/dist/groups/markdown.mjs +1 -1
- package/dist/groups/stylesheets.js +2 -2
- package/dist/groups/stylesheets.mjs +1 -1
- package/dist/groups/tests.js +2 -2
- package/dist/groups/tests.mjs +1 -1
- package/package.json +2 -2
- package/dist/chunk-KP7AH4EU.js.map +0 -1
- package/dist/chunk-PP4XAK3E.mjs.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,15 @@
|
|
|
1
|
+
## @anolilab/lint-staged-config [2.1.5](https://github.com/anolilab/javascript-style-guide/compare/@anolilab/lint-staged-config@2.1.4...@anolilab/lint-staged-config@2.1.5) (2023-11-02)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* dont quote @ on a folder name ([5dae84f](https://github.com/anolilab/javascript-style-guide/commit/5dae84f0d7ee266ee0c1266cbef3ed987a338a0a))
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Miscellaneous Chores
|
|
10
|
+
|
|
11
|
+
* **deps:** update dependency stylelint to ^15.11.0 ([52ef87c](https://github.com/anolilab/javascript-style-guide/commit/52ef87c275c33e2ab4fca9f1ea4ba8ce65737a20))
|
|
12
|
+
|
|
1
13
|
## @anolilab/lint-staged-config [2.1.4](https://github.com/anolilab/javascript-style-guide/compare/@anolilab/lint-staged-config@2.1.3...@anolilab/lint-staged-config@2.1.4) (2023-11-02)
|
|
2
14
|
|
|
3
15
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { quote } from 'shell-quote';
|
|
2
2
|
import { platform, env } from 'process';
|
|
3
3
|
|
|
4
|
-
var n=platform==="win32"||/^(msys|cygwin)$/u.test(env.OSTYPE??""),t=n;var
|
|
4
|
+
var n=platform==="win32"||/^(msys|cygwin)$/u.test(env.OSTYPE??""),t=n;var m=i=>i.map(o=>`"${t?o:quote([o])}"`).join(" ").replaceAll("/@","/@"),f=m;
|
|
5
5
|
|
|
6
|
-
export { t as a,
|
|
6
|
+
export { t as a, f as b };
|
|
7
7
|
//# sourceMappingURL=out.js.map
|
|
8
|
-
//# sourceMappingURL=chunk-
|
|
8
|
+
//# sourceMappingURL=chunk-24WLFZUE.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/utils/concat-files.ts","../src/utils/is-windows.ts"],"names":["quote","env","platform","isWindows","is_windows_default","concatFiles","filenames","filename","concat_files_default"],"mappings":"AAAA,OAAS,SAAAA,MAAa,cCAtB,OAAS,OAAAC,EAAK,YAAAC,MAAgB,UAG9B,IAAMC,EAAYD,IAAa,SAAW,mBAAmB,KAAKD,EAAI,QAAa,EAAE,EAE9EG,EAAQD,EDaf,IAAME,EAAeC,GACjBA,EACK,IAAKC,GAAa,IAAIH,EAAYG,EAAWP,EAAM,CAACO,CAAQ,CAAC,CAAC,GAAG,EACjE,KAAK,GAAG,EACR,WAAW,KAAM,IAAI,EAEvBC,EAAQH","sourcesContent":["import { quote } from \"shell-quote\";\n\nimport isWindows from \"./is-windows\";\n\n/**\n * Concatenate and escape a list of filenames that can be passed as args to prettier cli\n *\n * Prettier and Stylelint have an issue with special characters in filenames,\n * such as the ones uses for Next.js dynamic routes (ie: [id].tsx...)\n *\n * @link https://github.com/okonet/lint-staged/issues/676\n *\n * The @ type shouldn't be quoted, but it is.\n * If a folder name contains a @, it will be escaped as \\@ (example test/@types), which is wrong.\n *\n * @param {string[]} filenames\n * @returns {string} Return concatenated and escaped filenames\n */\nconst concatFiles = (filenames: string[]): string =>\n filenames\n .map((filename) => `\"${isWindows ? filename : quote([filename])}\"`)\n .join(\" \")\n .replaceAll(\"/@\", \"/@\");\n\nexport default concatFiles;\n","import { env, platform } from \"node:process\";\n\n// eslint-disable-next-line regexp/no-unused-capturing-group\nconst isWindows = platform === \"win32\" || /^(msys|cygwin)$/u.test(env[\"OSTYPE\"] ?? \"\");\n\nexport default isWindows;\n"]}
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
var shellQuote = require('shell-quote');
|
|
4
4
|
var process = require('process');
|
|
5
5
|
|
|
6
|
-
var n=process.platform==="win32"||/^(msys|cygwin)$/u.test(process.env.OSTYPE??""),t=n;var
|
|
6
|
+
var n=process.platform==="win32"||/^(msys|cygwin)$/u.test(process.env.OSTYPE??""),t=n;var m=i=>i.map(o=>`"${t?o:shellQuote.quote([o])}"`).join(" ").replaceAll("/@","/@"),f=m;
|
|
7
7
|
|
|
8
8
|
exports.a = t;
|
|
9
|
-
exports.b =
|
|
9
|
+
exports.b = f;
|
|
10
10
|
//# sourceMappingURL=out.js.map
|
|
11
|
-
//# sourceMappingURL=chunk-
|
|
11
|
+
//# sourceMappingURL=chunk-PLWO6XD7.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/utils/concat-files.ts","../src/utils/is-windows.ts"],"names":["quote","env","platform","isWindows","is_windows_default","concatFiles","filenames","filename","concat_files_default"],"mappings":"AAAA,OAAS,SAAAA,MAAa,cCAtB,OAAS,OAAAC,EAAK,YAAAC,MAAgB,UAG9B,IAAMC,EAAYD,IAAa,SAAW,mBAAmB,KAAKD,EAAI,QAAa,EAAE,EAE9EG,EAAQD,EDaf,IAAME,EAAeC,GACjBA,EACK,IAAKC,GAAa,IAAIH,EAAYG,EAAWP,EAAM,CAACO,CAAQ,CAAC,CAAC,GAAG,EACjE,KAAK,GAAG,EACR,WAAW,KAAM,IAAI,EAEvBC,EAAQH","sourcesContent":["import { quote } from \"shell-quote\";\n\nimport isWindows from \"./is-windows\";\n\n/**\n * Concatenate and escape a list of filenames that can be passed as args to prettier cli\n *\n * Prettier and Stylelint have an issue with special characters in filenames,\n * such as the ones uses for Next.js dynamic routes (ie: [id].tsx...)\n *\n * @link https://github.com/okonet/lint-staged/issues/676\n *\n * The @ type shouldn't be quoted, but it is.\n * If a folder name contains a @, it will be escaped as \\@ (example test/@types), which is wrong.\n *\n * @param {string[]} filenames\n * @returns {string} Return concatenated and escaped filenames\n */\nconst concatFiles = (filenames: string[]): string =>\n filenames\n .map((filename) => `\"${isWindows ? filename : quote([filename])}\"`)\n .join(\" \")\n .replaceAll(\"/@\", \"/@\");\n\nexport default concatFiles;\n","import { env, platform } from \"node:process\";\n\n// eslint-disable-next-line regexp/no-unused-capturing-group\nconst isWindows = platform === \"win32\" || /^(msys|cygwin)$/u.test(env[\"OSTYPE\"] ?? \"\");\n\nexport default isWindows;\n"]}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
var chunkOYUEMN5Q_js = require('../../chunk-OYUEMN5Q.js');
|
|
4
4
|
var chunkVU6SMFTD_js = require('../../chunk-VU6SMFTD.js');
|
|
5
5
|
var chunkALAT5PPB_js = require('../../chunk-ALAT5PPB.js');
|
|
6
|
-
var
|
|
6
|
+
var chunkPLWO6XD7_js = require('../../chunk-PLWO6XD7.js');
|
|
7
7
|
var chunkP4FK54EG_js = require('../../chunk-P4FK54EG.js');
|
|
8
8
|
var packageJsonUtils = require('@anolilab/package-json-utils');
|
|
9
9
|
var path = require('path');
|
|
@@ -14,7 +14,7 @@ var E=n=>{let t={};return n.forEach(o=>{let i=path.dirname(o);t[i]||(t[i]=[]),t[
|
|
|
14
14
|
Unable to determine if file is ignored.
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
${e.reason}`),new Error("Stopping lint-staged because of an error.")});return n.filter((e,r)=>!i[r]).map(e=>`"${
|
|
17
|
+
${e.reason}`),new Error("Stopping lint-staged because of an error.")});return n.filter((e,r)=>!i[r]).map(e=>`"${chunkPLWO6XD7_js.a?e:shellQuote.quote([e])}"`)},x=L;var s={};chunkOYUEMN5Q_js.a?.eslint?s=chunkOYUEMN5Q_js.a.eslint:chunkOYUEMN5Q_js.a?.settings?.eslint&&(s=chunkOYUEMN5Q_js.a.settings.eslint);var c=[];(packageJsonUtils.hasDependency("eslint-plugin-react-hooks")||packageJsonUtils.hasDevDependency("eslint-plugin-react-hooks"))&&c.push("react-hooks/exhaustive-deps:off");(packageJsonUtils.hasDependency("eslint-plugin-eslint-comments")||packageJsonUtils.hasDevDependency("eslint-plugin-eslint-comments")||packageJsonUtils.isPackageAvailable("eslint-plugin-eslint-comments"))&&c.push("eslint-comments/no-unused-disable:off");var a=".eslintrc",v=()=>{let n=[];s["max-warnings"]!==void 0&&Number.isNaN(s["max-warnings"])?n.push(`--max-warnings=${s["max-warnings"]}`):s["max-warnings"]!==!1&&n.push("--max-warnings=0");let t=[...s.rules??[],...c].filter(i=>i.trim().length>0);t.length>0&&n.push(t.map(i=>`--rule "${i}"`).join(" "));let o=[...s["fix-type"]??["layout"]].filter(i=>i.trim().length>0);return o.length>0&&n.push(`--fix-type ${o.join(",")}`,"--fix"),s.cache&&n.push("--cache"),n},D=async n=>{let t=await x(n),o=v();if(s.config)return o.push(`--config ${s.config}`),[`${chunkP4FK54EG_js.a()} exec eslint ${o.join(" ")} ${t.join(" ")}`];let i=y(t),f=[];return Object.values(i).forEach(e=>{let r;[a,`${a}.js`,`${a}.cjs`,`${a}.json`,`${a}.yaml`,`${a}.yml`].forEach(S=>{if(!r)try{r=chunkVU6SMFTD_js.a(S,e[0]);}catch{}}),r&&f.push(`${chunkP4FK54EG_js.a()} exec eslint ${o.join(" ")} --config ${r} ${e.join(" ")}`);}),f},m=D;var j=["cjs","js","mjs","cts","ts","mts","yml","yaml","jsx","tsx","mdx","toml"];global.hasAnolilabLintStagedMarkdownCli||(global.hasAnolilabLintStagedMarkdownCli=packageJsonUtils.hasDependency("markdownlint-cli")||packageJsonUtils.hasDevDependency("markdownlint-cli"));global.hasAnolilabLintStagedMarkdownCli2||(global.hasAnolilabLintStagedMarkdownCli2=packageJsonUtils.hasDependency("markdownlint-cli2")||packageJsonUtils.hasDevDependency("markdownlint-cli2"));!global.hasAnolilabLintStagedMarkdownCli&&!global.hasAnolilabLintStagedMarkdownCli2&&j.push("md");global.hasAnolilabLintStagedPrettier||(global.hasAnolilabLintStagedPrettier=packageJsonUtils.hasDependency("prettier")||packageJsonUtils.hasDevDependency("prettier"),chunkALAT5PPB_js.a("Prettier was found inside your package.json. It will be used to format your files, before eslint is executed."));var M={[`**/*.{${["json","json5","jsonc"].join(",")}}`]:async n=>[...await m(n)],[`**/*.{${[j].join(",")}}`]:async n=>[...global.hasAnolilabLintStagedPrettier?[`${chunkP4FK54EG_js.a()} exec prettier --write ${chunkPLWO6XD7_js.b(n)}`]:[],...await m(n)]},Y=M;
|
|
18
18
|
|
|
19
19
|
module.exports = Y;
|
|
20
20
|
//# sourceMappingURL=out.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { a as a$1 } from '../../chunk-AVDVT4B7.mjs';
|
|
2
2
|
import { a as a$4 } from '../../chunk-HGDREIGE.mjs';
|
|
3
3
|
import { a as a$2 } from '../../chunk-LJGFRIQ4.mjs';
|
|
4
|
-
import { b, a as a$5 } from '../../chunk-
|
|
4
|
+
import { b, a as a$5 } from '../../chunk-24WLFZUE.mjs';
|
|
5
5
|
import { a as a$3 } from '../../chunk-COM4XKFJ.mjs';
|
|
6
6
|
import { hasDependency, hasDevDependency, isPackageAvailable } from '@anolilab/package-json-utils';
|
|
7
7
|
import { dirname } from 'path';
|
package/dist/groups/json.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkPLWO6XD7_js = require('../chunk-PLWO6XD7.js');
|
|
4
4
|
var chunkP4FK54EG_js = require('../chunk-P4FK54EG.js');
|
|
5
5
|
var packageJsonUtils = require('@anolilab/package-json-utils');
|
|
6
6
|
|
|
7
|
-
var r=packageJsonUtils.hasDependency("sort-package-json")||packageJsonUtils.hasDevDependency("sort-package-json"),s={[`**/*.{${["json","json5","jsonc"].join(",")}}`]:o=>[`${chunkP4FK54EG_js.a()} exec prettier --write ${
|
|
7
|
+
var r=packageJsonUtils.hasDependency("sort-package-json")||packageJsonUtils.hasDevDependency("sort-package-json"),s={[`**/*.{${["json","json5","jsonc"].join(",")}}`]:o=>[`${chunkP4FK54EG_js.a()} exec prettier --write ${chunkPLWO6XD7_js.b(o)}`],...r?{"**/package.json":o=>[`${chunkP4FK54EG_js.a()} exec sort-package-json ${chunkPLWO6XD7_js.b(o)}`]}:{}},i=s;
|
|
8
8
|
|
|
9
9
|
module.exports = i;
|
|
10
10
|
//# sourceMappingURL=out.js.map
|
package/dist/groups/json.mjs
CHANGED
package/dist/groups/markdown.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var chunkALAT5PPB_js = require('../chunk-ALAT5PPB.js');
|
|
4
|
-
var
|
|
4
|
+
var chunkPLWO6XD7_js = require('../chunk-PLWO6XD7.js');
|
|
5
5
|
var chunkP4FK54EG_js = require('../chunk-P4FK54EG.js');
|
|
6
6
|
var packageJsonUtils = require('@anolilab/package-json-utils');
|
|
7
7
|
|
|
8
|
-
global.hasAnolilabLintStagedMarkdownCli||(global.hasAnolilabLintStagedMarkdownCli=packageJsonUtils.hasDependency("markdownlint-cli")||packageJsonUtils.hasDevDependency("markdownlint-cli"));global.hasAnolilabLintStagedMarkdownCli2||(global.hasAnolilabLintStagedMarkdownCli2=packageJsonUtils.hasDependency("markdownlint-cli2")||packageJsonUtils.hasDevDependency("markdownlint-cli2"));global.hasAnolilabLintStagedPrettier||(global.hasAnolilabLintStagedPrettier=packageJsonUtils.hasDependency("prettier")||packageJsonUtils.hasDevDependency("prettier"),chunkALAT5PPB_js.a("Prettier was found inside your package.json. It will be used to format your markdown files."));var n={"**/*.md":i=>[...global.hasAnolilabLintStagedPrettier?[`${chunkP4FK54EG_js.a()} exec prettier --write ${
|
|
8
|
+
global.hasAnolilabLintStagedMarkdownCli||(global.hasAnolilabLintStagedMarkdownCli=packageJsonUtils.hasDependency("markdownlint-cli")||packageJsonUtils.hasDevDependency("markdownlint-cli"));global.hasAnolilabLintStagedMarkdownCli2||(global.hasAnolilabLintStagedMarkdownCli2=packageJsonUtils.hasDependency("markdownlint-cli2")||packageJsonUtils.hasDevDependency("markdownlint-cli2"));global.hasAnolilabLintStagedPrettier||(global.hasAnolilabLintStagedPrettier=packageJsonUtils.hasDependency("prettier")||packageJsonUtils.hasDevDependency("prettier"),chunkALAT5PPB_js.a("Prettier was found inside your package.json. It will be used to format your markdown files."));var n={"**/*.md":i=>[...global.hasAnolilabLintStagedPrettier?[`${chunkP4FK54EG_js.a()} exec prettier --write ${chunkPLWO6XD7_js.b(i)}`]:[],...global.hasAnolilabLintStagedMarkdownCli?[`${chunkP4FK54EG_js.a()} exec markdownlint --fix --ignore '**/node_modules/**' --ignore '**/CHANGELOG.md' ${chunkPLWO6XD7_js.b(i)}`]:[],...global.hasAnolilabLintStagedMarkdownCli2?[`${chunkP4FK54EG_js.a()} exec markdownlint-cli2 --fix '!**/node_modules/**' '!**/CHANGELOG.md' ${chunkPLWO6XD7_js.b(i)}`]:[]],"**/*.mdx":i=>[...global.hasAnolilabLintStagedPrettier?[`${chunkP4FK54EG_js.a()} exec prettier --write ${chunkPLWO6XD7_js.b(i)}`]:[]]},s=n;
|
|
9
9
|
|
|
10
10
|
module.exports = s;
|
|
11
11
|
//# sourceMappingURL=out.js.map
|
package/dist/groups/markdown.mjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var chunkALAT5PPB_js = require('../chunk-ALAT5PPB.js');
|
|
4
|
-
var
|
|
4
|
+
var chunkPLWO6XD7_js = require('../chunk-PLWO6XD7.js');
|
|
5
5
|
var chunkP4FK54EG_js = require('../chunk-P4FK54EG.js');
|
|
6
6
|
var packageJsonUtils = require('@anolilab/package-json-utils');
|
|
7
7
|
|
|
8
|
-
global.hasAnolilabLintStagedPrettier||(global.hasAnolilabLintStagedPrettier=packageJsonUtils.hasDependency("prettier")||packageJsonUtils.hasDevDependency("prettier"),chunkALAT5PPB_js.a("Prettier was found inside your package.json. It will be used to format your files, before stylelint is executed."));var s={[`**/*.{${["css","sass","scss","less"].join(",")}}`]:o=>[...global.hasAnolilabLintStagedPrettier?[`${chunkP4FK54EG_js.a()} exec prettier --ignore-unknown --write ${
|
|
8
|
+
global.hasAnolilabLintStagedPrettier||(global.hasAnolilabLintStagedPrettier=packageJsonUtils.hasDependency("prettier")||packageJsonUtils.hasDevDependency("prettier"),chunkALAT5PPB_js.a("Prettier was found inside your package.json. It will be used to format your files, before stylelint is executed."));var s={[`**/*.{${["css","sass","scss","less"].join(",")}}`]:o=>[...global.hasAnolilabLintStagedPrettier?[`${chunkP4FK54EG_js.a()} exec prettier --ignore-unknown --write ${chunkPLWO6XD7_js.b(o)}`]:[],`${chunkP4FK54EG_js.a()} exec stylelint --fix`]},p=s;
|
|
9
9
|
|
|
10
10
|
module.exports = p;
|
|
11
11
|
//# sourceMappingURL=out.js.map
|
package/dist/groups/tests.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkPLWO6XD7_js = require('../chunk-PLWO6XD7.js');
|
|
4
4
|
var chunkP4FK54EG_js = require('../chunk-P4FK54EG.js');
|
|
5
5
|
var packageJsonUtils = require('@anolilab/package-json-utils');
|
|
6
6
|
|
|
7
|
-
var n=packageJsonUtils.hasDependency("vitest")||packageJsonUtils.hasDevDependency("vitest"),i=packageJsonUtils.hasDependency("jest")||packageJsonUtils.hasDevDependency("jest"),j=packageJsonUtils.hasDependency("ava")||packageJsonUtils.hasDevDependency("ava"),x={...n&&{"**/?(*.){test,spec}.?(c|m)[jt]s?(x)":["vitest related --run"],"**/__tests__/**/*.?(c|m)[jt]s?(x)":[`${chunkP4FK54EG_js.a()} exec vitest related --run`]},...i&&{"**/*.spec.{js,ts,tsx}":[`${chunkP4FK54EG_js.a()} exec jest --findRelatedTests`],"**/*.test.{js,ts,tsx}":[`${chunkP4FK54EG_js.a()} exec jest --findRelatedTests`],"**/?(*.){test,spec}.?(c|m)[jt]s?(x)":[`${chunkP4FK54EG_js.a()} exec jest --findRelatedTests`],"**/__mocks__/*.{js,ts,tsx}":[`${chunkP4FK54EG_js.a()} exec jest --findRelatedTests`],"**/__tests__/**/*.?(c|m)[jt]s?(x)":[`${chunkP4FK54EG_js.a()} exec jest --findRelatedTests`],"**/__tests__/*.{js,ts,tsx}":[`${chunkP4FK54EG_js.a()} exec jest --findRelatedTests`],"**/test/*.{js,ts,tsx}":[`${chunkP4FK54EG_js.a()} exec jest --findRelatedTests`]},...j&&{"**/(test|tests|__tests__)/**/*.js":t=>[`${chunkP4FK54EG_js.a()} exec ava ${
|
|
7
|
+
var n=packageJsonUtils.hasDependency("vitest")||packageJsonUtils.hasDevDependency("vitest"),i=packageJsonUtils.hasDependency("jest")||packageJsonUtils.hasDevDependency("jest"),j=packageJsonUtils.hasDependency("ava")||packageJsonUtils.hasDevDependency("ava"),x={...n&&{"**/?(*.){test,spec}.?(c|m)[jt]s?(x)":["vitest related --run"],"**/__tests__/**/*.?(c|m)[jt]s?(x)":[`${chunkP4FK54EG_js.a()} exec vitest related --run`]},...i&&{"**/*.spec.{js,ts,tsx}":[`${chunkP4FK54EG_js.a()} exec jest --findRelatedTests`],"**/*.test.{js,ts,tsx}":[`${chunkP4FK54EG_js.a()} exec jest --findRelatedTests`],"**/?(*.){test,spec}.?(c|m)[jt]s?(x)":[`${chunkP4FK54EG_js.a()} exec jest --findRelatedTests`],"**/__mocks__/*.{js,ts,tsx}":[`${chunkP4FK54EG_js.a()} exec jest --findRelatedTests`],"**/__tests__/**/*.?(c|m)[jt]s?(x)":[`${chunkP4FK54EG_js.a()} exec jest --findRelatedTests`],"**/__tests__/*.{js,ts,tsx}":[`${chunkP4FK54EG_js.a()} exec jest --findRelatedTests`],"**/test/*.{js,ts,tsx}":[`${chunkP4FK54EG_js.a()} exec jest --findRelatedTests`]},...j&&{"**/(test|tests|__tests__)/**/*.js":t=>[`${chunkP4FK54EG_js.a()} exec ava ${chunkPLWO6XD7_js.b(t)}`],"**/*.(spec|test).js":t=>[`${chunkP4FK54EG_js.a()} exec ava ${chunkPLWO6XD7_js.b(t)}`],"**/test.js":t=>[`${chunkP4FK54EG_js.a()} exec ava ${chunkPLWO6XD7_js.b(t)}`],"**/test-*.js":t=>[`${chunkP4FK54EG_js.a()} exec ava ${chunkPLWO6XD7_js.b(t)}`]}},o=x;
|
|
8
8
|
|
|
9
9
|
module.exports = o;
|
|
10
10
|
//# sourceMappingURL=out.js.map
|
package/dist/groups/tests.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@anolilab/lint-staged-config",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.5",
|
|
4
4
|
"description": "Shareable Lint-Staged Config for any project.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"anolilab",
|
|
@@ -121,7 +121,7 @@
|
|
|
121
121
|
"lint-staged": "^13.x || ^14.0.0 || ^15.0.0",
|
|
122
122
|
"prettier": "^3.0.3",
|
|
123
123
|
"secretlint": "^7.0.7",
|
|
124
|
-
"stylelint": "^15.
|
|
124
|
+
"stylelint": "^15.11.0",
|
|
125
125
|
"vite": "^4.4.9"
|
|
126
126
|
},
|
|
127
127
|
"peerDependenciesMeta": {
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/utils/concat-files.ts","../src/utils/is-windows.ts"],"names":["quote","env","platform","isWindows","is_windows_default","concatFiles","filenames","filename","concat_files_default"],"mappings":"AAAA,OAAS,SAAAA,MAAa,cCAtB,OAAS,OAAAC,EAAK,YAAAC,MAAgB,UAG9B,IAAMC,EAAYD,IAAa,SAAW,mBAAmB,KAAKD,EAAI,QAAa,EAAE,EAE9EG,EAAQD,EDUf,IAAME,EAAeC,GAAgCA,EAAU,IAAKC,GAAa,IAAIH,EAAYG,EAAWP,EAAM,CAACO,CAAQ,CAAC,CAAC,GAAG,EAAE,KAAK,GAAG,EAEnIC,EAAQH","sourcesContent":["import { quote } from \"shell-quote\";\n\nimport isWindows from \"./is-windows\";\n\n/**\n * Concatenate and escape a list of filenames that can be passed as args to prettier cli\n *\n * Prettier and Stylelint have an issue with special characters in filenames,\n * such as the ones uses for Next.js dynamic routes (ie: [id].tsx...)\n *\n * @link https://github.com/okonet/lint-staged/issues/676\n *\n * @param {string[]} filenames\n * @returns {string} Return concatenated and escaped filenames\n */\nconst concatFiles = (filenames: string[]): string => filenames.map((filename) => `\"${isWindows ? filename : quote([filename])}\"`).join(\" \");\n\nexport default concatFiles;\n","import { env, platform } from \"node:process\";\n\n// eslint-disable-next-line regexp/no-unused-capturing-group\nconst isWindows = platform === \"win32\" || /^(msys|cygwin)$/u.test(env[\"OSTYPE\"] ?? \"\");\n\nexport default isWindows;\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/utils/concat-files.ts","../src/utils/is-windows.ts"],"names":["quote","env","platform","isWindows","is_windows_default","concatFiles","filenames","filename","concat_files_default"],"mappings":"AAAA,OAAS,SAAAA,MAAa,cCAtB,OAAS,OAAAC,EAAK,YAAAC,MAAgB,UAG9B,IAAMC,EAAYD,IAAa,SAAW,mBAAmB,KAAKD,EAAI,QAAa,EAAE,EAE9EG,EAAQD,EDUf,IAAME,EAAeC,GAAgCA,EAAU,IAAKC,GAAa,IAAIH,EAAYG,EAAWP,EAAM,CAACO,CAAQ,CAAC,CAAC,GAAG,EAAE,KAAK,GAAG,EAEnIC,EAAQH","sourcesContent":["import { quote } from \"shell-quote\";\n\nimport isWindows from \"./is-windows\";\n\n/**\n * Concatenate and escape a list of filenames that can be passed as args to prettier cli\n *\n * Prettier and Stylelint have an issue with special characters in filenames,\n * such as the ones uses for Next.js dynamic routes (ie: [id].tsx...)\n *\n * @link https://github.com/okonet/lint-staged/issues/676\n *\n * @param {string[]} filenames\n * @returns {string} Return concatenated and escaped filenames\n */\nconst concatFiles = (filenames: string[]): string => filenames.map((filename) => `\"${isWindows ? filename : quote([filename])}\"`).join(\" \");\n\nexport default concatFiles;\n","import { env, platform } from \"node:process\";\n\n// eslint-disable-next-line regexp/no-unused-capturing-group\nconst isWindows = platform === \"win32\" || /^(msys|cygwin)$/u.test(env[\"OSTYPE\"] ?? \"\");\n\nexport default isWindows;\n"]}
|