@alexlit/lint-kit 217.0.1 → 217.1.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alexlit/lint-kit",
3
- "version": "217.0.1",
3
+ "version": "217.1.1",
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": [
@@ -33,6 +33,12 @@ export default defineConfig([
33
33
  ]);
34
34
  ```
35
35
 
36
+ ## Пример скриптов для package.json
37
+
38
+ ```json
39
+ { "scripts": { "lint:es": "eslint . --fix" } }
40
+ ```
41
+
36
42
  > [!NOTE]
37
43
  >
38
44
  > `plugins.javascript()` включает строгие правила для импортов: запрещает
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alexlit/config-eslint",
3
- "version": "164.1.1",
3
+ "version": "164.2.1",
4
4
  "private": false,
5
5
  "description": "eslint config",
6
6
  "keywords": [
@@ -48,10 +48,10 @@
48
48
  "@eslint/json": "^2.1.1",
49
49
  "@intlify/eslint-plugin-vue-i18n": "^4.5.1",
50
50
  "@stylistic/eslint-plugin": "^5.10.0",
51
- "@tanstack/eslint-plugin-query": "^5.105.0",
51
+ "@tanstack/eslint-plugin-query": "^5.105.3",
52
52
  "@unocss/eslint-config": "^66.12.0",
53
53
  "@vitest/eslint-plugin": "^1.6.28",
54
- "eslint": "^10.13.0",
54
+ "eslint": "^10.14.0",
55
55
  "eslint-config-prettier": "^10.1.8",
56
56
  "eslint-plugin-de-morgan": "^2.3.0",
57
57
  "eslint-plugin-import-x": "^4.17.1",
@@ -59,14 +59,14 @@
59
59
  "eslint-plugin-perfectionist": "^5.13.0",
60
60
  "eslint-plugin-pinia": "^0.4.2",
61
61
  "eslint-plugin-prettier": "^5.5.7",
62
- "eslint-plugin-regexp": "^3.3.1",
62
+ "eslint-plugin-regexp": "^3.3.3",
63
63
  "eslint-plugin-sonarjs": "^4.2.2",
64
64
  "eslint-plugin-tailwindcss": "^4.4.0",
65
65
  "eslint-plugin-unicorn": "^79.0.0",
66
66
  "eslint-plugin-vue": "^10.12.0",
67
67
  "eslint-plugin-vuejs-accessibility": "^2.6.3",
68
68
  "eslint-plugin-zod": "^5.2.2",
69
- "globals": "^17.13.0",
69
+ "globals": "^17.14.0",
70
70
  "jsonc-eslint-parser": "^3.3.0",
71
71
  "typescript": "^6.0.3",
72
72
  "typescript-eslint": "^8.72.1",
@@ -74,7 +74,7 @@
74
74
  "yaml-eslint-parser": "^2.1.0"
75
75
  },
76
76
  "devDependencies": {
77
- "tailwindcss": "^4.3.3"
77
+ "tailwindcss": "^4.3.4"
78
78
  },
79
79
  "publishConfig": {
80
80
  "access": "public",
@@ -25,6 +25,12 @@ import { defineConfig } from '@alexlit/config-htmllint';
25
25
  export default defineConfig();
26
26
  ```
27
27
 
28
+ ## Пример скриптов для package.json
29
+
30
+ ```json
31
+ { "scripts": { "lint:html": "linthtml '**/*.html'" } }
32
+ ```
33
+
28
34
  Готово: подключены рекомендованный конфиг, правила пакета и дефолтные опции
29
35
  линтера.
30
36
 
@@ -27,6 +27,16 @@ npm i @alexlit/config-markdownlint -D
27
27
  { "extends": "@alexlit/config-markdownlint" }
28
28
  ```
29
29
 
30
+ ## Пример скриптов для package.json
31
+
32
+ ```json
33
+ {
34
+ "scripts": {
35
+ "lint:md": "markdownlint '**/*.md' --fix --ignore-path .gitignore"
36
+ }
37
+ }
38
+ ```
39
+
30
40
  Готово: линтер работает с набором правил пакета.
31
41
 
32
42
  ## Настройка
@@ -28,6 +28,16 @@ npm i @alexlit/config-npmlint -D
28
28
  { "extends": "@alexlit/config-npmlint" }
29
29
  ```
