@alexlit/lint-kit 204.0.1 → 205.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/commitlint.config.js +1 -3
- package/package.json +1 -1
- package/packages/config-commitlint/README.md +4 -0
- package/packages/config-commitlint/package.json +1 -1
- package/packages/config-eslint/package.json +4 -4
- package/packages/config-hooks/README.md +8 -23
- package/packages/config-hooks/commitlint.js +2 -0
- package/packages/config-hooks/package.json +7 -4
- package/packages/config-stylelint/package.json +2 -2
- package/packages/config-hooks/index.js +0 -1
package/commitlint.config.js
CHANGED
package/package.json
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
# CommitLint Configuration
|
|
2
2
|
|
|
3
|
+
> **Warning** <br /> This repository is deprecated. Please use
|
|
4
|
+
> [@alexlit/config-hooks](https://github.com/alex-lit/lint-kit/tree/master/packages/config-hooks)
|
|
5
|
+
> instead.
|
|
6
|
+
|
|
3
7
|
Lines the commit message and also runs the code through the linters and does not
|
|
4
8
|
pass commit if errors are found
|
|
5
9
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alexlit/config-eslint",
|
|
3
|
-
"version": "154.9.
|
|
3
|
+
"version": "154.9.4",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Sharable ESLint configuration",
|
|
6
6
|
"keywords": [
|
|
@@ -44,12 +44,12 @@
|
|
|
44
44
|
"@intlify/eslint-plugin-vue-i18n": "^4.5.1",
|
|
45
45
|
"@stylistic/eslint-plugin": "^5.10.0",
|
|
46
46
|
"@tanstack/eslint-plugin-query": "^5.102.8",
|
|
47
|
-
"@unocss/eslint-config": "^66.10.
|
|
47
|
+
"@unocss/eslint-config": "^66.10.2",
|
|
48
48
|
"@vitest/eslint-plugin": "^1.6.27",
|
|
49
49
|
"eslint": "^10.10.0",
|
|
50
50
|
"eslint-config-prettier": "^10.1.8",
|
|
51
51
|
"eslint-plugin-de-morgan": "^2.1.3",
|
|
52
|
-
"eslint-plugin-jsdoc": "^64.3.
|
|
52
|
+
"eslint-plugin-jsdoc": "^64.3.10",
|
|
53
53
|
"eslint-plugin-perfectionist": "^5.11.0",
|
|
54
54
|
"eslint-plugin-pinia": "^0.4.2",
|
|
55
55
|
"eslint-plugin-prettier": "^5.5.6",
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
"eslint-plugin-unicorn": "^74.0.0",
|
|
60
60
|
"eslint-plugin-vue": "^10.11.0",
|
|
61
61
|
"eslint-plugin-vuejs-accessibility": "^2.6.0",
|
|
62
|
-
"eslint-plugin-zod": "^4.12.
|
|
62
|
+
"eslint-plugin-zod": "^4.12.1",
|
|
63
63
|
"globals": "^17.12.0",
|
|
64
64
|
"jsonc-eslint-parser": "^3.3.0",
|
|
65
65
|
"typescript": "^6.0.3",
|
|
@@ -8,6 +8,13 @@ npm i @alexlit/config-hooks -D
|
|
|
8
8
|
|
|
9
9
|
## Connection
|
|
10
10
|
|
|
11
|
+
- commitlint
|
|
12
|
+
|
|
13
|
+
```js
|
|
14
|
+
// commitlint.config.js
|
|
15
|
+
export default { extends: ['@alexlit/config-hooks/commitlint'] };
|
|
16
|
+
```
|
|
17
|
+
|
|
11
18
|
- lint-staged
|
|
12
19
|
|
|
13
20
|
```js
|
|
@@ -26,7 +33,7 @@ npm i @alexlit/config-hooks -D
|
|
|
26
33
|
);
|
|
27
34
|
```
|
|
28
35
|
|
|
29
|
-
|
|
36
|
+
## Runner examples
|
|
30
37
|
|
|
31
38
|
- simple-git-hooks
|
|
32
39
|
|
|
@@ -58,25 +65,3 @@ npm i @alexlit/config-hooks -D
|
|
|
58
65
|
echo 'npx --no -- commitlint --edit "$1"' > .husky/commit-msg
|
|
59
66
|
echo 'npx --no lint-staged' > .husky/pre-commit
|
|
60
67
|
```
|
|
61
|
-
|
|
62
|
-
- git (native)
|
|
63
|
-
|
|
64
|
-
```json
|
|
65
|
-
{ "scripts": { "prepare": "git config core.hooksPath .githooks" } }
|
|
66
|
-
```
|
|
67
|
-
|
|
68
|
-
```sh
|
|
69
|
-
# 1. Создаем нативную папку и привязываем её к Git
|
|
70
|
-
mkdir -p .githooks && git config core.hooksPath .githooks
|
|
71
|
-
|
|
72
|
-
# 2. Создаем хук pre-commit
|
|
73
|
-
echo '#!/bin/sh' > .githooks/pre-commit
|
|
74
|
-
echo 'npx --no -- lint-staged' >> .githooks/pre-commit
|
|
75
|
-
|
|
76
|
-
# 3. Создаем хук commit-msg
|
|
77
|
-
echo '#!/bin/sh' > .githooks/commit-msg
|
|
78
|
-
echo 'npx --no -- commitlint --edit "$1"' >> .githooks/commit-msg
|
|
79
|
-
|
|
80
|
-
# 4. Делаем файлы исполняемыми
|
|
81
|
-
chmod +x .githooks/pre-commit .githooks/commit-msg
|
|
82
|
-
```
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alexlit/config-hooks",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "8.0.1",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Hooks config",
|
|
6
6
|
"keywords": [
|
|
@@ -22,10 +22,10 @@
|
|
|
22
22
|
"Alexey Litovchenko <alex.lit@outlook.com> (https://github.com/alex-lit)"
|
|
23
23
|
],
|
|
24
24
|
"type": "module",
|
|
25
|
-
"main": "
|
|
25
|
+
"main": "lint-staged.js",
|
|
26
26
|
"files": [
|
|
27
27
|
"README.md",
|
|
28
|
-
"
|
|
28
|
+
"commitlint.js",
|
|
29
29
|
"lint-staged.js"
|
|
30
30
|
],
|
|
31
31
|
"scripts": {
|
|
@@ -35,8 +35,11 @@
|
|
|
35
35
|
"up": "../../scripts/up.sh"
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
|
+
"@commitlint/cli": "^21.2.2",
|
|
39
|
+
"@commitlint/config-conventional": "^21.2.2",
|
|
40
|
+
"conventional-changelog-cli": "^5.0.0",
|
|
38
41
|
"husky": "^9.1.7",
|
|
39
|
-
"lint-staged": "^17.5.
|
|
42
|
+
"lint-staged": "^17.5.1",
|
|
40
43
|
"simple-git-hooks": "^2.14.0"
|
|
41
44
|
},
|
|
42
45
|
"publishConfig": {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alexlit/config-stylelint",
|
|
3
|
-
"version": "61.2.
|
|
3
|
+
"version": "61.2.2",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Stylelint config",
|
|
6
6
|
"keywords": [
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"up": "../../scripts/up.sh"
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@double-great/stylelint-a11y": "^3.5.
|
|
39
|
+
"@double-great/stylelint-a11y": "^3.5.4",
|
|
40
40
|
"@morev/stylelint-plugin": "^0.6.1",
|
|
41
41
|
"postcss": "^8.5.28",
|
|
42
42
|
"postcss-html": "^2.0.0",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { createLintStagedConfig } from './lint-staged.js';
|