@anolilab/lint-staged-config 2.1.7 → 3.0.0
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 +29 -0
- package/LICENSE.md +139 -0
- package/README.md +52 -77
- package/dist/bin.mjs +88 -0
- package/dist/index.cjs +5 -0
- package/dist/index.d.cts +41 -0
- package/dist/index.d.mts +39 -3
- package/dist/index.d.ts +39 -3
- package/dist/index.mjs +3 -14
- package/package.json +115 -155
- package/dist/chunk-24WLFZUE.mjs +0 -8
- package/dist/chunk-24WLFZUE.mjs.map +0 -1
- package/dist/chunk-ALAT5PPB.js +0 -9
- package/dist/chunk-ALAT5PPB.js.map +0 -1
- package/dist/chunk-AVDVT4B7.mjs +0 -7
- package/dist/chunk-AVDVT4B7.mjs.map +0 -1
- package/dist/chunk-COM4XKFJ.mjs +0 -7
- package/dist/chunk-COM4XKFJ.mjs.map +0 -1
- package/dist/chunk-HGDREIGE.mjs +0 -9
- package/dist/chunk-HGDREIGE.mjs.map +0 -1
- package/dist/chunk-LJGFRIQ4.mjs +0 -7
- package/dist/chunk-LJGFRIQ4.mjs.map +0 -1
- package/dist/chunk-OYUEMN5Q.js +0 -9
- package/dist/chunk-OYUEMN5Q.js.map +0 -1
- package/dist/chunk-P4FK54EG.js +0 -9
- package/dist/chunk-P4FK54EG.js.map +0 -1
- package/dist/chunk-PLWO6XD7.js +0 -11
- package/dist/chunk-PLWO6XD7.js.map +0 -1
- package/dist/chunk-VU6SMFTD.js +0 -15
- package/dist/chunk-VU6SMFTD.js.map +0 -1
- package/dist/groups/eslint/index.d.mts +0 -5
- package/dist/groups/eslint/index.d.ts +0 -5
- package/dist/groups/eslint/index.js +0 -21
- package/dist/groups/eslint/index.js.map +0 -1
- package/dist/groups/eslint/index.mjs +0 -19
- package/dist/groups/eslint/index.mjs.map +0 -1
- package/dist/groups/json.d.mts +0 -5
- package/dist/groups/json.d.ts +0 -5
- package/dist/groups/json.js +0 -11
- package/dist/groups/json.js.map +0 -1
- package/dist/groups/json.mjs +0 -9
- package/dist/groups/json.mjs.map +0 -1
- package/dist/groups/markdown.d.mts +0 -5
- package/dist/groups/markdown.d.ts +0 -5
- package/dist/groups/markdown.js +0 -12
- package/dist/groups/markdown.js.map +0 -1
- package/dist/groups/markdown.mjs +0 -10
- package/dist/groups/markdown.mjs.map +0 -1
- package/dist/groups/secretlint.d.mts +0 -5
- package/dist/groups/secretlint.d.ts +0 -5
- package/dist/groups/secretlint.js +0 -9
- package/dist/groups/secretlint.js.map +0 -1
- package/dist/groups/secretlint.mjs +0 -7
- package/dist/groups/secretlint.mjs.map +0 -1
- package/dist/groups/stylesheets.d.mts +0 -5
- package/dist/groups/stylesheets.d.ts +0 -5
- package/dist/groups/stylesheets.js +0 -12
- package/dist/groups/stylesheets.js.map +0 -1
- package/dist/groups/stylesheets.mjs +0 -10
- package/dist/groups/stylesheets.mjs.map +0 -1
- package/dist/groups/tests.d.mts +0 -5
- package/dist/groups/tests.d.ts +0 -5
- package/dist/groups/tests.js +0 -11
- package/dist/groups/tests.js.map +0 -1
- package/dist/groups/tests.mjs +0 -9
- package/dist/groups/tests.mjs.map +0 -1
- package/dist/groups/typescript.d.mts +0 -5
- package/dist/groups/typescript.d.ts +0 -5
- package/dist/groups/typescript.js +0 -12
- package/dist/groups/typescript.js.map +0 -1
- package/dist/groups/typescript.mjs +0 -10
- package/dist/groups/typescript.mjs.map +0 -1
- package/dist/index.js +0 -19
- package/dist/index.js.map +0 -1
- package/dist/index.mjs.map +0 -1
- package/dist/postinstall.d.mts +0 -2
- package/dist/postinstall.d.ts +0 -2
- package/dist/postinstall.js +0 -97
- package/dist/postinstall.js.map +0 -1
- package/dist/postinstall.mjs +0 -95
- package/dist/postinstall.mjs.map +0 -1
- package/group/package.json +0 -44
- package/skip.js +0 -7
package/dist/postinstall.mjs
DELETED
|
@@ -1,95 +0,0 @@
|
|
|
1
|
-
import { a as a$1 } from './chunk-HGDREIGE.mjs';
|
|
2
|
-
import { writeFile, mkdir, existsSync } from 'fs';
|
|
3
|
-
import { join } from 'path';
|
|
4
|
-
import { exit } from 'process';
|
|
5
|
-
import { promisify } from 'util';
|
|
6
|
-
import { projectPath, packageIsTypeModule, hasDependency, hasDevDependency } from '@anolilab/package-json-utils';
|
|
7
|
-
|
|
8
|
-
process.env.CI&&exit(0);var a=promisify(writeFile),_=promisify(mkdir);console.log("Configuring @anolilab/lint-staged-config",projectPath,`
|
|
9
|
-
`);var i=".lintstagedrc",c=t=>existsSync(t)?(console.warn(`\u26A0\uFE0F ${t} already exists;`),!0):!1,I=async()=>{for(let s of [i,`${i}.js`,`${i}.cjs`,`${i}.mjs`,`${i}.json`,`${i}.yaml`,`${i}.yml`,"lint-staged.config.js","lint-staged.config.mjs","lint-staged.config.cjs"])if(c(join(projectPath,s)))return;let t=join(projectPath,".lintstagedrc.js");await a(t,`${packageIsTypeModule?'import config from "@anolilab/lint-staged-config"':'const config = require("@anolilab/lint-staged-config")'};
|
|
10
|
-
|
|
11
|
-
${packageIsTypeModule?"export default":"module.exports ="} {
|
|
12
|
-
...config,
|
|
13
|
-
};
|
|
14
|
-
`,"utf-8");},w=async()=>{if(!(hasDependency("husky")||hasDevDependency("husky"))){console.warn("\u26A0\uFE0F husky is not installed;");return}let o=join(projectPath,".husky");existsSync(o)||await _(o);let s=join(o,"common.sh");c(s)||await a(s,`#!/bin/sh
|
|
15
|
-
|
|
16
|
-
command_exists () {
|
|
17
|
-
command -v "$1" >/dev/null 2>&1
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
IS_WINDOWS="false"
|
|
21
|
-
|
|
22
|
-
if [ "$OSTYPE" = "cygwin" ]; then
|
|
23
|
-
IS_WINDOWS="true"
|
|
24
|
-
elif [ "$OSTYPE" = "msys" ]; then
|
|
25
|
-
IS_WINDOWS="true"
|
|
26
|
-
elif [ "$OSTYPE" = "win32" ]; then
|
|
27
|
-
IS_WINDOWS="true"
|
|
28
|
-
fi
|
|
29
|
-
|
|
30
|
-
# Workaround for Windows 10, Git Bash and Yarn
|
|
31
|
-
if [ "$IS_WINDOWS" = "true" ]; then
|
|
32
|
-
if command_exists winpty && test -t 1; then
|
|
33
|
-
exec < /dev/tty
|
|
34
|
-
fi
|
|
35
|
-
fi
|
|
36
|
-
`,"utf-8");let h=join(o,"pre-commit"),e=!1;try{a$1("pnpm-lock.yaml"),e=!0;}catch{e=!1;}c(h)||await a(h,`#!/bin/sh
|
|
37
|
-
|
|
38
|
-
. "$(dirname "$0")/_/husky.sh"
|
|
39
|
-
. "$(dirname "$0")/common.sh"
|
|
40
|
-
|
|
41
|
-
# The hook should exit with non-zero status after issuing
|
|
42
|
-
# an appropriate message if it wants to stop the commit.
|
|
43
|
-
|
|
44
|
-
echo --------------------------------------------
|
|
45
|
-
echo Starting Git hook: pre-commit
|
|
46
|
-
|
|
47
|
-
${e?"pnpx":"npx"} lint-staged --verbose --concurrent false
|
|
48
|
-
|
|
49
|
-
echo Finished Git hook: pre-commit
|
|
50
|
-
echo --------------------------------------------
|
|
51
|
-
`,"utf-8");let f=join(o,"prepare-commit-msg");(hasDependency("commitizen")||hasDevDependency("commitizen"))&&!c(f)&&await a(f,`#!/bin/sh
|
|
52
|
-
|
|
53
|
-
. "$(dirname "$0")/_/husky.sh"
|
|
54
|
-
. "$(dirname "$0")/common.sh"
|
|
55
|
-
|
|
56
|
-
echo --------------------------------------------
|
|
57
|
-
echo Starting Git hook: prepare-commit-msg
|
|
58
|
-
|
|
59
|
-
# if we hve a cmd that is running ${e?"pnpx":"npx"} cz that means finalize and commit
|
|
60
|
-
FILE=commit.cmd
|
|
61
|
-
if test -f "$FILE"; then
|
|
62
|
-
echo "$FILE exists."
|
|
63
|
-
rm commit.cmd
|
|
64
|
-
exit 0;
|
|
65
|
-
fi
|
|
66
|
-
# if on Windows, spawn a cmd that will run ${e?"pnpx":"npx"} cz
|
|
67
|
-
case \`uname\` in
|
|
68
|
-
*CYGWIN*|*MINGW*|*MSYS* )
|
|
69
|
-
# Only run commitizen if no commit message was already provided.
|
|
70
|
-
if [ -z "\${2-}" ]; then
|
|
71
|
-
export CZ_TYPE="\${CZ_TYPE:-fix}"
|
|
72
|
-
export CZ_MAX_HEADER_WIDTH=$COMMITLINT_MAX_WIDTH
|
|
73
|
-
export CZ_MAX_LINE_WIDTH=$CZ_MAX_HEADER_WIDTH
|
|
74
|
-
echo "${e?"pnpx":"npx"} cz && exit" > commit.cmd
|
|
75
|
-
start commit.cmd
|
|
76
|
-
exit 1;
|
|
77
|
-
fi
|
|
78
|
-
|
|
79
|
-
exit 0;;
|
|
80
|
-
esac
|
|
81
|
-
|
|
82
|
-
# Only run commitizen if no commit message was already provided.
|
|
83
|
-
if [ -z "\${2-}" ]; then
|
|
84
|
-
export CZ_TYPE="\${CZ_TYPE:-fix}"
|
|
85
|
-
export CZ_MAX_HEADER_WIDTH=$COMMITLINT_MAX_WIDTH
|
|
86
|
-
export CZ_MAX_LINE_WIDTH=$CZ_MAX_HEADER_WIDTH
|
|
87
|
-
# By default git hooks are not interactive. exec < /dev/tty allows a users terminal to interact with commitizen.
|
|
88
|
-
exec < /dev/tty && ${e?"pnpx":"npx"} cz --hook || true
|
|
89
|
-
fi
|
|
90
|
-
|
|
91
|
-
echo Finished Git hook: prepare-commit-msg
|
|
92
|
-
echo --------------------------------------------
|
|
93
|
-
`,"utf-8");};(async()=>{try{await I(),await w(),console.log("\u{1F60E} Everything went well, have fun!"),exit(0);}catch(t){console.log("\u{1F62C} something went wrong:"),console.error(t),exit(1);}})();
|
|
94
|
-
//# sourceMappingURL=out.js.map
|
|
95
|
-
//# sourceMappingURL=postinstall.mjs.map
|
package/dist/postinstall.mjs.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/postinstall.ts"],"names":["existsSync","mkdir","writeFile","join","exit","promisify","hasDependency","hasDevDependency","packageIsTypeModule","projectPath","writeFileAsync","mkdirAsync","configFile","checkIfFileExists","filename","writeLintstagedRc","lintstagedPath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ACV,CACJ,GAAG","sourcesContent":["import { existsSync, mkdir, writeFile } from \"node:fs\";\nimport { join } from \"node:path\";\nimport { exit } from \"node:process\";\nimport { promisify } from \"node:util\";\n\nimport { hasDependency, hasDevDependency, packageIsTypeModule, projectPath } from \"@anolilab/package-json-utils\";\n\nimport getNearestConfigPath from \"./utils/get-nearest-config-path\";\n\nif (process.env[\"CI\"]) {\n exit(0);\n}\n\nconst writeFileAsync = promisify(writeFile);\nconst mkdirAsync = promisify(mkdir);\n\nconsole.log(\"Configuring @anolilab/lint-staged-config\", projectPath, \"\\n\");\n\nconst configFile = \".lintstagedrc\";\n\nconst checkIfFileExists = (filename: string): boolean => {\n // eslint-disable-next-line security/detect-non-literal-fs-filename\n if (existsSync(filename)) {\n console.warn(`⚠️ ${filename} already exists;`);\n\n return true;\n }\n\n return false;\n};\n\n/**\n * Writes .lintstagedrc.js if it doesn't exist. Warns if it exists.\n */\nconst writeLintstagedRc = async () => {\n // eslint-disable-next-line no-restricted-syntax,no-loops/no-loops\n for (const filename of [\n configFile,\n `${configFile}.js`,\n `${configFile}.cjs`,\n `${configFile}.mjs`,\n `${configFile}.json`,\n `${configFile}.yaml`,\n `${configFile}.yml`,\n \"lint-staged.config.js\",\n \"lint-staged.config.mjs\",\n \"lint-staged.config.cjs\",\n ]) {\n if (checkIfFileExists(join(projectPath, filename))) {\n return;\n }\n }\n\n const lintstagedPath = join(projectPath, \".lintstagedrc.js\");\n\n const content = `${packageIsTypeModule ? 'import config from \"@anolilab/lint-staged-config\"' : 'const config = require(\"@anolilab/lint-staged-config\")'};\n\n${packageIsTypeModule ? \"export default\" : \"module.exports =\"} {\n ...config,\n};\n`;\n\n await writeFileAsync(lintstagedPath, content, \"utf-8\");\n};\n\n/**\n * Adds husky hooks to .husky folder if they don't exist. Warns if they exist.\n */\n// eslint-disable-next-line sonarjs/cognitive-complexity\nconst writeHuskyFiles = async () => {\n const hasHusky = hasDependency(\"husky\") || hasDevDependency(\"husky\");\n\n if (!hasHusky) {\n console.warn(\"⚠️ husky is not installed;\");\n\n return;\n }\n\n const huskyFolderPath = join(projectPath, \".husky\");\n\n // eslint-disable-next-line security/detect-non-literal-fs-filename\n if (!existsSync(huskyFolderPath)) {\n await mkdirAsync(huskyFolderPath);\n }\n\n const commonShPath = join(huskyFolderPath, \"common.sh\");\n\n if (!checkIfFileExists(commonShPath)) {\n await writeFileAsync(\n commonShPath,\n `#!/bin/sh\n\ncommand_exists () {\n command -v \"$1\" >/dev/null 2>&1\n}\n\nIS_WINDOWS=\"false\"\n\nif [ \"$OSTYPE\" = \"cygwin\" ]; then\n IS_WINDOWS=\"true\"\nelif [ \"$OSTYPE\" = \"msys\" ]; then\n IS_WINDOWS=\"true\"\nelif [ \"$OSTYPE\" = \"win32\" ]; then\n IS_WINDOWS=\"true\"\nfi\n\n# Workaround for Windows 10, Git Bash and Yarn\nif [ \"$IS_WINDOWS\" = \"true\" ]; then\n if command_exists winpty && test -t 1; then\n exec < /dev/tty\n fi\nfi\n`,\n \"utf-8\",\n );\n }\n\n const preCommitPath = join(huskyFolderPath, \"pre-commit\");\n\n let hasPnpm = false;\n\n try {\n getNearestConfigPath(\"pnpm-lock.yaml\");\n\n hasPnpm = true;\n } catch {\n hasPnpm = false;\n\n // ignore\n }\n\n if (!checkIfFileExists(preCommitPath)) {\n await writeFileAsync(\n preCommitPath,\n `#!/bin/sh\n\n. \"$(dirname \"$0\")/_/husky.sh\"\n. \"$(dirname \"$0\")/common.sh\"\n\n# The hook should exit with non-zero status after issuing\n# an appropriate message if it wants to stop the commit.\n\necho --------------------------------------------\necho Starting Git hook: pre-commit\n\n${hasPnpm ? \"pnpx\" : \"npx\"} lint-staged --verbose --concurrent false\n\necho Finished Git hook: pre-commit\necho --------------------------------------------\n`,\n \"utf-8\",\n );\n }\n\n const prepareCommitMessagePath = join(huskyFolderPath, \"prepare-commit-msg\");\n const hasCz = hasDependency(\"commitizen\") || hasDevDependency(\"commitizen\");\n\n if (hasCz && !checkIfFileExists(prepareCommitMessagePath)) {\n await writeFileAsync(\n prepareCommitMessagePath,\n `#!/bin/sh\n\n. \"$(dirname \"$0\")/_/husky.sh\"\n. \"$(dirname \"$0\")/common.sh\"\n\necho --------------------------------------------\necho Starting Git hook: prepare-commit-msg\n\n# if we hve a cmd that is running ${hasPnpm ? \"pnpx\" : \"npx\"} cz that means finalize and commit\nFILE=commit.cmd\nif test -f \"$FILE\"; then\n echo \"$FILE exists.\"\n rm commit.cmd\n exit 0;\nfi\n# if on Windows, spawn a cmd that will run ${hasPnpm ? \"pnpx\" : \"npx\"} cz\ncase \\`uname\\` in\n *CYGWIN*|*MINGW*|*MSYS* )\n # Only run commitizen if no commit message was already provided.\n if [ -z \"\\${2-}\" ]; then\n export CZ_TYPE=\"\\${CZ_TYPE:-fix}\"\n export CZ_MAX_HEADER_WIDTH=$COMMITLINT_MAX_WIDTH\n export CZ_MAX_LINE_WIDTH=$CZ_MAX_HEADER_WIDTH\n echo \"${hasPnpm ? \"pnpx\" : \"npx\"} cz && exit\" > commit.cmd\n start commit.cmd\n exit 1;\n fi\n\n exit 0;;\nesac\n\n# Only run commitizen if no commit message was already provided.\nif [ -z \"\\${2-}\" ]; then\n export CZ_TYPE=\"\\${CZ_TYPE:-fix}\"\n export CZ_MAX_HEADER_WIDTH=$COMMITLINT_MAX_WIDTH\n export CZ_MAX_LINE_WIDTH=$CZ_MAX_HEADER_WIDTH\n # By default git hooks are not interactive. exec < /dev/tty allows a users terminal to interact with commitizen.\n exec < /dev/tty && ${hasPnpm ? \"pnpx\" : \"npx\"} cz --hook || true\nfi\n\necho Finished Git hook: prepare-commit-msg\necho --------------------------------------------\n`,\n \"utf-8\",\n );\n }\n};\n\n// eslint-disable-next-line unicorn/prefer-top-level-await\n(async () => {\n try {\n await writeLintstagedRc();\n await writeHuskyFiles();\n\n console.log(\"😎 Everything went well, have fun!\");\n\n exit(0);\n } catch (error) {\n console.log(\"😬 something went wrong:\");\n console.error(error);\n\n exit(1);\n }\n})();\n"]}
|
package/group/package.json
DELETED
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@anoliab/lint-staged-config-group",
|
|
3
|
-
"version": "0.0.0",
|
|
4
|
-
"description": "Shareable Lint-Staged Config for any project.",
|
|
5
|
-
"license": "MIT",
|
|
6
|
-
"exports": {
|
|
7
|
-
"./group/eslint": {
|
|
8
|
-
"types": "./../dist/groups/eslint/index.d.ts",
|
|
9
|
-
"require": "./../dist/groups/eslint/index.js",
|
|
10
|
-
"import": "./../dist/groups/eslint/index.mjs"
|
|
11
|
-
},
|
|
12
|
-
"./group/json": {
|
|
13
|
-
"types": "./../dist/groups/json.d.ts",
|
|
14
|
-
"require": "./../dist/groups/json.js",
|
|
15
|
-
"import": "./../dist/groups/json.mjs"
|
|
16
|
-
},
|
|
17
|
-
"./group/markdown": {
|
|
18
|
-
"types": "./../dist/groups/markdown.d.ts",
|
|
19
|
-
"require": "./../dist/groups/markdown.js",
|
|
20
|
-
"import": "./../dist/groups/markdown.mjs"
|
|
21
|
-
},
|
|
22
|
-
"./group/secretlint": {
|
|
23
|
-
"types": "./../dist/groups/secretlint.d.ts",
|
|
24
|
-
"require": "./../dist/groups/secretlint.js",
|
|
25
|
-
"import": "./../dist/groups/secretlint.mjs"
|
|
26
|
-
},
|
|
27
|
-
"./group/stylesheets": {
|
|
28
|
-
"types": "./../dist/groups/stylesheets.d.ts",
|
|
29
|
-
"require": "./../dist/groups/stylesheets.js",
|
|
30
|
-
"import": "./../dist/groups/stylesheets.mjs"
|
|
31
|
-
},
|
|
32
|
-
"./group/tests": {
|
|
33
|
-
"types": "./../dist/groups/tests.d.ts",
|
|
34
|
-
"require": "./../dist/groups/tests.js",
|
|
35
|
-
"import": "./../dist/groups/tests.mjs"
|
|
36
|
-
},
|
|
37
|
-
"./group/typescript": {
|
|
38
|
-
"types": "./../dist/groups/typescript.d.ts",
|
|
39
|
-
"require": "./../dist/groups/typescript.js",
|
|
40
|
-
"import": "./../dist/groups/typescript.mjs"
|
|
41
|
-
},
|
|
42
|
-
"./package.json": "./package.json"
|
|
43
|
-
}
|
|
44
|
-
}
|