30
30
 
31
+ ## Пример скриптов для package.json
32
+
33
+ ```json
34
+ {
35
+ "scripts": {
36
+ "lint:lockfile": "lockfile-lint --type npm --path package-lock.json && npmPkgJsonLint ."
37
+ }
38
+ }
39
+ ```
40
+
31
41
  Готово: линтер работает с набором правил пакета.
32
42
 
33
43
  ## Настройка
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alexlit/config-npmlint",
3
- "version": "10.1.1",
3
+ "version": "10.1.2",
4
4
  "private": false,
5
5
  "description": "npmlint config",
6
6
  "keywords": [
@@ -39,7 +39,7 @@
39
39
  },
40
40
  "dependencies": {
41
41
  "lockfile-lint": "^5.1.0",
42
- "npm-package-json-lint": "^11.0.0",
42
+ "npm-package-json-lint": "^11.0.1",
43
43
  "npm-package-json-lint-config-default": "^10.0.0"
44
44
  },
45
45
  "publishConfig": {
@@ -28,6 +28,12 @@ import { defineConfig, plugins } from '@alexlit/config-prettier';
28
28
  export default defineConfig([plugins.packageJson(), plugins.xml()]);
29
29
  ```
30
30
 
31
+ ## Пример скриптов для package.json
32
+
33
+ ```json
34
+ { "scripts": { "lint:format": "prettier . --check --write" } }
35
+ ```
36
+
31
37
  Каждый вызов `plugins.*()` - отдельный плагин. Добавьте только то, что нужно
32
38
  проекту; полный список - в разделе [Плагины](#плагины).
33
39
 
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alexlit/config-prettier",
3
- "version": "25.1.1",
3
+ "version": "25.2.0",
4
4
  "private": false,
5
5
  "description": "prettier config",
6
6
  "keywords": [
@@ -46,7 +46,7 @@
46
46
  "prettier-plugin-eruby": "^0.0.3",
47
47
  "prettier-plugin-jsdoc": "^1.8.1",
48
48
  "prettier-plugin-mdc": "^0.2.1",
49
- "prettier-plugin-packagejson": "^3.0.3",
49
+ "prettier-plugin-packagejson": "^3.1.0",
50
50
  "prettier-plugin-sh": "^0.20.2",
51
51
  "prettier-plugin-solidity": "^2.4.1",
52
52
  "prettier-plugin-sort-json": "^4.2.0",
@@ -33,6 +33,16 @@ export default defineConfig([
33
33
  ]);
34
34
  ```
35
35
 
36
+ ## Пример скриптов для package.json
37
+
38
+ ```json
39
+ {
40
+ "scripts": {
41
+ "lint:css": "stylelint '**/*.{css,scss,sass,pcss,vue}' --fix --ignore-path .gitignore"
42
+ }
43
+ }
44
+ ```
45
+
36
46
  Каждый вызов `plugins.*()` - отдельная проверка. Добавьте только то, что нужно
37
47
  проекту; полный список - в разделе [Проверки](#проверки).
38
48
 
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alexlit/config-stylelint",
3
- "version": "64.1.1",
3
+ "version": "64.1.2",
4
4
  "private": false,
5
5
  "description": "Stylelint config",
6
6
  "keywords": [
@@ -39,7 +39,7 @@
39
39
  "up": "../../scripts/up.sh"
40
40
  },
41
41
  "dependencies": {
42
- "@double-great/stylelint-a11y": "^3.8.1",
42
+ "@double-great/stylelint-a11y": "^3.8.3",
43
43
  "@morev/stylelint-plugin": "^0.7.0",
44
44
  "postcss": "^8.5.32",
45
45
  "postcss-html": "^2.0.0",
package/scripts/i.sh CHANGED
@@ -7,8 +7,7 @@ echo -e "${YELLOW}Устанавливаю зависимости...${WHITE}"
7
7
  find . -name "node_modules" -type d -prune -exec rm -rf '{}' +
8
8
  rm -rf package-lock.json
9
9
  # npm cache clean --force
10
- npm install \
11
- --loglevel verbose
10
+ npm install
12
11
  npm dedupe
13
12
 
14
13
  SAY_GOODBYE