@jpp-toolkit/eslint-config 0.0.19 → 0.0.20
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": "@jpp-toolkit/eslint-config",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.20",
|
|
4
4
|
"description": "ESLint configurations for JS/TS projects.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"jpp",
|
|
@@ -34,6 +34,7 @@
|
|
|
34
34
|
"@eslint/compat": "2.0.0",
|
|
35
35
|
"@eslint/js": "9.39.2",
|
|
36
36
|
"@stylistic/eslint-plugin": "5.6.1",
|
|
37
|
+
"@types/eslint-plugin-jsx-a11y": "6.10.1",
|
|
37
38
|
"@vitest/eslint-plugin": "1.5.2",
|
|
38
39
|
"eslint-config-prettier": "10.1.8",
|
|
39
40
|
"eslint-import-resolver-typescript": "4.4.4",
|
|
@@ -49,7 +50,6 @@
|
|
|
49
50
|
"@jpp-toolkit/utils": "0.0.14"
|
|
50
51
|
},
|
|
51
52
|
"devDependencies": {
|
|
52
|
-
"@types/eslint-plugin-jsx-a11y": "6.10.1",
|
|
53
53
|
"eslint": "9.39.2"
|
|
54
54
|
},
|
|
55
55
|
"peerDependencies": {
|
|
@@ -141,7 +141,7 @@ export const eslintConfig = defineConfig({
|
|
|
141
141
|
* Require return statements to either always or never specify values.
|
|
142
142
|
* @see {@link https://eslint.org/docs/latest/rules/consistent-return}
|
|
143
143
|
*/
|
|
144
|
-
'consistent-return':
|
|
144
|
+
'consistent-return': 'off',
|
|
145
145
|
|
|
146
146
|
/**
|
|
147
147
|
* Enforce consistent naming when capturing the current execution context.
|
|
@@ -415,7 +415,7 @@ export const typescriptConfig = defineConfig([
|
|
|
415
415
|
'@typescript-eslint/prefer-enum-initializers': 'error',
|
|
416
416
|
|
|
417
417
|
/**
|
|
418
|
-
* Require private members to be marked as.
|
|
418
|
+
* Require private members to be marked as readonly if they're never modified outside of the constructor.
|
|
419
419
|
* @fixable
|
|
420
420
|
* @typeChecked
|
|
421
421
|
* @see {@link https://typescript-eslint.io/rules/prefer-readonly}
|
|
@@ -423,7 +423,7 @@ export const typescriptConfig = defineConfig([
|
|
|
423
423
|
'@typescript-eslint/prefer-readonly': 'error',
|
|
424
424
|
|
|
425
425
|
/**
|
|
426
|
-
* Require function parameters to be typed as.
|
|
426
|
+
* Require function parameters to be typed as readonly to prevent accidental mutation of inputs.
|
|
427
427
|
* @typeChecked
|
|
428
428
|
* @see {@link https://typescript-eslint.io/rules/prefer-readonly-parameter-types}
|
|
429
429
|
*/
|