@alexlit/lint-kit 201.2.5 → 203.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alexlit/lint-kit",
3
- "version": "201.2.5",
3
+ "version": "203.0.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": [
@@ -0,0 +1,34 @@
1
+ # Changelog
2
+
3
+
4
+ ## v153.4.0
5
+
6
+ [compare changes](https://github.com/alex-lit/lint-kit/compare/@alexlit/config-eslint@153.3.0...v153.4.0)
7
+
8
+ ### 🏡 Chore
9
+
10
+ - **@alexlit/lint-kit:** Bump version ([85b0b3a2](https://github.com/alex-lit/lint-kit/commit/85b0b3a2))
11
+ - **@alexlit/config-hooks:** Bump version ([d1e01056](https://github.com/alex-lit/lint-kit/commit/d1e01056))
12
+
13
+ ### ❤️ Contributors
14
+
15
+ - Alexey Litovchenko ([@alex-lit](https://github.com/alex-lit))
16
+
17
+ ## v153.3.0
18
+
19
+ [compare changes](https://github.com/alex-lit/lint-kit/compare/@alexlit/config-eslint@153.2.1...v153.3.0)
20
+
21
+ ### 🏡 Chore
22
+
23
+ - **@alexlit/config-commitlint:** Bump version ([7f46ad83](https://github.com/alex-lit/lint-kit/commit/7f46ad83))
24
+ - **@alexlit/config-commitlint:** Bump version ([d9f8369e](https://github.com/alex-lit/lint-kit/commit/d9f8369e))
25
+ - **@alexlit/lint-kit:** Bump version ([23e2ee78](https://github.com/alex-lit/lint-kit/commit/23e2ee78))
26
+ - **@alexlit/lint-kit:** Bump version ([fcc93e31](https://github.com/alex-lit/lint-kit/commit/fcc93e31))
27
+ - **@alexlit/lint-kit:** Bump version ([6c5aeb15](https://github.com/alex-lit/lint-kit/commit/6c5aeb15))
28
+ - **@alexlit/lint-kit:** Bump version ([abb7587d](https://github.com/alex-lit/lint-kit/commit/abb7587d))
29
+ - **@alexlit/config-npmlint:** Bump version ([f1add18f](https://github.com/alex-lit/lint-kit/commit/f1add18f))
30
+
31
+ ### ❤️ Contributors
32
+
33
+ - Alexey Litovchenko ([@alex-lit](https://github.com/alex-lit))
34
+
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alexlit/config-eslint",
3
- "version": "153.2.1",
3
+ "version": "153.4.0",
4
4
  "private": false,
5
5
  "description": "Sharable ESLint configuration",
6
6
  "keywords": [
@@ -49,13 +49,13 @@
49
49
  "@vitest/eslint-plugin": "^1.6.27",
50
50
  "eslint": "^10.8.1",
51
51
  "eslint-config-prettier": "^10.1.8",
52
- "eslint-plugin-jsdoc": "^64.1.0",
52
+ "eslint-plugin-jsdoc": "^64.2.1",
53
53
  "eslint-plugin-perfectionist": "^5.10.1",
54
54
  "eslint-plugin-pinia": "^0.4.2",
55
55
  "eslint-plugin-prettier": "^5.5.6",
56
56
  "eslint-plugin-regexp": "^3.2.0",
57
57
  "eslint-plugin-sonarjs": "^4.2.0",
58
- "eslint-plugin-tailwindcss": "^4.2.0",
58
+ "eslint-plugin-tailwindcss": "^4.3.0",
59
59
  "eslint-plugin-unicorn": "^73.0.0",
60
60
  "eslint-plugin-vue": "^10.10.0",
61
61
  "eslint-plugin-vuejs-accessibility": "^2.6.0",
@@ -5,7 +5,7 @@ import { FILES } from '../presets/base.js';
5
5
 
6
6
  /** @see [eslint-plugin-perfectionist](https://perfectionist.dev) */
7
7
  export const perfectionist = defineConfig([
8
- { files: FILES, ...plugin.configs['recommended-natural'] },
8
+ { ...plugin.configs['recommended-natural'], files: FILES },
9
9
  {
10
10
  files: FILES,
11
11
  rules: {
@@ -0,0 +1,7 @@
1
+ # Changelog
2
+
3
+
4
+ ## v7.0.0
5
+
6
+ [compare changes](https://github.com/alex-lit/lint-kit/compare/@alexlit/lint-kit@202.0.0...v7.0.0)
7
+
@@ -16,9 +16,7 @@ npm i @alexlit/config-hooks -D
16
16
 
17
17
  export default createLintStagedConfig(
18
18
  // optional plugins list
19
- {
20
- stylelint: false,
21
- },
19
+ { stylelint: false },
22
20
 
23
21
  // optional config
24
22
  {
@@ -28,11 +26,57 @@ npm i @alexlit/config-hooks -D
28
26
  );
29
27
  ```
30
28
 
29
+ # Runner examples
30
+
31
+ - simple-git-hooks
32
+
33
+ ```json
34
+ // package.json
35
+ {
36
+ "scripts": { "prepare": "simple-git-hooks" },
37
+ "simple-git-hooks": {
38
+ "commit-msg": "npx commitlint --edit",
39
+ "pre-commit": "npx lint-staged"
40
+ }
41
+ }
42
+ ```
43
+
44
+ ```sh
45
+ npx simple-git-hooks
46
+ ```
47
+
31
48
  - husky
32
49
 
50
+ ```json
51
+ // package.json
52
+ { "scripts": { "prepare": "husky" } }
53
+ ```
54
+
33
55
  ```sh
34
56
  npx husky init
35
57
 
36
58
  echo 'npx --no -- commitlint --edit "$1"' > .husky/commit-msg
37
59
  echo 'npx --no lint-staged' > .husky/pre-commit
38
60
  ```
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": "6.3.0",
3
+ "version": "7.0.0",
4
4
  "private": false,
5
5
  "description": "Hooks config",
6
6
  "keywords": [
@@ -37,7 +37,8 @@
37
37
  },
38
38
  "dependencies": {
39
39
  "husky": "^9.1.7",
40
- "lint-staged": "^17.3.0"
40
+ "lint-staged": "^17.3.0",
41
+ "simple-git-hooks": "^2.13.1"
41
42
  },
42
43
  "publishConfig": {
43
44
  "access": "public",
@@ -0,0 +1,7 @@
1
+ # Changelog
2
+
3
+
4
+ ## v10.0.0
5
+
6
+ [compare changes](https://github.com/alex-lit/lint-kit/compare/@alexlit/lint-kit@201.2.5...v10.0.0)
7
+
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alexlit/config-npmlint",
3
- "version": "9.4.1",
3
+ "version": "10.0.0",
4
4
  "private": false,
5
5
  "description": "npmlint config",
6
6
  "keywords": [
@@ -40,8 +40,8 @@
40
40
  },
41
41
  "dependencies": {
42
42
  "lockfile-lint": "^5.0.1",
43
- "npm-package-json-lint": "^10.5.1",
44
- "npm-package-json-lint-config-default": "^9.0.1"
43
+ "npm-package-json-lint": "^11.0.0",
44
+ "npm-package-json-lint-config-default": "^10.0.0"
45
45
  },
46
46
  "publishConfig": {
47
47
  "access": "public",