eslint-plugin-code-style 1.0.4 → 1.0.6
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/README.md +291 -137
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -1,20 +1,100 @@
|
|
|
1
|
+
<div align="center">
|
|
2
|
+
|
|
1
3
|
# ESLint Plugin Code Style
|
|
2
4
|
|
|
3
|
-
|
|
5
|
+
[](https://www.npmjs.com/package/eslint-plugin-code-style)
|
|
6
|
+
[](https://www.npmjs.com/package/eslint-plugin-code-style)
|
|
7
|
+
[](https://github.com/Mohamed-Elhawary/eslint-plugin-code-style/blob/main/LICENSE)
|
|
8
|
+
|
|
9
|
+
[](https://eslint.org/)
|
|
10
|
+
[](https://nodejs.org/)
|
|
11
|
+
[](https://react.dev/)
|
|
12
|
+
|
|
13
|
+
[](https://github.com/Mohamed-Elhawary/eslint-plugin-code-style/stargazers)
|
|
14
|
+
[](https://github.com/Mohamed-Elhawary/eslint-plugin-code-style/issues)
|
|
15
|
+
|
|
16
|
+
<br />
|
|
17
|
+
|
|
18
|
+
**A powerful ESLint plugin for enforcing consistent code formatting and style rules in React/JSX projects.**
|
|
19
|
+
|
|
20
|
+
*45+ auto-fixable rules to keep your codebase clean and consistent*
|
|
21
|
+
|
|
22
|
+
<br />
|
|
23
|
+
|
|
24
|
+
[Installation](#-installation) •
|
|
25
|
+
[Quick Start](#-quick-start) •
|
|
26
|
+
[Rules](#-rules-reference) •
|
|
27
|
+
[Examples](#-examples) •
|
|
28
|
+
[Contributing](#-contributing)
|
|
29
|
+
|
|
30
|
+
</div>
|
|
31
|
+
|
|
32
|
+
<br />
|
|
33
|
+
|
|
34
|
+
---
|
|
35
|
+
|
|
36
|
+
<br />
|
|
37
|
+
|
|
38
|
+
## ✨ Features
|
|
39
|
+
|
|
40
|
+
<table>
|
|
41
|
+
<tr>
|
|
42
|
+
<td width="50%">
|
|
43
|
+
|
|
44
|
+
### Auto-Fixable Rules
|
|
45
|
+
All **45+ rules** support automatic fixing with `eslint --fix`. No manual code changes needed.
|
|
46
|
+
|
|
47
|
+
</td>
|
|
48
|
+
<td width="50%">
|
|
49
|
+
|
|
50
|
+
### React & JSX Support
|
|
51
|
+
Built specifically for React projects with comprehensive JSX formatting rules.
|
|
52
|
+
|
|
53
|
+
</td>
|
|
54
|
+
</tr>
|
|
55
|
+
<tr>
|
|
56
|
+
<td width="50%">
|
|
57
|
+
|
|
58
|
+
### ESLint v9+ Ready
|
|
59
|
+
Designed for ESLint's new flat config system. Modern and future-proof.
|
|
60
|
+
|
|
61
|
+
</td>
|
|
62
|
+
<td width="50%">
|
|
63
|
+
|
|
64
|
+
### Zero Dependencies
|
|
65
|
+
Lightweight plugin with no external dependencies. Fast and efficient.
|
|
66
|
+
|
|
67
|
+
</td>
|
|
68
|
+
</tr>
|
|
69
|
+
</table>
|
|
4
70
|
|
|
5
|
-
|
|
71
|
+
<br />
|
|
72
|
+
|
|
73
|
+
## 📦 Installation
|
|
6
74
|
|
|
7
75
|
```bash
|
|
76
|
+
# npm
|
|
8
77
|
npm install eslint-plugin-code-style --save-dev
|
|
9
|
-
|
|
78
|
+
|
|
79
|
+
# pnpm
|
|
10
80
|
pnpm add eslint-plugin-code-style -D
|
|
11
|
-
|
|
81
|
+
|
|
82
|
+
# yarn
|
|
12
83
|
yarn add eslint-plugin-code-style -D
|
|
13
84
|
```
|
|
14
85
|
|
|
15
|
-
|
|
86
|
+
### Requirements
|
|
87
|
+
|
|
88
|
+
| Dependency | Version |
|
|
89
|
+
|------------|---------|
|
|
90
|
+
| **ESLint** | `>= 9.0.0` |
|
|
91
|
+
| **Node.js** | `>= 24.0.0` |
|
|
92
|
+
|
|
93
|
+
<br />
|
|
94
|
+
|
|
95
|
+
## 🚀 Quick Start
|
|
16
96
|
|
|
17
|
-
|
|
97
|
+
Create or update your `eslint.config.js`:
|
|
18
98
|
|
|
19
99
|
```javascript
|
|
20
100
|
import codeStyle from "eslint-plugin-code-style";
|
|
@@ -25,14 +105,24 @@ export default [
|
|
|
25
105
|
"code-style": codeStyle,
|
|
26
106
|
},
|
|
27
107
|
rules: {
|
|
28
|
-
|
|
29
|
-
|
|
108
|
+
// Enable individual rules
|
|
109
|
+
"code-style/import-format": "error",
|
|
110
|
+
"code-style/jsx-children-on-new-line": "error",
|
|
111
|
+
// ... add more rules as needed
|
|
30
112
|
},
|
|
31
113
|
},
|
|
32
114
|
];
|
|
33
115
|
```
|
|
34
116
|
|
|
35
|
-
|
|
117
|
+
Then run ESLint with auto-fix:
|
|
118
|
+
|
|
119
|
+
```bash
|
|
120
|
+
eslint src/ --fix
|
|
121
|
+
```
|
|
122
|
+
|
|
123
|
+
<br />
|
|
124
|
+
|
|
125
|
+
## 📋 Enable All Rules
|
|
36
126
|
|
|
37
127
|
```javascript
|
|
38
128
|
rules: {
|
|
@@ -86,111 +176,133 @@ rules: {
|
|
|
86
176
|
}
|
|
87
177
|
```
|
|
88
178
|
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
|
100
|
-
|
|
101
|
-
| `
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
|
112
|
-
|
|
113
|
-
| `
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
|
118
|
-
|
|
119
|
-
| `
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
|
128
|
-
|
|
129
|
-
| `
|
|
130
|
-
| `
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
|
138
|
-
|
|
139
|
-
| `
|
|
140
|
-
| `
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
|
150
|
-
|
|
151
|
-
| `
|
|
152
|
-
| `
|
|
153
|
-
| `
|
|
154
|
-
| `
|
|
155
|
-
| `
|
|
156
|
-
| `
|
|
157
|
-
| `
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
|
169
|
-
|
|
170
|
-
| `
|
|
171
|
-
| `
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
| `
|
|
180
|
-
| `
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
179
|
+
<br />
|
|
180
|
+
|
|
181
|
+
## 📖 Rules Reference
|
|
182
|
+
|
|
183
|
+
> All rules are **auto-fixable** using `eslint --fix`
|
|
184
|
+
|
|
185
|
+
<br />
|
|
186
|
+
|
|
187
|
+
### 📥 Import/Export Rules
|
|
188
|
+
|
|
189
|
+
| Rule | Description |
|
|
190
|
+
|------|-------------|
|
|
191
|
+
| `absolute-imports-only` | Enforce absolute imports using `@/` alias instead of relative paths |
|
|
192
|
+
| `import-format` | Format imports: `import {` on same line, `} from` on same line, collapse 1-3 specifiers |
|
|
193
|
+
| `import-source-spacing` | Enforce no extra spaces inside import path quotes |
|
|
194
|
+
| `export-format` | Format exports: `export {` on same line, collapse 1-3 specifiers, multiline for 4+ |
|
|
195
|
+
| `module-index-exports` | Enforce proper exports in index files |
|
|
196
|
+
|
|
197
|
+
<br />
|
|
198
|
+
|
|
199
|
+
### ⚡ Function Rules
|
|
200
|
+
|
|
201
|
+
| Rule | Description |
|
|
202
|
+
|------|-------------|
|
|
203
|
+
| `arrow-function-block-body` | Enforce parentheses for arrow functions with multiline expressions |
|
|
204
|
+
| `arrow-function-simplify` | Simplify arrow functions returning simple JSX to single line |
|
|
205
|
+
| `arrow-function-simple-jsx` | Simplify arrow functions in JSX props with single statement block body |
|
|
206
|
+
| `function-call-spacing` | Enforce no space between function name and opening parenthesis |
|
|
207
|
+
| `function-naming-convention` | Enforce function naming conventions (camelCase) |
|
|
208
|
+
| `function-params-per-line` | Enforce function parameters on separate lines when more than 2 |
|
|
209
|
+
| `curried-arrow-same-line` | Enforce curried arrow function to start on same line as `=>` |
|
|
210
|
+
|
|
211
|
+
<br />
|
|
212
|
+
|
|
213
|
+
### 📦 Object Rules
|
|
214
|
+
|
|
215
|
+
| Rule | Description |
|
|
216
|
+
|------|-------------|
|
|
217
|
+
| `object-property-per-line` | Enforce each property on its own line when object has 2+ properties |
|
|
218
|
+
| `object-property-value-format` | Enforce property value on same line as colon with proper spacing |
|
|
219
|
+
| `object-property-value-brace` | Enforce opening brace on same line as colon for object property values |
|
|
220
|
+
| `no-empty-lines-in-objects` | Disallow empty lines inside objects |
|
|
221
|
+
| `string-property-spacing` | Enforce no extra spaces inside string property keys |
|
|
222
|
+
|
|
223
|
+
<br />
|
|
224
|
+
|
|
225
|
+
### 📚 Array Rules
|
|
226
|
+
|
|
227
|
+
| Rule | Description |
|
|
228
|
+
|------|-------------|
|
|
229
|
+
| `array-items-per-line` | Enforce array formatting: 3 or less items on one line, more than 3 each on new line |
|
|
230
|
+
| `array-objects-on-new-lines` | Enforce array of objects to have each object on a new line |
|
|
231
|
+
|
|
232
|
+
<br />
|
|
233
|
+
|
|
234
|
+
### ⚛️ JSX Rules
|
|
235
|
+
|
|
236
|
+
| Rule | Description |
|
|
237
|
+
|------|-------------|
|
|
238
|
+
| `jsx-children-on-new-line` | Enforce JSX children on separate lines from parent tags |
|
|
239
|
+
| `jsx-closing-bracket-spacing` | No space before `>` or `/>` in JSX tags |
|
|
240
|
+
| `jsx-element-child-new-line` | JSX children that are JSX elements must be on new lines |
|
|
241
|
+
| `jsx-logical-expression-simplify` | Simplify logical expressions in JSX when right side is single-line |
|
|
242
|
+
| `jsx-parentheses-position` | Enforce opening parenthesis position for JSX in arrow functions |
|
|
243
|
+
| `jsx-prop-naming-convention` | Enforce JSX prop naming conventions (camelCase) |
|
|
244
|
+
| `jsx-simple-element-one-line` | Simple JSX elements with only text/expression children on one line |
|
|
245
|
+
| `jsx-string-value-trim` | Disallow leading/trailing whitespace in JSX string values |
|
|
246
|
+
| `jsx-ternary-format` | Enforce consistent formatting for JSX ternary expressions |
|
|
247
|
+
| `no-empty-lines-in-jsx` | Disallow empty lines inside JSX elements |
|
|
248
|
+
|
|
249
|
+
<br />
|
|
250
|
+
|
|
251
|
+
### 📞 Call Expression Rules
|
|
252
|
+
|
|
253
|
+
| Rule | Description |
|
|
254
|
+
|------|-------------|
|
|
255
|
+
| `simple-call-single-line` | Simplify simple function calls with arrow function to single line |
|
|
256
|
+
| `single-argument-on-line` | Enforce single simple argument calls to be on one line |
|
|
257
|
+
| `multiple-arguments-per-line` | Enforce multiple arguments to each be on their own line |
|
|
258
|
+
| `multiline-argument-newline` | Enforce newlines for function calls with multiline arguments |
|
|
259
|
+
| `nested-call-closing-brackets` | Enforce nested function call closing brackets on same line |
|
|
260
|
+
| `no-empty-lines-in-function-calls` | Disallow empty lines in function calls |
|
|
261
|
+
| `opening-brackets-same-line` | Enforce opening brackets on same line for function calls |
|
|
262
|
+
|
|
263
|
+
<br />
|
|
264
|
+
|
|
265
|
+
### 🪝 React Hooks Rules
|
|
266
|
+
|
|
267
|
+
| Rule | Description |
|
|
268
|
+
|------|-------------|
|
|
269
|
+
| `hook-callback-format` | Enforce consistent formatting for React hooks (useEffect, useCallback, etc.) |
|
|
270
|
+
| `hook-deps-per-line` | Enforce each hook dependency on its own line when more than 2 dependencies |
|
|
271
|
+
|
|
272
|
+
<br />
|
|
273
|
+
|
|
274
|
+
### 🔀 Control Flow Rules
|
|
275
|
+
|
|
276
|
+
| Rule | Description |
|
|
277
|
+
|------|-------------|
|
|
278
|
+
| `if-statement-format` | Ensure if statement has proper formatting |
|
|
279
|
+
| `multiline-if-conditions` | Enforce multiline if conditions when there are more than 3 operands |
|
|
280
|
+
| `no-empty-lines-in-switch-cases` | Prevent empty lines at the beginning of switch case logic |
|
|
281
|
+
|
|
282
|
+
<br />
|
|
283
|
+
|
|
284
|
+
### 📐 Spacing & Formatting Rules
|
|
285
|
+
|
|
286
|
+
| Rule | Description |
|
|
287
|
+
|------|-------------|
|
|
288
|
+
| `assignment-value-same-line` | Enforce assignment value on same line as equals sign |
|
|
289
|
+
| `block-statement-newlines` | Enforce newlines after opening brace and before closing brace |
|
|
290
|
+
| `comment-spacing` | Enforce comment spacing and formatting |
|
|
291
|
+
| `member-expression-bracket-spacing` | Enforce no spaces inside brackets for member expressions |
|
|
292
|
+
| `no-empty-lines-in-function-params` | Disallow empty lines in function parameters |
|
|
293
|
+
| `variable-naming-convention` | Enforce variable naming conventions (camelCase) |
|
|
294
|
+
|
|
295
|
+
<br />
|
|
296
|
+
|
|
297
|
+
## 💡 Examples
|
|
298
|
+
|
|
299
|
+
### Import Formatting
|
|
188
300
|
|
|
189
301
|
```javascript
|
|
190
|
-
// Good - 3 or fewer specifiers on one line
|
|
302
|
+
// ✅ Good - 3 or fewer specifiers on one line
|
|
191
303
|
import { Box, Button, Grid } from "@mui/material";
|
|
192
304
|
|
|
193
|
-
// Good - 4+ specifiers on multiple lines
|
|
305
|
+
// ✅ Good - 4+ specifiers on multiple lines
|
|
194
306
|
import {
|
|
195
307
|
Box,
|
|
196
308
|
Button,
|
|
@@ -198,35 +310,39 @@ import {
|
|
|
198
310
|
Typography,
|
|
199
311
|
} from "@mui/material";
|
|
200
312
|
|
|
201
|
-
// Bad
|
|
313
|
+
// ❌ Bad
|
|
202
314
|
import {
|
|
203
315
|
Box, Button, Grid } from "@mui/material";
|
|
204
316
|
```
|
|
205
317
|
|
|
206
|
-
|
|
318
|
+
<br />
|
|
319
|
+
|
|
320
|
+
### Function Parameters
|
|
207
321
|
|
|
208
322
|
```javascript
|
|
209
|
-
// Good - 2 or fewer params on one line
|
|
323
|
+
// ✅ Good - 2 or fewer params on one line
|
|
210
324
|
const fn = (a, b) => {};
|
|
211
325
|
|
|
212
|
-
// Good - 3+ params on separate lines
|
|
326
|
+
// ✅ Good - 3+ params on separate lines
|
|
213
327
|
const fn = (
|
|
214
328
|
param1,
|
|
215
329
|
param2,
|
|
216
330
|
param3,
|
|
217
331
|
) => {};
|
|
218
332
|
|
|
219
|
-
// Bad
|
|
333
|
+
// ❌ Bad
|
|
220
334
|
const fn = (param1, param2, param3) => {};
|
|
221
335
|
```
|
|
222
336
|
|
|
223
|
-
|
|
337
|
+
<br />
|
|
338
|
+
|
|
339
|
+
### JSX Ternary
|
|
224
340
|
|
|
225
341
|
```javascript
|
|
226
|
-
// Good - Simple ternary on one line
|
|
342
|
+
// ✅ Good - Simple ternary on one line
|
|
227
343
|
{condition ? <Simple /> : <Other />}
|
|
228
344
|
|
|
229
|
-
// Good - Complex ternary with proper formatting
|
|
345
|
+
// ✅ Good - Complex ternary with proper formatting
|
|
230
346
|
{condition ? (
|
|
231
347
|
<Complex>
|
|
232
348
|
<Children />
|
|
@@ -237,7 +353,7 @@ const fn = (param1, param2, param3) => {};
|
|
|
237
353
|
</Alternative>
|
|
238
354
|
)}
|
|
239
355
|
|
|
240
|
-
// Bad - Empty lines inside ternary
|
|
356
|
+
// ❌ Bad - Empty lines inside ternary
|
|
241
357
|
{condition ? (
|
|
242
358
|
|
|
243
359
|
<Button />
|
|
@@ -249,10 +365,12 @@ const fn = (param1, param2, param3) => {};
|
|
|
249
365
|
)}
|
|
250
366
|
```
|
|
251
367
|
|
|
252
|
-
|
|
368
|
+
<br />
|
|
369
|
+
|
|
370
|
+
### React Hooks
|
|
253
371
|
|
|
254
372
|
```javascript
|
|
255
|
-
// Good
|
|
373
|
+
// ✅ Good
|
|
256
374
|
useEffect(
|
|
257
375
|
() => {
|
|
258
376
|
doSomething();
|
|
@@ -260,22 +378,24 @@ useEffect(
|
|
|
260
378
|
[dependency],
|
|
261
379
|
);
|
|
262
380
|
|
|
263
|
-
// Good - Simple callback
|
|
381
|
+
// ✅ Good - Simple callback
|
|
264
382
|
useEffect(() => doSomething(), []);
|
|
265
383
|
|
|
266
|
-
// Bad
|
|
384
|
+
// ❌ Bad
|
|
267
385
|
useEffect(() => {
|
|
268
386
|
doSomething();
|
|
269
387
|
}, [dependency]);
|
|
270
388
|
```
|
|
271
389
|
|
|
272
|
-
|
|
390
|
+
<br />
|
|
391
|
+
|
|
392
|
+
### Multiline Conditions
|
|
273
393
|
|
|
274
394
|
```javascript
|
|
275
|
-
// Good - 3 or fewer operands on one line
|
|
395
|
+
// ✅ Good - 3 or fewer operands on one line
|
|
276
396
|
if (a && b && c) {}
|
|
277
397
|
|
|
278
|
-
// Good - 4+ operands on multiple lines
|
|
398
|
+
// ✅ Good - 4+ operands on multiple lines
|
|
279
399
|
if (
|
|
280
400
|
condition1
|
|
281
401
|
&& condition2
|
|
@@ -283,41 +403,75 @@ if (
|
|
|
283
403
|
&& condition4
|
|
284
404
|
) {}
|
|
285
405
|
|
|
286
|
-
// Bad
|
|
406
|
+
// ❌ Bad
|
|
287
407
|
if (condition1 && condition2 && condition3 && condition4) {}
|
|
288
408
|
```
|
|
289
409
|
|
|
290
|
-
|
|
410
|
+
<br />
|
|
411
|
+
|
|
412
|
+
## 🔧 Auto-fixing
|
|
291
413
|
|
|
292
414
|
All rules support auto-fixing. Run ESLint with the `--fix` flag:
|
|
293
415
|
|
|
294
416
|
```bash
|
|
295
|
-
# Fix all files
|
|
296
|
-
|
|
417
|
+
# Fix all files in src directory
|
|
418
|
+
eslint src/ --fix
|
|
297
419
|
|
|
298
420
|
# Fix specific file
|
|
299
|
-
|
|
421
|
+
eslint src/components/MyComponent.jsx --fix
|
|
422
|
+
|
|
423
|
+
# Fix with specific extensions
|
|
424
|
+
eslint "src/**/*.{js,jsx,ts,tsx}" --fix
|
|
300
425
|
```
|
|
301
426
|
|
|
302
|
-
|
|
427
|
+
<br />
|
|
303
428
|
|
|
304
|
-
|
|
429
|
+
## 🚫 Disabling Rules
|
|
305
430
|
|
|
431
|
+
**Disable for a specific line:**
|
|
306
432
|
```javascript
|
|
307
433
|
// eslint-disable-next-line code-style/rule-name
|
|
308
434
|
const code = "violates rule";
|
|
309
435
|
```
|
|
310
436
|
|
|
311
|
-
|
|
312
|
-
|
|
437
|
+
**Disable for an entire file:**
|
|
313
438
|
```javascript
|
|
314
439
|
/* eslint-disable code-style/rule-name */
|
|
315
440
|
```
|
|
316
441
|
|
|
317
|
-
|
|
318
|
-
|
|
442
|
+
**Disable in configuration:**
|
|
319
443
|
```javascript
|
|
320
444
|
rules: {
|
|
321
445
|
"code-style/rule-name": "off",
|
|
322
446
|
}
|
|
323
447
|
```
|
|
448
|
+
|
|
449
|
+
<br />
|
|
450
|
+
|
|
451
|
+
## 🤝 Contributing
|
|
452
|
+
|
|
453
|
+
Contributions are welcome! Please feel free to submit a Pull Request.
|
|
454
|
+
|
|
455
|
+
1. Fork the repository
|
|
456
|
+
2. Create your feature branch (`git checkout -b feature/amazing-feature`)
|
|
457
|
+
3. Commit your changes (`git commit -m 'Add some amazing feature'`)
|
|
458
|
+
4. Push to the branch (`git push origin feature/amazing-feature`)
|
|
459
|
+
5. Open a Pull Request
|
|
460
|
+
|
|
461
|
+
<br />
|
|
462
|
+
|
|
463
|
+
## 📄 License
|
|
464
|
+
|
|
465
|
+
This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.
|
|
466
|
+
|
|
467
|
+
<br />
|
|
468
|
+
|
|
469
|
+
---
|
|
470
|
+
|
|
471
|
+
<div align="center">
|
|
472
|
+
|
|
473
|
+
Made with ❤️ by [Mohamed Elhawary](https://hawary.dev)
|
|
474
|
+
|
|
475
|
+
[](https://github.com/Mohamed-Elhawary)
|
|
476
|
+
|
|
477
|
+
</div>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-plugin-code-style",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.6",
|
|
4
4
|
"description": "A custom ESLint plugin for enforcing consistent code formatting and style rules in React/JSX projects",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -30,12 +30,12 @@
|
|
|
30
30
|
"license": "MIT",
|
|
31
31
|
"repository": {
|
|
32
32
|
"type": "git",
|
|
33
|
-
"url": ""
|
|
33
|
+
"url": "git+https://github.com/Mohamed-Elhawary/eslint-plugin-code-style.git"
|
|
34
34
|
},
|
|
35
35
|
"bugs": {
|
|
36
|
-
"url": ""
|
|
36
|
+
"url": "https://github.com/Mohamed-Elhawary/eslint-plugin-code-style/issues"
|
|
37
37
|
},
|
|
38
|
-
"homepage": "",
|
|
38
|
+
"homepage": "https://github.com/Mohamed-Elhawary/eslint-plugin-code-style#readme",
|
|
39
39
|
"peerDependencies": {
|
|
40
40
|
"eslint": ">=9.0.0"
|
|
41
41
|
},
|