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.
Files changed (2) hide show
  1. package/README.md +291 -137
  2. 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
- A custom ESLint plugin for enforcing consistent code formatting and style rules in React/JSX projects.
5
+ [![npm version](https://img.shields.io/npm/v/eslint-plugin-code-style?style=for-the-badge&logo=npm&logoColor=white&color=cb3837)](https://www.npmjs.com/package/eslint-plugin-code-style)
6
+ [![npm downloads](https://img.shields.io/npm/dm/eslint-plugin-code-style?style=for-the-badge&logo=npm&logoColor=white&color=cb3837)](https://www.npmjs.com/package/eslint-plugin-code-style)
7
+ [![License](https://img.shields.io/npm/l/eslint-plugin-code-style?style=for-the-badge&color=blue)](https://github.com/Mohamed-Elhawary/eslint-plugin-code-style/blob/main/LICENSE)
8
+
9
+ [![ESLint](https://img.shields.io/badge/ESLint-%3E%3D9.0.0-4B32C3?style=for-the-badge&logo=eslint&logoColor=white)](https://eslint.org/)
10
+ [![Node.js](https://img.shields.io/badge/Node.js-%3E%3D24.0.0-339933?style=for-the-badge&logo=node.js&logoColor=white)](https://nodejs.org/)
11
+ [![React](https://img.shields.io/badge/React-JSX%20Support-61DAFB?style=for-the-badge&logo=react&logoColor=black)](https://react.dev/)
12
+
13
+ [![GitHub stars](https://img.shields.io/github/stars/Mohamed-Elhawary/eslint-plugin-code-style?style=for-the-badge&logo=github&color=yellow)](https://github.com/Mohamed-Elhawary/eslint-plugin-code-style/stargazers)
14
+ [![GitHub issues](https://img.shields.io/github/issues/Mohamed-Elhawary/eslint-plugin-code-style?style=for-the-badge&logo=github)](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
- ## Installation
71
+ <br />
72
+
73
+ ## 📦 Installation
6
74
 
7
75
  ```bash
76
+ # npm
8
77
  npm install eslint-plugin-code-style --save-dev
9
- # or
78
+
79
+ # pnpm
10
80
  pnpm add eslint-plugin-code-style -D
11
- # or
81
+
82
+ # yarn
12
83
  yarn add eslint-plugin-code-style -D
13
84
  ```
14
85
 
15
- ## Configuration
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
- ### ESLint Flat Config (eslint.config.js)
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
- "code-style/rule-name": "error",
29
- // ... other rules
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
- ### Enable All Rules
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
- ## Rules Reference
90
-
91
- All rules in this plugin are **auto-fixable** using `eslint --fix`.
92
-
93
- ### Import/Export Rules
94
-
95
- | Rule | Description | Example |
96
- |------|-------------|---------|
97
- | `absolute-imports-only` | Enforce absolute imports using `@/` alias instead of relative paths | `import { foo } from "@/utils"` not `"../../utils"` |
98
- | `import-format` | Format imports: `import {` on same line, `} from` on same line, collapse 1-3 specifiers to single line | See examples below |
99
- | `import-source-spacing` | Enforce no extra spaces inside import path quotes | `from "@/utils"` not `from " @/utils "` |
100
- | `export-format` | Format exports: `export {` on same line, collapse 1-3 specifiers, multiline for 4+ | Similar to import-format |
101
- | `module-index-exports` | Enforce proper exports in index files | `export { Foo } from "./foo"` |
102
-
103
- ### Function Rules
104
-
105
- | Rule | Description | Example |
106
- |------|-------------|---------|
107
- | `arrow-function-block-body` | Enforce parentheses for arrow functions with multiline expressions (preserves implicit return) | `() => (\n <Component />\n)` |
108
- | `arrow-function-simplify` | Simplify arrow functions returning simple JSX to single line | `() => <Simple />` |
109
- | `arrow-function-simple-jsx` | Simplify arrow functions in JSX props with single statement block body | `onClick={() => doSomething()}` |
110
- | `function-call-spacing` | Enforce no space between function name and opening parenthesis | `fn()` not `fn ()` |
111
- | `function-naming-convention` | Enforce function naming conventions (camelCase) | `const myFunction = () => {}` |
112
- | `function-params-per-line` | Enforce function parameters on separate lines when more than 2 | See examples below |
113
- | `curried-arrow-same-line` | Enforce curried arrow function to start on same line as `=>` | `=> () =>` not `=>\n() =>` |
114
-
115
- ### Object Rules
116
-
117
- | Rule | Description | Example |
118
- |------|-------------|---------|
119
- | `object-property-per-line` | Enforce each property on its own line when object has 2+ properties | `{\n a: 1,\n b: 2,\n}` |
120
- | `object-property-value-format` | Enforce property value on same line as colon with proper spacing | `key: value` |
121
- | `object-property-value-brace` | Enforce opening brace on same line as colon for object property values | `key: {` not `key:\n{` |
122
- | `no-empty-lines-in-objects` | Disallow empty lines inside objects | No blank lines between properties |
123
- | `string-property-spacing` | Enforce no extra spaces inside string property keys | `["key"]` not `[ "key" ]` |
124
-
125
- ### Array Rules
126
-
127
- | Rule | Description | Example |
128
- |------|-------------|---------|
129
- | `array-items-per-line` | Enforce array formatting: 3 or less items on one line, more than 3 each on new line | `[1, 2, 3]` or multiline for 4+ |
130
- | `array-objects-on-new-lines` | Enforce array of objects to have each object on a new line | `[\n { a: 1 },\n { b: 2 },\n]` |
131
-
132
- ### JSX Rules
133
-
134
- | Rule | Description | Example |
135
- |------|-------------|---------|
136
- | `jsx-children-on-new-line` | Enforce JSX children on separate lines from parent tags | `<Parent>\n child\n</Parent>` |
137
- | `jsx-closing-bracket-spacing` | No space before `>` or `/>` in JSX tags | `<Component />` not `<Component / >` |
138
- | `jsx-element-child-new-line` | JSX children that are JSX elements must be on new lines | Each child element on its own line |
139
- | `jsx-logical-expression-simplify` | Simplify logical expressions in JSX when right side is single-line | `{condition && <Simple />}` |
140
- | `jsx-parentheses-position` | Enforce opening parenthesis position for JSX in arrow functions | `=> (\n <JSX />` |
141
- | `jsx-prop-naming-convention` | Enforce JSX prop naming conventions | camelCase for props |
142
- | `jsx-simple-element-one-line` | Simple JSX elements with only text/expression children should be on one line | `<Text>Hello</Text>` |
143
- | `jsx-string-value-trim` | Disallow leading/trailing whitespace in JSX string values | `<Text>Hello</Text>` not `<Text> Hello </Text>` |
144
- | `jsx-ternary-format` | Enforce consistent formatting for JSX ternary expressions | See examples below |
145
- | `no-empty-lines-in-jsx` | Disallow empty lines inside JSX elements | No blank lines between JSX children |
146
-
147
- ### Call Expression Rules
148
-
149
- | Rule | Description | Example |
150
- |------|-------------|---------|
151
- | `simple-call-single-line` | Simplify simple function calls with arrow function to single line | `fn(() => value)` |
152
- | `single-argument-on-line` | Enforce single simple argument calls to be on one line | `fn(arg)` not `fn(\n arg\n)` |
153
- | `multiple-arguments-per-line` | Enforce multiple arguments to each be on their own line | `fn(\n arg1,\n arg2,\n)` |
154
- | `multiline-argument-newline` | Enforce newlines for function calls with multiline arguments | Proper formatting for complex calls |
155
- | `nested-call-closing-brackets` | Enforce nested function call closing brackets on same line | `}));` not `}\n)\n);` |
156
- | `no-empty-lines-in-function-calls` | Disallow empty lines in function calls | No blank lines between arguments |
157
- | `opening-brackets-same-line` | Enforce opening brackets on same line for function calls | `fn({` not `fn(\n{` |
158
-
159
- ### React Hooks Rules
160
-
161
- | Rule | Description | Example |
162
- |------|-------------|---------|
163
- | `hook-callback-format` | Enforce consistent formatting for React hooks (useEffect, useCallback, etc.) | See examples below |
164
- | `hook-deps-per-line` | Enforce each hook dependency on its own line when more than 2 dependencies | `[\n dep1,\n dep2,\n dep3,\n]` |
165
-
166
- ### Control Flow Rules
167
-
168
- | Rule | Description | Example |
169
- |------|-------------|---------|
170
- | `if-statement-format` | Ensure if statement has proper formatting | `if (...) {` |
171
- | `multiline-if-conditions` | Enforce multiline if conditions when there are more than 3 operands | See examples below |
172
- | `no-empty-lines-in-switch-cases` | Prevent empty lines at the beginning of switch case logic or between cases | Clean switch statements |
173
-
174
- ### Spacing & Formatting Rules
175
-
176
- | Rule | Description | Example |
177
- |------|-------------|---------|
178
- | `assignment-value-same-line` | Enforce assignment value on same line as equals sign | `const x = value` not `const x =\nvalue` |
179
- | `block-statement-newlines` | Enforce newlines after opening brace and before closing brace in blocks | `{\n code\n}` |
180
- | `comment-spacing` | Enforce comment spacing and formatting | Proper spacing around comments |
181
- | `member-expression-bracket-spacing` | Enforce no spaces inside brackets for member expressions | `obj[key]` not `obj[ key ]` |
182
- | `no-empty-lines-in-function-params` | Disallow empty lines in function parameters | No blank lines between params |
183
- | `variable-naming-convention` | Enforce variable naming conventions | camelCase for variables |
184
-
185
- ## Examples
186
-
187
- ### import-format
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
- ### function-params-per-line
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
- ### jsx-ternary-format
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
- ### hook-callback-format
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
- ### multiline-if-conditions
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
- ## Auto-fixing
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
- pnpm eslint src/ --fix
417
+ # Fix all files in src directory
418
+ eslint src/ --fix
297
419
 
298
420
  # Fix specific file
299
- pnpm eslint src/components/MyComponent.jsx --fix
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
- ## Disabling Rules
427
+ <br />
303
428
 
304
- To disable a rule for a specific line:
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
- To disable a rule for an entire file, add at the top:
312
-
437
+ **Disable for an entire file:**
313
438
  ```javascript
314
439
  /* eslint-disable code-style/rule-name */
315
440
  ```
316
441
 
317
- To disable in eslint.config.js:
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
+ [![GitHub](https://img.shields.io/badge/GitHub-Mohamed--Elhawary-181717?style=for-the-badge&logo=github)](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.4",
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
  },