@alexlit/lint-kit 204.0.2 → 205.1.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.
@@ -1,3 +1 @@
1
- export default {
2
- extends: ['@alexlit/config-commitlint'],
3
- };
1
+ export default { extends: ['@alexlit/config-hooks/commitlint'] };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alexlit/lint-kit",
3
- "version": "204.0.2",
3
+ "version": "205.1.0",
4
4
  "private": false,
5
5
  "description": "Preset of configuration files and dependencies for linting web applications (designed for Vue.js with TypeScript)",
6
6
  "keywords": [
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alexlit/config-eslint",
3
- "version": "154.9.3",
3
+ "version": "154.10.0",
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.2",
47
+ "@unocss/eslint-config": "^66.10.3",
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.9",
52
+ "eslint-plugin-jsdoc": "^64.4.0",
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.0",
62
+ "eslint-plugin-zod": "^4.13.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
- # Runner examples
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
- ```
@@ -0,0 +1,2 @@
1
+ /** @see [config-conventional](https://github.com/conventional-changelog/commitlint/tree/master/%40commitlint/config-conventional) */
2
+ export default { extends: ['@commitlint/config-conventional'] };
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alexlit/config-hooks",
3
- "version": "7.3.1",
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": "index.js",
25
+ "main": "lint-staged.js",
26
26
  "files": [
27
27
  "README.md",
28
- "index.js",
28
+ "commitlint.js",
29
29
  "lint-staged.js"
30
30
  ],
31
31
  "scripts": {
@@ -35,6 +35,9 @@
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
42
  "lint-staged": "^17.5.1",
40
43
  "simple-git-hooks": "^2.14.0"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alexlit/config-stylelint",
3
- "version": "61.2.1",
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.3",
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,20 +0,0 @@
1
- MIT License
2
-
3
- Copyright (c) 2020 Alexey Litovchenko
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy of
6
- this software and associated documentation files (the "Software"), to deal in
7
- the Software without restriction, including without limitation the rights to
8
- use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
9
- the Software, and to permit persons to whom the Software is furnished to do so,
10
- subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
17
- FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
18
- COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
19
- IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
20
- CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -1,22 +0,0 @@
1
- # CommitLint Configuration
2
-
3
- Lines the commit message and also runs the code through the linters and does not
4
- pass commit if errors are found
5
-
6
- ## Installation
7
-
8
- ```sh
9
- npm i @alexlit/config-commitlint -D
10
- ```
11
-
12
- ## Connection
13
-
14
- ```js
15
- // commitlint.config.js
16
- export default { extends: ['@alexlit/config-commitlint'] };
17
- ```
18
-
19
- ```bash
20
- # .husky/commit-msg
21
- npx --no -- commitlint --edit "$1"
22
- ```
@@ -1 +0,0 @@
1
- export default { extends: ['@commitlint/config-conventional'] };
@@ -1,45 +0,0 @@
1
- {
2
- "name": "@alexlit/config-commitlint",
3
- "version": "14.2.5",
4
- "private": false,
5
- "description": "Commitlint config",
6
- "keywords": [
7
- "commitlint",
8
- "config"
9
- ],
10
- "homepage": "https://github.com/alex-lit/lint-kit/tree/master/packages/config-commitlint#readme",
11
- "bugs": {
12
- "url": "https://github.com/alex-lit/lint-kit/issues"
13
- },
14
- "repository": {
15
- "type": "git",
16
- "url": "git+https://github.com/alex-lit/lint-kit.git",
17
- "directory": "packages/config-commitlint"
18
- },
19
- "license": "MIT",
20
- "author": "Alexey Litovchenko",
21
- "maintainers": [
22
- "Alexey Litovchenko <alex.lit@outlook.com> (https://github.com/alex-lit)"
23
- ],
24
- "type": "module",
25
- "main": "index.js",
26
- "files": [
27
- "README.md",
28
- "index.js"
29
- ],
30
- "scripts": {
31
- "ou": "../../scripts/ou.sh",
32
- "release": "../../scripts/release.sh",
33
- "semver": "../../scripts/semver.sh",
34
- "up": "../../scripts/up.sh"
35
- },
36
- "dependencies": {
37
- "@commitlint/cli": "^21.2.2",
38
- "@commitlint/config-conventional": "^21.2.2",
39
- "conventional-changelog-cli": "^5.0.0"
40
- },
41
- "publishConfig": {
42
- "access": "public",
43
- "registry": "https://registry.npmjs.org/"
44
- }
45
- }
@@ -1 +0,0 @@
1
- export { createLintStagedConfig } from './lint-staged.js';