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.

@@ -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`).