@santi020k/eslint-config-santi020k 1.1.6 → 1.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/dist/cjs/index.cjs +54 -23
- package/dist/esm/index.mjs +54 -23
- package/package.json +1 -1
package/dist/cjs/index.cjs
CHANGED
|
@@ -41,7 +41,7 @@ const groups = [
|
|
|
41
41
|
// Style imports.
|
|
42
42
|
["^.+\\.?(css)$"]
|
|
43
43
|
];
|
|
44
|
-
const rules$
|
|
44
|
+
const rules$5 = {
|
|
45
45
|
"unused-imports/no-unused-imports": "warn",
|
|
46
46
|
"@stylistic/indent": ["warn", 2],
|
|
47
47
|
"@stylistic/quote-props": ["warn", "as-needed"],
|
|
@@ -62,17 +62,17 @@ const rules$3 = {
|
|
|
62
62
|
"@stylistic/member-delimiter-style": ["error", {
|
|
63
63
|
multiline: {
|
|
64
64
|
delimiter: "none",
|
|
65
|
-
requireLast:
|
|
65
|
+
requireLast: false
|
|
66
66
|
},
|
|
67
67
|
singleline: {
|
|
68
68
|
delimiter: "comma",
|
|
69
|
-
requireLast:
|
|
69
|
+
requireLast: false
|
|
70
70
|
},
|
|
71
71
|
overrides: {
|
|
72
72
|
interface: {
|
|
73
73
|
multiline: {
|
|
74
74
|
delimiter: "none",
|
|
75
|
-
requireLast:
|
|
75
|
+
requireLast: false
|
|
76
76
|
}
|
|
77
77
|
}
|
|
78
78
|
}
|
|
@@ -153,7 +153,8 @@ const rules$3 = {
|
|
|
153
153
|
"no-useless-constructor": "warn",
|
|
154
154
|
"no-new": "warn",
|
|
155
155
|
"prefer-regex-literals": "warn",
|
|
156
|
-
"@stylistic/multiline-comment-style": "off"
|
|
156
|
+
"@stylistic/multiline-comment-style": "off",
|
|
157
|
+
"space-before-function-paren": "off"
|
|
157
158
|
};
|
|
158
159
|
|
|
159
160
|
const languageOptions$1 = {
|
|
@@ -184,7 +185,7 @@ const jsConfig = [
|
|
|
184
185
|
rules: {
|
|
185
186
|
...configStandard.rules,
|
|
186
187
|
...pluginSonarJs.configs.recommended.rules,
|
|
187
|
-
"import/first":
|
|
188
|
+
"import/first": "off"
|
|
188
189
|
}
|
|
189
190
|
},
|
|
190
191
|
{
|
|
@@ -195,12 +196,12 @@ const jsConfig = [
|
|
|
195
196
|
name: "custom",
|
|
196
197
|
languageOptions: languageOptions$1,
|
|
197
198
|
files: ["**/*.{js,jsx,mjs,cjs}"],
|
|
198
|
-
rules: rules$
|
|
199
|
+
rules: rules$5
|
|
199
200
|
}
|
|
200
201
|
];
|
|
201
202
|
|
|
202
|
-
const rules$
|
|
203
|
-
...rules$
|
|
203
|
+
const rules$4 = {
|
|
204
|
+
...rules$5,
|
|
204
205
|
"react/react-in-jsx-scope": "off",
|
|
205
206
|
"react/jsx-max-depth": ["warn", { max: 7 }],
|
|
206
207
|
"react/prop-types": "off",
|
|
@@ -277,7 +278,7 @@ const reactConfig = [
|
|
|
277
278
|
...configStandard.rules,
|
|
278
279
|
...pluginSonarJs.configs.recommended.rules,
|
|
279
280
|
...pluginReactHooks.configs.recommended.rules,
|
|
280
|
-
...rules$
|
|
281
|
+
...rules$4
|
|
281
282
|
}
|
|
282
283
|
}
|
|
283
284
|
];
|
|
@@ -305,17 +306,19 @@ const astroConfig = [
|
|
|
305
306
|
"mdx/language-mapper": {}
|
|
306
307
|
},
|
|
307
308
|
rules: {
|
|
308
|
-
"max-len":
|
|
309
|
-
"react/react-in-jsx-scope":
|
|
309
|
+
"max-len": "off",
|
|
310
|
+
"react/react-in-jsx-scope": "off"
|
|
310
311
|
}
|
|
311
312
|
}
|
|
312
313
|
]
|
|
313
314
|
}))
|
|
314
315
|
];
|
|
315
316
|
|
|
316
|
-
const rules$
|
|
317
|
-
...rules$
|
|
318
|
-
"
|
|
317
|
+
const rules$3 = {
|
|
318
|
+
...rules$5,
|
|
319
|
+
semi: "off",
|
|
320
|
+
"no-unused-vars": "off",
|
|
321
|
+
"@typescript-eslint/indent": "off",
|
|
319
322
|
"@typescript-eslint/no-unused-vars": [
|
|
320
323
|
"warn",
|
|
321
324
|
{
|
|
@@ -337,8 +340,7 @@ const rules$1 = {
|
|
|
337
340
|
"@typescript-eslint/no-dynamic-delete": "warn",
|
|
338
341
|
"@typescript-eslint/no-useless-constructor": "warn",
|
|
339
342
|
"@typescript-eslint/prefer-for-of": "warn",
|
|
340
|
-
"@typescript-eslint/no-duplicate-enum-values": "warn"
|
|
341
|
-
semi: "off"
|
|
343
|
+
"@typescript-eslint/no-duplicate-enum-values": "warn"
|
|
342
344
|
};
|
|
343
345
|
|
|
344
346
|
const tsConfig = [
|
|
@@ -348,13 +350,22 @@ const tsConfig = [
|
|
|
348
350
|
{
|
|
349
351
|
name: "custom-ts",
|
|
350
352
|
files: ["**/*.{js,jsx,mjs,cjs,ts,tsx,mts,cts}"],
|
|
351
|
-
rules: rules$
|
|
353
|
+
rules: rules$3
|
|
352
354
|
}
|
|
353
355
|
];
|
|
354
356
|
|
|
357
|
+
const rules$2 = {
|
|
358
|
+
...rules$3,
|
|
359
|
+
...rules$4
|
|
360
|
+
};
|
|
361
|
+
|
|
355
362
|
const reactTsConfig = [
|
|
356
363
|
...reactConfig,
|
|
357
|
-
...tsConfig
|
|
364
|
+
...tsConfig,
|
|
365
|
+
{
|
|
366
|
+
name: "custom-react-ts",
|
|
367
|
+
rules: rules$2
|
|
368
|
+
}
|
|
358
369
|
];
|
|
359
370
|
|
|
360
371
|
const astroTsConfig = [
|
|
@@ -366,13 +377,14 @@ const astroTsConfig = [
|
|
|
366
377
|
parser: "astro-eslint-parser",
|
|
367
378
|
plugins: ["@typescript-eslint"],
|
|
368
379
|
rules: {
|
|
369
|
-
"@typescript-eslint/strict-boolean-expressions":
|
|
380
|
+
"@typescript-eslint/strict-boolean-expressions": "off"
|
|
370
381
|
}
|
|
371
382
|
}]
|
|
372
383
|
}))
|
|
373
384
|
];
|
|
374
385
|
|
|
375
|
-
const rules = {
|
|
386
|
+
const rules$1 = {
|
|
387
|
+
...rules$4,
|
|
376
388
|
"simple-import-sort/imports": [
|
|
377
389
|
"warn",
|
|
378
390
|
{
|
|
@@ -391,13 +403,32 @@ const nextConfig = [
|
|
|
391
403
|
...compat.fixupConfigRules(flatCompat.extends("plugin:@next/next/core-web-vitals")),
|
|
392
404
|
{
|
|
393
405
|
name: "custom-next",
|
|
394
|
-
rules
|
|
406
|
+
rules: rules$1
|
|
395
407
|
}
|
|
396
408
|
];
|
|
397
409
|
|
|
410
|
+
const rules = {
|
|
411
|
+
...rules$4,
|
|
412
|
+
"simple-import-sort/imports": [
|
|
413
|
+
"warn",
|
|
414
|
+
{
|
|
415
|
+
groups: [
|
|
416
|
+
// Packages `react` related packages come first.
|
|
417
|
+
["^react"],
|
|
418
|
+
["^next"],
|
|
419
|
+
...groups
|
|
420
|
+
]
|
|
421
|
+
}
|
|
422
|
+
]
|
|
423
|
+
};
|
|
424
|
+
|
|
398
425
|
const nextTsConfig = [
|
|
399
426
|
...reactTsConfig,
|
|
400
|
-
...nextConfig
|
|
427
|
+
...nextConfig,
|
|
428
|
+
{
|
|
429
|
+
name: "custom-next-ts",
|
|
430
|
+
rules
|
|
431
|
+
}
|
|
401
432
|
];
|
|
402
433
|
|
|
403
434
|
exports.astroEslint = astroConfig;
|
package/dist/esm/index.mjs
CHANGED
|
@@ -39,7 +39,7 @@ const groups = [
|
|
|
39
39
|
// Style imports.
|
|
40
40
|
["^.+\\.?(css)$"]
|
|
41
41
|
];
|
|
42
|
-
const rules$
|
|
42
|
+
const rules$5 = {
|
|
43
43
|
"unused-imports/no-unused-imports": "warn",
|
|
44
44
|
"@stylistic/indent": ["warn", 2],
|
|
45
45
|
"@stylistic/quote-props": ["warn", "as-needed"],
|
|
@@ -60,17 +60,17 @@ const rules$3 = {
|
|
|
60
60
|
"@stylistic/member-delimiter-style": ["error", {
|
|
61
61
|
multiline: {
|
|
62
62
|
delimiter: "none",
|
|
63
|
-
requireLast:
|
|
63
|
+
requireLast: false
|
|
64
64
|
},
|
|
65
65
|
singleline: {
|
|
66
66
|
delimiter: "comma",
|
|
67
|
-
requireLast:
|
|
67
|
+
requireLast: false
|
|
68
68
|
},
|
|
69
69
|
overrides: {
|
|
70
70
|
interface: {
|
|
71
71
|
multiline: {
|
|
72
72
|
delimiter: "none",
|
|
73
|
-
requireLast:
|
|
73
|
+
requireLast: false
|
|
74
74
|
}
|
|
75
75
|
}
|
|
76
76
|
}
|
|
@@ -151,7 +151,8 @@ const rules$3 = {
|
|
|
151
151
|
"no-useless-constructor": "warn",
|
|
152
152
|
"no-new": "warn",
|
|
153
153
|
"prefer-regex-literals": "warn",
|
|
154
|
-
"@stylistic/multiline-comment-style": "off"
|
|
154
|
+
"@stylistic/multiline-comment-style": "off",
|
|
155
|
+
"space-before-function-paren": "off"
|
|
155
156
|
};
|
|
156
157
|
|
|
157
158
|
const languageOptions$1 = {
|
|
@@ -182,7 +183,7 @@ const jsConfig = [
|
|
|
182
183
|
rules: {
|
|
183
184
|
...configStandard.rules,
|
|
184
185
|
...pluginSonarJs.configs.recommended.rules,
|
|
185
|
-
"import/first":
|
|
186
|
+
"import/first": "off"
|
|
186
187
|
}
|
|
187
188
|
},
|
|
188
189
|
{
|
|
@@ -193,12 +194,12 @@ const jsConfig = [
|
|
|
193
194
|
name: "custom",
|
|
194
195
|
languageOptions: languageOptions$1,
|
|
195
196
|
files: ["**/*.{js,jsx,mjs,cjs}"],
|
|
196
|
-
rules: rules$
|
|
197
|
+
rules: rules$5
|
|
197
198
|
}
|
|
198
199
|
];
|
|
199
200
|
|
|
200
|
-
const rules$
|
|
201
|
-
...rules$
|
|
201
|
+
const rules$4 = {
|
|
202
|
+
...rules$5,
|
|
202
203
|
"react/react-in-jsx-scope": "off",
|
|
203
204
|
"react/jsx-max-depth": ["warn", { max: 7 }],
|
|
204
205
|
"react/prop-types": "off",
|
|
@@ -275,7 +276,7 @@ const reactConfig = [
|
|
|
275
276
|
...configStandard.rules,
|
|
276
277
|
...pluginSonarJs.configs.recommended.rules,
|
|
277
278
|
...pluginReactHooks.configs.recommended.rules,
|
|
278
|
-
...rules$
|
|
279
|
+
...rules$4
|
|
279
280
|
}
|
|
280
281
|
}
|
|
281
282
|
];
|
|
@@ -303,17 +304,19 @@ const astroConfig = [
|
|
|
303
304
|
"mdx/language-mapper": {}
|
|
304
305
|
},
|
|
305
306
|
rules: {
|
|
306
|
-
"max-len":
|
|
307
|
-
"react/react-in-jsx-scope":
|
|
307
|
+
"max-len": "off",
|
|
308
|
+
"react/react-in-jsx-scope": "off"
|
|
308
309
|
}
|
|
309
310
|
}
|
|
310
311
|
]
|
|
311
312
|
}))
|
|
312
313
|
];
|
|
313
314
|
|
|
314
|
-
const rules$
|
|
315
|
-
...rules$
|
|
316
|
-
"
|
|
315
|
+
const rules$3 = {
|
|
316
|
+
...rules$5,
|
|
317
|
+
semi: "off",
|
|
318
|
+
"no-unused-vars": "off",
|
|
319
|
+
"@typescript-eslint/indent": "off",
|
|
317
320
|
"@typescript-eslint/no-unused-vars": [
|
|
318
321
|
"warn",
|
|
319
322
|
{
|
|
@@ -335,8 +338,7 @@ const rules$1 = {
|
|
|
335
338
|
"@typescript-eslint/no-dynamic-delete": "warn",
|
|
336
339
|
"@typescript-eslint/no-useless-constructor": "warn",
|
|
337
340
|
"@typescript-eslint/prefer-for-of": "warn",
|
|
338
|
-
"@typescript-eslint/no-duplicate-enum-values": "warn"
|
|
339
|
-
semi: "off"
|
|
341
|
+
"@typescript-eslint/no-duplicate-enum-values": "warn"
|
|
340
342
|
};
|
|
341
343
|
|
|
342
344
|
const tsConfig = [
|
|
@@ -346,13 +348,22 @@ const tsConfig = [
|
|
|
346
348
|
{
|
|
347
349
|
name: "custom-ts",
|
|
348
350
|
files: ["**/*.{js,jsx,mjs,cjs,ts,tsx,mts,cts}"],
|
|
349
|
-
rules: rules$
|
|
351
|
+
rules: rules$3
|
|
350
352
|
}
|
|
351
353
|
];
|
|
352
354
|
|
|
355
|
+
const rules$2 = {
|
|
356
|
+
...rules$3,
|
|
357
|
+
...rules$4
|
|
358
|
+
};
|
|
359
|
+
|
|
353
360
|
const reactTsConfig = [
|
|
354
361
|
...reactConfig,
|
|
355
|
-
...tsConfig
|
|
362
|
+
...tsConfig,
|
|
363
|
+
{
|
|
364
|
+
name: "custom-react-ts",
|
|
365
|
+
rules: rules$2
|
|
366
|
+
}
|
|
356
367
|
];
|
|
357
368
|
|
|
358
369
|
const astroTsConfig = [
|
|
@@ -364,13 +375,14 @@ const astroTsConfig = [
|
|
|
364
375
|
parser: "astro-eslint-parser",
|
|
365
376
|
plugins: ["@typescript-eslint"],
|
|
366
377
|
rules: {
|
|
367
|
-
"@typescript-eslint/strict-boolean-expressions":
|
|
378
|
+
"@typescript-eslint/strict-boolean-expressions": "off"
|
|
368
379
|
}
|
|
369
380
|
}]
|
|
370
381
|
}))
|
|
371
382
|
];
|
|
372
383
|
|
|
373
|
-
const rules = {
|
|
384
|
+
const rules$1 = {
|
|
385
|
+
...rules$4,
|
|
374
386
|
"simple-import-sort/imports": [
|
|
375
387
|
"warn",
|
|
376
388
|
{
|
|
@@ -389,13 +401,32 @@ const nextConfig = [
|
|
|
389
401
|
...fixupConfigRules(flatCompat.extends("plugin:@next/next/core-web-vitals")),
|
|
390
402
|
{
|
|
391
403
|
name: "custom-next",
|
|
392
|
-
rules
|
|
404
|
+
rules: rules$1
|
|
393
405
|
}
|
|
394
406
|
];
|
|
395
407
|
|
|
408
|
+
const rules = {
|
|
409
|
+
...rules$4,
|
|
410
|
+
"simple-import-sort/imports": [
|
|
411
|
+
"warn",
|
|
412
|
+
{
|
|
413
|
+
groups: [
|
|
414
|
+
// Packages `react` related packages come first.
|
|
415
|
+
["^react"],
|
|
416
|
+
["^next"],
|
|
417
|
+
...groups
|
|
418
|
+
]
|
|
419
|
+
}
|
|
420
|
+
]
|
|
421
|
+
};
|
|
422
|
+
|
|
396
423
|
const nextTsConfig = [
|
|
397
424
|
...reactTsConfig,
|
|
398
|
-
...nextConfig
|
|
425
|
+
...nextConfig,
|
|
426
|
+
{
|
|
427
|
+
name: "custom-next-ts",
|
|
428
|
+
rules
|
|
429
|
+
}
|
|
399
430
|
];
|
|
400
431
|
|
|
401
432
|
export { astroConfig as astroEslint, astroTsConfig as astroTsEslint, jsConfig as jsEslint, nextConfig as nextEslint, nextTsConfig as nextTsEslint, reactConfig as reactEslint, reactTsConfig as reactTsEslint, tsConfig as tsEslint };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@santi020k/eslint-config-santi020k",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.2.0",
|
|
4
4
|
"description": "A comprehensive ESLint configuration package for JavaScript, TypeScript, and React projects, including popular plugins and custom rules for consistent coding style.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/cjs/index.cjs",
|