stylelint-standard 0.0.1-security → 1.2.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.
Potentially problematic release.
This version of stylelint-standard might be problematic. Click here for more details.
- package/.editorconfig +5 -0
- package/.shellcheckrc +1 -0
- package/LICENSE +21 -0
- package/README.md +1 -5
- package/docs/.vitepress/config.mts +125 -0
- package/docs/es/get-started.md +79 -0
- package/docs/es/how-to.md +335 -0
- package/docs/es/index.md +82 -0
- package/docs/es/migrate-from-v4.md +65 -0
- package/docs/es/troubleshoot.md +41 -0
- package/docs/get-started.md +80 -0
- package/docs/how-to.md +326 -0
- package/docs/index.md +82 -0
- package/docs/manifest +1 -0
- package/docs/migrate-from-v4.md +65 -0
- package/docs/package-lock.json +2914 -0
- package/docs/package.json +10 -0
- package/docs/ru/get-started.md +79 -0
- package/docs/ru/how-to.md +326 -0
- package/docs/ru/index.md +80 -0
- package/docs/ru/migrate-from-v4.md +66 -0
- package/docs/ru/troubleshoot.md +41 -0
- package/docs/sponsorkit/sponsors.svg +573 -0
- package/docs/sponsorkit.config.js +40 -0
- package/docs/troubleshoot.md +41 -0
- package/docs/zh/get-started.md +63 -0
- package/docs/zh/how-to.md +326 -0
- package/docs/zh/index.md +81 -0
- package/docs/zh/migrate-from-v4.md +72 -0
- package/docs/zh/troubleshoot.md +41 -0
- package/husky +22 -0
- package/index.d.ts +1 -0
- package/index.js +25 -0
- package/package.json +8 -4
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
# Migrate from v4
|
|
2
|
+
|
|
3
|
+
If you were calling `package.json` scripts using `npm` or `yarn`, **you can simply copy your commands** from your config file to the corresponding hook:
|
|
4
|
+
|
|
5
|
+
Husky v4
|
|
6
|
+
|
|
7
|
+
```json
|
|
8
|
+
// package.json
|
|
9
|
+
{
|
|
10
|
+
"hooks": {
|
|
11
|
+
"pre-commit": "npm test && npm run foo" // [!code hl]
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
Husky v9
|
|
17
|
+
|
|
18
|
+
```shell
|
|
19
|
+
# .husky/pre-commit
|
|
20
|
+
# Note that you can now have commands on multiple lines
|
|
21
|
+
npm test // [!code hl]
|
|
22
|
+
npm run foo // [!code hl]
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
If you were calling locally installed binaries, **you need to run them via your package manager now**:
|
|
26
|
+
|
|
27
|
+
::: code-group
|
|
28
|
+
|
|
29
|
+
```js [.huskyrc.json (v4)]
|
|
30
|
+
{
|
|
31
|
+
"hooks": {
|
|
32
|
+
"pre-commit": "jest"
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
```shell [.husky/pre-commit (v9)]
|
|
38
|
+
jest
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
:::
|
|
42
|
+
|
|
43
|
+
`HUSKY_GIT_PARAMS` environment variable is replaced now by native params `$1`, `$2`, etc.
|
|
44
|
+
|
|
45
|
+
::: code-group
|
|
46
|
+
|
|
47
|
+
```js [.huskyrc.json (v4)]
|
|
48
|
+
{
|
|
49
|
+
"hooks": {
|
|
50
|
+
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
```shell [.husky/commit-msg (v9)]
|
|
56
|
+
commitlint --edit $1
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
:::
|
|
60
|
+
|
|
61
|
+
Other environment variables changes:
|
|
62
|
+
|
|
63
|
+
- `HUSKY_SKIP_HOOKS` is replaced by `HUSKY`.
|
|
64
|
+
- `HUSKY_SKIP_INSTALL` is replaced by `HUSKY`.
|
|
65
|
+
- `HUSKY_GIT_PARAMS` is removed. Instead Git parameters should be used directly in scripts (e.g. `$1`).
|