@alexlit/lint-kit 200.0.1 → 200.2.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": "200.0.1",
3
+ "version": "200.2.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": "152.0.0",
3
+ "version": "152.2.0",
4
4
  "private": false,
5
5
  "description": "Sharable ESLint configuration",
6
6
  "keywords": [
@@ -60,7 +60,7 @@
60
60
  "eslint-plugin-vuejs-accessibility": "^2.5.0",
61
61
  "eslint-plugin-zod": "^4.9.0",
62
62
  "globals": "^17.9.0",
63
- "jsonc-eslint-parser": "^3.1.0",
63
+ "jsonc-eslint-parser": "^3.2.0",
64
64
  "typescript": "^6.0.3",
65
65
  "typescript-eslint": "^8.66.0",
66
66
  "yaml-eslint-parser": "^2.1.0"
@@ -44,6 +44,20 @@ export const javascript = defineConfig([
44
44
  "Не используйте префикс 'handle' для обработчиков событий. Переименуйте метод, заменив 'handle' на 'on' (например, 'onClick' вместо 'handleClick').",
45
45
  selector: 'Identifier[name=/^handle[A-Z]/]',
46
46
  },
47
+ {
48
+ message:
49
+ "Использование классического цикла 'for' запрещено. Используйте методы массивов (.forEach, .map и т.д.).",
50
+ selector: 'ForStatement',
51
+ },
52
+ {
53
+ message:
54
+ "Цикл 'for...in' запрещен. Используйте Object.keys() или Object.entries().",
55
+ selector: 'ForInStatement',
56
+ },
57
+ {
58
+ message: "Цикл 'for...of' запрещен. Используйте методы массивов.",
59
+ selector: 'ForOfStatement',
60
+ },
47
61
  ],
48
62
  'prefer-arrow-callback': [
49
63
  'error',
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alexlit/config-stylelint",
3
- "version": "61.0.0",
3
+ "version": "61.0.1",
4
4
  "private": false,
5
5
  "description": "Stylelint config",
6
6
  "keywords": [
@@ -38,7 +38,7 @@
38
38
  "dependencies": {
39
39
  "@double-great/stylelint-a11y": "^3.5.1",
40
40
  "@morev/stylelint-plugin": "^0.6.1",
41
- "postcss": "^8.5.25",
41
+ "postcss": "^8.5.26",
42
42
  "postcss-html": "^2.0.0",
43
43
  "prettier": "^3.9.6",
44
44
  "stylelint": "17.14.1",