eslint-config-mgz 1.0.1 → 1.0.3

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.
Files changed (3) hide show
  1. package/README.md +13 -7
  2. package/base.js +2 -6
  3. package/package.json +9 -6
package/README.md CHANGED
@@ -23,9 +23,9 @@ Shared ESLint configuration for React + TypeScript projects
23
23
 
24
24
  ### 📂 Содержимое пакета
25
25
 
26
- | Файл | Назначение |
27
- | --------- | ------------------------------ |
28
- | `base.js` | Основная конфигурация ESLint |
26
+ | Файл | Назначение |
27
+ | --------- | ---------------------------- |
28
+ | `base.js` | Основная конфигурация ESLint |
29
29
 
30
30
  ---
31
31
 
@@ -90,27 +90,33 @@ module.exports = {
90
90
  ### 🧠 Включенные правила
91
91
 
92
92
  #### **ESLint Recommended**
93
+
93
94
  - Базовые правила JavaScript
94
95
 
95
96
  #### **TypeScript ESLint**
97
+
96
98
  - Правила для TypeScript кода
97
99
  - Строгая типизация
98
100
  - Лучшие практики TS
99
101
 
100
102
  #### **React ESLint**
103
+
101
104
  - Правила для React компонентов
102
105
  - React Hooks правила
103
106
  - JSX правила
104
107
 
105
108
  #### **Import ESLint**
109
+
106
110
  - Правила импортов модулей
107
111
  - Проверка путей импорта
108
112
 
109
113
  #### **JSX Accessibility**
114
+
110
115
  - Доступность JSX элементов
111
116
  - WCAG рекомендации
112
117
 
113
118
  #### **Prettier Integration**
119
+
114
120
  - Отключение конфликтующих правил
115
121
  - Совместимость с prettier
116
122
 
@@ -155,7 +161,7 @@ The goal is to standardize linting across all projects and ensure code quality.
155
161
 
156
162
  ### 📂 Package contents
157
163
 
158
- | File | Purpose |
164
+ | File | Purpose |
159
165
  | --------- | ------------------------- |
160
166
  | `base.js` | Main ESLint configuration |
161
167
 
@@ -238,9 +244,9 @@ Some rules are intentionally disabled for flexibility or due to conflicts with o
238
244
 
239
245
  ### 📂 Пакет құрамында
240
246
 
241
- | Файл | Мақсаты |
242
- | --------- | ----------------------- |
243
- | `base.js` | Негізгі ESLint конфигі |
247
+ | Файл | Мақсаты |
248
+ | --------- | ---------------------- |
249
+ | `base.js` | Негізгі ESLint конфигі |
244
250
 
245
251
  ---
246
252
 
package/base.js CHANGED
@@ -10,9 +10,7 @@ module.exports = {
10
10
  "eslint-config-prettier",
11
11
  ],
12
12
  settings: {
13
- react: {
14
- version: "detect",
15
- },
13
+ react: { version: "detect" },
16
14
  "import/resolver": {
17
15
  node: {
18
16
  paths: ["src"],
@@ -40,9 +38,7 @@ module.exports = {
40
38
  "react/prop-types": "off",
41
39
  "react/no-unknown-property": [
42
40
  "error",
43
- {
44
- ignore: ["cmdk-input-wrapper", "cmdk-empty"],
45
- },
41
+ { ignore: ["cmdk-input-wrapper", "cmdk-empty"] },
46
42
  ],
47
43
  "import/named": "off",
48
44
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-config-mgz",
3
- "version": "1.0.1",
3
+ "version": "1.0.3",
4
4
  "description": "Shared ESLint config for React + TypeScript projects",
5
5
  "main": "base.js",
6
6
  "files": [
@@ -17,13 +17,16 @@
17
17
  "author": "DSRC TEAM",
18
18
  "license": "MIT",
19
19
  "peerDependencies": {
20
- "eslint": "^8.0.0",
21
- "eslint-plugin-react": "^7.0.0",
22
- "eslint-plugin-react-hooks": "^4.0.0",
20
+ "eslint": "^8.0.0 || ^9.0.0",
21
+ "@typescript-eslint/parser": "^6.0.0 || ^7.0.0 || ^8.0.0",
22
+ "@typescript-eslint/eslint-plugin": "^6.0.0 || ^7.0.0 || ^8.0.0",
23
+ "eslint-plugin-react": "^7.0.0 || ^8.0.0",
24
+ "eslint-plugin-react-hooks": "^4.0.0 || ^5.0.0",
23
25
  "eslint-plugin-import": "^2.0.0",
24
26
  "eslint-plugin-jsx-a11y": "^6.0.0",
25
- "@typescript-eslint/parser": "^6.0.0",
26
- "@typescript-eslint/eslint-plugin": "^6.0.0",
27
27
  "eslint-config-prettier": "^9.0.0"
28
+ },
29
+ "engines": {
30
+ "node": ">=18"
28
31
  }
29
32
  }