eslint-config-setup 0.2.4 → 0.2.8
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/configs/0b23ff88.js +2 -3
- package/dist/configs/196d687e.js +2 -4
- package/dist/configs/2f6f3a82.js +0 -1
- package/dist/configs/4eb62e57.js +2 -3
- package/dist/configs/52762a42.js +2 -3
- package/dist/configs/532f50a4.js +0 -1
- package/dist/configs/5a302873.js +0 -1
- package/dist/configs/6bc0d588.js +2 -4
- package/dist/configs/91e82988.js +0 -1
- package/dist/configs/c2fecd3d.js +2 -3
- package/dist/configs/d537b683.js +2 -4
- package/dist/configs/db69ebb6.js +2 -4
- package/dist/index.d.ts +2 -2
- package/dist/modules.d.ts +2 -2
- package/dist/modules.js +2 -10
- package/dist/modules.js.map +1 -1
- package/dist/oxlint-configs/7ff0d87e.json +1 -1
- package/dist/oxlint-configs/85912bf0.json +1 -1
- package/dist/oxlint-configs/d46cb9b7.json +1 -1
- package/dist/oxlint-configs/ef643c60.json +1 -1
- package/dist/{types-3d-g2_B9.d.ts → types-L-A140ji.d.ts} +1 -1
- package/package.json +3 -3
package/dist/configs/0b23ff88.js
CHANGED
|
@@ -106,7 +106,7 @@ export default [
|
|
|
106
106
|
"allowExpressions": true,
|
|
107
107
|
"allowTypedFunctionExpressions": true,
|
|
108
108
|
"allowHigherOrderFunctions": true,
|
|
109
|
-
"
|
|
109
|
+
"allowIIFEs": true
|
|
110
110
|
}
|
|
111
111
|
],
|
|
112
112
|
"@typescript-eslint/explicit-member-accessibility": "error",
|
|
@@ -795,7 +795,7 @@ export default [
|
|
|
795
795
|
"sonarjs/max-union-size": [
|
|
796
796
|
"error",
|
|
797
797
|
{
|
|
798
|
-
"
|
|
798
|
+
"threshold": 5
|
|
799
799
|
}
|
|
800
800
|
],
|
|
801
801
|
"sonarjs/no-async-constructor": "error",
|
|
@@ -893,7 +893,6 @@ export default [
|
|
|
893
893
|
"unicorn/prefer-at": "error",
|
|
894
894
|
"unicorn/prefer-date-now": "error",
|
|
895
895
|
"unicorn/prefer-default-parameters": "error",
|
|
896
|
-
"unicorn/prefer-early-return": "error",
|
|
897
896
|
"unicorn/prefer-export-from": [
|
|
898
897
|
"error",
|
|
899
898
|
{
|
package/dist/configs/196d687e.js
CHANGED
|
@@ -120,7 +120,7 @@ export default [
|
|
|
120
120
|
"allowExpressions": true,
|
|
121
121
|
"allowTypedFunctionExpressions": true,
|
|
122
122
|
"allowHigherOrderFunctions": true,
|
|
123
|
-
"
|
|
123
|
+
"allowIIFEs": true
|
|
124
124
|
}
|
|
125
125
|
],
|
|
126
126
|
"@typescript-eslint/explicit-member-accessibility": "error",
|
|
@@ -743,7 +743,6 @@ export default [
|
|
|
743
743
|
"preserve-caught-error": "error",
|
|
744
744
|
"radix": "error",
|
|
745
745
|
"react-hooks/exhaustive-deps": "error",
|
|
746
|
-
"react-hooks/react-compiler": "error",
|
|
747
746
|
"react-hooks/rules-of-hooks": "error",
|
|
748
747
|
"react-refresh/only-export-components": [
|
|
749
748
|
"warn",
|
|
@@ -911,7 +910,7 @@ export default [
|
|
|
911
910
|
"sonarjs/max-union-size": [
|
|
912
911
|
"error",
|
|
913
912
|
{
|
|
914
|
-
"
|
|
913
|
+
"threshold": 5
|
|
915
914
|
}
|
|
916
915
|
],
|
|
917
916
|
"sonarjs/no-async-constructor": "error",
|
|
@@ -1009,7 +1008,6 @@ export default [
|
|
|
1009
1008
|
"unicorn/prefer-at": "error",
|
|
1010
1009
|
"unicorn/prefer-date-now": "error",
|
|
1011
1010
|
"unicorn/prefer-default-parameters": "error",
|
|
1012
|
-
"unicorn/prefer-early-return": "error",
|
|
1013
1011
|
"unicorn/prefer-export-from": [
|
|
1014
1012
|
"error",
|
|
1015
1013
|
{
|
package/dist/configs/2f6f3a82.js
CHANGED
|
@@ -497,7 +497,6 @@ export default [
|
|
|
497
497
|
"preserve-caught-error": "error",
|
|
498
498
|
"radix": "error",
|
|
499
499
|
"react-hooks/exhaustive-deps": "error",
|
|
500
|
-
"react-hooks/react-compiler": "error",
|
|
501
500
|
"react-hooks/rules-of-hooks": "error",
|
|
502
501
|
"react-refresh/only-export-components": [
|
|
503
502
|
"warn",
|
package/dist/configs/4eb62e57.js
CHANGED
|
@@ -108,7 +108,7 @@ export default [
|
|
|
108
108
|
"allowExpressions": true,
|
|
109
109
|
"allowTypedFunctionExpressions": true,
|
|
110
110
|
"allowHigherOrderFunctions": true,
|
|
111
|
-
"
|
|
111
|
+
"allowIIFEs": true
|
|
112
112
|
}
|
|
113
113
|
],
|
|
114
114
|
"@typescript-eslint/explicit-member-accessibility": "error",
|
|
@@ -823,7 +823,7 @@ export default [
|
|
|
823
823
|
"sonarjs/max-union-size": [
|
|
824
824
|
"error",
|
|
825
825
|
{
|
|
826
|
-
"
|
|
826
|
+
"threshold": 5
|
|
827
827
|
}
|
|
828
828
|
],
|
|
829
829
|
"sonarjs/no-async-constructor": "error",
|
|
@@ -921,7 +921,6 @@ export default [
|
|
|
921
921
|
"unicorn/prefer-at": "error",
|
|
922
922
|
"unicorn/prefer-date-now": "error",
|
|
923
923
|
"unicorn/prefer-default-parameters": "error",
|
|
924
|
-
"unicorn/prefer-early-return": "error",
|
|
925
924
|
"unicorn/prefer-export-from": [
|
|
926
925
|
"error",
|
|
927
926
|
{
|
package/dist/configs/52762a42.js
CHANGED
|
@@ -105,7 +105,7 @@ export default [
|
|
|
105
105
|
"allowExpressions": true,
|
|
106
106
|
"allowTypedFunctionExpressions": true,
|
|
107
107
|
"allowHigherOrderFunctions": true,
|
|
108
|
-
"
|
|
108
|
+
"allowIIFEs": true
|
|
109
109
|
}
|
|
110
110
|
],
|
|
111
111
|
"@typescript-eslint/explicit-member-accessibility": "error",
|
|
@@ -794,7 +794,7 @@ export default [
|
|
|
794
794
|
"sonarjs/max-union-size": [
|
|
795
795
|
"error",
|
|
796
796
|
{
|
|
797
|
-
"
|
|
797
|
+
"threshold": 5
|
|
798
798
|
}
|
|
799
799
|
],
|
|
800
800
|
"sonarjs/no-async-constructor": "error",
|
|
@@ -892,7 +892,6 @@ export default [
|
|
|
892
892
|
"unicorn/prefer-at": "error",
|
|
893
893
|
"unicorn/prefer-date-now": "error",
|
|
894
894
|
"unicorn/prefer-default-parameters": "error",
|
|
895
|
-
"unicorn/prefer-early-return": "error",
|
|
896
895
|
"unicorn/prefer-export-from": [
|
|
897
896
|
"error",
|
|
898
897
|
{
|
package/dist/configs/532f50a4.js
CHANGED
|
@@ -469,7 +469,6 @@ export default [
|
|
|
469
469
|
"preserve-caught-error": "error",
|
|
470
470
|
"radix": "error",
|
|
471
471
|
"react-hooks/exhaustive-deps": "error",
|
|
472
|
-
"react-hooks/react-compiler": "error",
|
|
473
472
|
"react-hooks/rules-of-hooks": "error",
|
|
474
473
|
"react-refresh/only-export-components": [
|
|
475
474
|
"warn",
|
package/dist/configs/5a302873.js
CHANGED
|
@@ -470,7 +470,6 @@ export default [
|
|
|
470
470
|
"preserve-caught-error": "error",
|
|
471
471
|
"radix": "error",
|
|
472
472
|
"react-hooks/exhaustive-deps": "error",
|
|
473
|
-
"react-hooks/react-compiler": "error",
|
|
474
473
|
"react-hooks/rules-of-hooks": "error",
|
|
475
474
|
"react-refresh/only-export-components": [
|
|
476
475
|
"warn",
|
package/dist/configs/6bc0d588.js
CHANGED
|
@@ -119,7 +119,7 @@ export default [
|
|
|
119
119
|
"allowExpressions": true,
|
|
120
120
|
"allowTypedFunctionExpressions": true,
|
|
121
121
|
"allowHigherOrderFunctions": true,
|
|
122
|
-
"
|
|
122
|
+
"allowIIFEs": true
|
|
123
123
|
}
|
|
124
124
|
],
|
|
125
125
|
"@typescript-eslint/explicit-member-accessibility": "error",
|
|
@@ -742,7 +742,6 @@ export default [
|
|
|
742
742
|
"preserve-caught-error": "error",
|
|
743
743
|
"radix": "error",
|
|
744
744
|
"react-hooks/exhaustive-deps": "error",
|
|
745
|
-
"react-hooks/react-compiler": "error",
|
|
746
745
|
"react-hooks/rules-of-hooks": "error",
|
|
747
746
|
"react-refresh/only-export-components": [
|
|
748
747
|
"warn",
|
|
@@ -910,7 +909,7 @@ export default [
|
|
|
910
909
|
"sonarjs/max-union-size": [
|
|
911
910
|
"error",
|
|
912
911
|
{
|
|
913
|
-
"
|
|
912
|
+
"threshold": 5
|
|
914
913
|
}
|
|
915
914
|
],
|
|
916
915
|
"sonarjs/no-async-constructor": "error",
|
|
@@ -1008,7 +1007,6 @@ export default [
|
|
|
1008
1007
|
"unicorn/prefer-at": "error",
|
|
1009
1008
|
"unicorn/prefer-date-now": "error",
|
|
1010
1009
|
"unicorn/prefer-default-parameters": "error",
|
|
1011
|
-
"unicorn/prefer-early-return": "error",
|
|
1012
1010
|
"unicorn/prefer-export-from": [
|
|
1013
1011
|
"error",
|
|
1014
1012
|
{
|
package/dist/configs/91e82988.js
CHANGED
|
@@ -496,7 +496,6 @@ export default [
|
|
|
496
496
|
"preserve-caught-error": "error",
|
|
497
497
|
"radix": "error",
|
|
498
498
|
"react-hooks/exhaustive-deps": "error",
|
|
499
|
-
"react-hooks/react-compiler": "error",
|
|
500
499
|
"react-hooks/rules-of-hooks": "error",
|
|
501
500
|
"react-refresh/only-export-components": [
|
|
502
501
|
"warn",
|
package/dist/configs/c2fecd3d.js
CHANGED
|
@@ -107,7 +107,7 @@ export default [
|
|
|
107
107
|
"allowExpressions": true,
|
|
108
108
|
"allowTypedFunctionExpressions": true,
|
|
109
109
|
"allowHigherOrderFunctions": true,
|
|
110
|
-
"
|
|
110
|
+
"allowIIFEs": true
|
|
111
111
|
}
|
|
112
112
|
],
|
|
113
113
|
"@typescript-eslint/explicit-member-accessibility": "error",
|
|
@@ -822,7 +822,7 @@ export default [
|
|
|
822
822
|
"sonarjs/max-union-size": [
|
|
823
823
|
"error",
|
|
824
824
|
{
|
|
825
|
-
"
|
|
825
|
+
"threshold": 5
|
|
826
826
|
}
|
|
827
827
|
],
|
|
828
828
|
"sonarjs/no-async-constructor": "error",
|
|
@@ -920,7 +920,6 @@ export default [
|
|
|
920
920
|
"unicorn/prefer-at": "error",
|
|
921
921
|
"unicorn/prefer-date-now": "error",
|
|
922
922
|
"unicorn/prefer-default-parameters": "error",
|
|
923
|
-
"unicorn/prefer-early-return": "error",
|
|
924
923
|
"unicorn/prefer-export-from": [
|
|
925
924
|
"error",
|
|
926
925
|
{
|
package/dist/configs/d537b683.js
CHANGED
|
@@ -118,7 +118,7 @@ export default [
|
|
|
118
118
|
"allowExpressions": true,
|
|
119
119
|
"allowTypedFunctionExpressions": true,
|
|
120
120
|
"allowHigherOrderFunctions": true,
|
|
121
|
-
"
|
|
121
|
+
"allowIIFEs": true
|
|
122
122
|
}
|
|
123
123
|
],
|
|
124
124
|
"@typescript-eslint/explicit-member-accessibility": "error",
|
|
@@ -767,7 +767,6 @@ export default [
|
|
|
767
767
|
"preserve-caught-error": "error",
|
|
768
768
|
"radix": "error",
|
|
769
769
|
"react-hooks/exhaustive-deps": "error",
|
|
770
|
-
"react-hooks/react-compiler": "error",
|
|
771
770
|
"react-hooks/rules-of-hooks": "error",
|
|
772
771
|
"react-refresh/only-export-components": [
|
|
773
772
|
"warn",
|
|
@@ -935,7 +934,7 @@ export default [
|
|
|
935
934
|
"sonarjs/max-union-size": [
|
|
936
935
|
"error",
|
|
937
936
|
{
|
|
938
|
-
"
|
|
937
|
+
"threshold": 5
|
|
939
938
|
}
|
|
940
939
|
],
|
|
941
940
|
"sonarjs/no-async-constructor": "error",
|
|
@@ -1033,7 +1032,6 @@ export default [
|
|
|
1033
1032
|
"unicorn/prefer-at": "error",
|
|
1034
1033
|
"unicorn/prefer-date-now": "error",
|
|
1035
1034
|
"unicorn/prefer-default-parameters": "error",
|
|
1036
|
-
"unicorn/prefer-early-return": "error",
|
|
1037
1035
|
"unicorn/prefer-export-from": [
|
|
1038
1036
|
"error",
|
|
1039
1037
|
{
|
package/dist/configs/db69ebb6.js
CHANGED
|
@@ -119,7 +119,7 @@ export default [
|
|
|
119
119
|
"allowExpressions": true,
|
|
120
120
|
"allowTypedFunctionExpressions": true,
|
|
121
121
|
"allowHigherOrderFunctions": true,
|
|
122
|
-
"
|
|
122
|
+
"allowIIFEs": true
|
|
123
123
|
}
|
|
124
124
|
],
|
|
125
125
|
"@typescript-eslint/explicit-member-accessibility": "error",
|
|
@@ -768,7 +768,6 @@ export default [
|
|
|
768
768
|
"preserve-caught-error": "error",
|
|
769
769
|
"radix": "error",
|
|
770
770
|
"react-hooks/exhaustive-deps": "error",
|
|
771
|
-
"react-hooks/react-compiler": "error",
|
|
772
771
|
"react-hooks/rules-of-hooks": "error",
|
|
773
772
|
"react-refresh/only-export-components": [
|
|
774
773
|
"warn",
|
|
@@ -936,7 +935,7 @@ export default [
|
|
|
936
935
|
"sonarjs/max-union-size": [
|
|
937
936
|
"error",
|
|
938
937
|
{
|
|
939
|
-
"
|
|
938
|
+
"threshold": 5
|
|
940
939
|
}
|
|
941
940
|
],
|
|
942
941
|
"sonarjs/no-async-constructor": "error",
|
|
@@ -1034,7 +1033,6 @@ export default [
|
|
|
1034
1033
|
"unicorn/prefer-at": "error",
|
|
1035
1034
|
"unicorn/prefer-date-now": "error",
|
|
1036
1035
|
"unicorn/prefer-default-parameters": "error",
|
|
1037
|
-
"unicorn/prefer-early-return": "error",
|
|
1038
1036
|
"unicorn/prefer-export-from": [
|
|
1039
1037
|
"error",
|
|
1040
1038
|
{
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { C as ConfigOptions, F as FlatConfigArray, O as OxlintConfigOptions, R as RuleSeverity, a as RuleOptions } from './types-
|
|
2
|
-
export { b as RuleScope } from './types-
|
|
1
|
+
import { C as ConfigOptions, F as FlatConfigArray, O as OxlintConfigOptions, R as RuleSeverity, a as RuleOptions } from './types-L-A140ji.js';
|
|
2
|
+
export { b as RuleScope } from './types-L-A140ji.js';
|
|
3
3
|
import 'eslint';
|
|
4
4
|
|
|
5
5
|
/**
|
package/dist/modules.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { F as FlatConfigArray, C as ConfigOptions } from './types-
|
|
1
|
+
import { F as FlatConfigArray, C as ConfigOptions } from './types-L-A140ji.js';
|
|
2
2
|
import 'eslint';
|
|
3
3
|
|
|
4
4
|
/**
|
|
@@ -11,7 +11,7 @@ import 'eslint';
|
|
|
11
11
|
*
|
|
12
12
|
* No plugin preset is used — all rules are hand-picked from existing plugins
|
|
13
13
|
* and tightened beyond their defaults for AI-generated code.
|
|
14
|
-
* @see ADR-
|
|
14
|
+
* @see ADR-0006: docs/adr/0006-ai-mode-as-dedicated-flag.md
|
|
15
15
|
*/
|
|
16
16
|
declare function aiConfig(): FlatConfigArray;
|
|
17
17
|
|
package/dist/modules.js
CHANGED
|
@@ -128,7 +128,7 @@ function aiConfig() {
|
|
|
128
128
|
allowExpressions: true,
|
|
129
129
|
allowTypedFunctionExpressions: true,
|
|
130
130
|
allowHigherOrderFunctions: true,
|
|
131
|
-
|
|
131
|
+
allowIIFEs: true
|
|
132
132
|
}
|
|
133
133
|
],
|
|
134
134
|
// Enforce consistent naming: camelCase for values, PascalCase for types,
|
|
@@ -294,9 +294,6 @@ function aiConfig() {
|
|
|
294
294
|
name: "eslint-config-setup/ai-unicorn",
|
|
295
295
|
rules: {
|
|
296
296
|
// ── D. Unicorn — modern, idiomatic patterns ───────────────────
|
|
297
|
-
// Prefer early return over deeply nested if/else — flattens logic
|
|
298
|
-
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-early-return.md
|
|
299
|
-
"unicorn/prefer-early-return": "error",
|
|
300
297
|
// Move functions to the smallest scope where they're used
|
|
301
298
|
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/consistent-function-scoping.md
|
|
302
299
|
"unicorn/consistent-function-scoping": "error",
|
|
@@ -392,7 +389,7 @@ function aiConfig() {
|
|
|
392
389
|
"sonarjs/no-nested-template-literals": "error",
|
|
393
390
|
// Limit union type size — too many members signals missing abstraction
|
|
394
391
|
// https://sonarsource.github.io/rspec/#/rspec/S4622/javascript
|
|
395
|
-
"sonarjs/max-union-size": ["error", {
|
|
392
|
+
"sonarjs/max-union-size": ["error", { threshold: 5 }],
|
|
396
393
|
// Prefer type predicates for type narrowing — safer than assertions
|
|
397
394
|
// https://sonarsource.github.io/rspec/#/rspec/S4322/javascript
|
|
398
395
|
"sonarjs/prefer-type-guard": "error",
|
|
@@ -1283,11 +1280,6 @@ function reactConfig() {
|
|
|
1283
1280
|
"warn",
|
|
1284
1281
|
{ allowConstantExport: true }
|
|
1285
1282
|
],
|
|
1286
|
-
// ── React Compiler (via react-hooks >= 7.0) ─────────────────────
|
|
1287
|
-
// Validates code is compatible with React Compiler's auto-memoization
|
|
1288
|
-
// Merged into react-hooks since React Compiler v1.0 (Oct 2025)
|
|
1289
|
-
// https://react.dev/learn/react-compiler
|
|
1290
|
-
"react-hooks/react-compiler": "error",
|
|
1291
1283
|
// ── JSX Accessibility (a11y) ──────────────────────────────────
|
|
1292
1284
|
// Require alt text on img, area, input[type="image"], object
|
|
1293
1285
|
// https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/blob/main/docs/rules/alt-text.md
|