@jsse/eslint-config 0.1.11 → 0.1.12
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/cli.cjs +1 -1
- package/dist/cli.js +1 -1
- package/dist/index.cjs +18 -1
- package/dist/index.d.cts +24 -1
- package/dist/index.d.ts +24 -1
- package/dist/index.js +18 -1
- package/package.json +3 -3
package/dist/cli.cjs
CHANGED
package/dist/cli.js
CHANGED
package/dist/index.cjs
CHANGED
|
@@ -10148,6 +10148,11 @@ function typescriptRulesTypeAware() {
|
|
|
10148
10148
|
"@typescript-eslint/restrict-plus-operands": "error",
|
|
10149
10149
|
"@typescript-eslint/restrict-template-expressions": "error",
|
|
10150
10150
|
"@typescript-eslint/unbound-method": "error",
|
|
10151
|
+
"@typescript-eslint/no-redundant-type-constituents": "warn",
|
|
10152
|
+
"@typescript-eslint/require-array-sort-compare": [
|
|
10153
|
+
"error",
|
|
10154
|
+
{ ignoreStringArrays: true }
|
|
10155
|
+
],
|
|
10151
10156
|
"@typescript-eslint/naming-convention": [
|
|
10152
10157
|
"error",
|
|
10153
10158
|
{
|
|
@@ -10528,7 +10533,15 @@ function typescriptRulesTypeOblivious() {
|
|
|
10528
10533
|
"space-before-blocks": "off",
|
|
10529
10534
|
"@typescript-eslint/space-before-blocks": ["error", "always"],
|
|
10530
10535
|
"no-undef": "off",
|
|
10531
|
-
"no-duplicate-imports": "off"
|
|
10536
|
+
"no-duplicate-imports": "off",
|
|
10537
|
+
"@typescript-eslint/method-signature-style": "warn"
|
|
10538
|
+
/**
|
|
10539
|
+
* @todo
|
|
10540
|
+
*/
|
|
10541
|
+
// "@typescript-eslint/explicit-function-return-type": [
|
|
10542
|
+
// "warn",
|
|
10543
|
+
// { allowExpressions: true, allowTypedFunctionExpressions: true },
|
|
10544
|
+
// ],
|
|
10532
10545
|
};
|
|
10533
10546
|
}
|
|
10534
10547
|
function typescriptRules(props) {
|
|
@@ -10890,6 +10903,7 @@ function reactRules() {
|
|
|
10890
10903
|
"react/jsx-no-target-blank": [
|
|
10891
10904
|
"error",
|
|
10892
10905
|
{
|
|
10906
|
+
allowReferrer: true,
|
|
10893
10907
|
forms: true,
|
|
10894
10908
|
warnOnSpreadAttributes: true
|
|
10895
10909
|
}
|
|
@@ -10955,11 +10969,13 @@ function reactRules() {
|
|
|
10955
10969
|
"react/no-typos": "error",
|
|
10956
10970
|
"react/no-unescaped-entities": "error",
|
|
10957
10971
|
"react/no-unsafe": "error",
|
|
10972
|
+
"react/no-unstable-nested-components": "error",
|
|
10958
10973
|
// "react/no-unused-prop-types": "error",
|
|
10959
10974
|
"react/no-unused-state": "error",
|
|
10960
10975
|
"react/prefer-read-only-props": "error",
|
|
10961
10976
|
// "react/prop-types": "error",
|
|
10962
10977
|
"react/react-in-jsx-scope": "off",
|
|
10978
|
+
// not needed anymore!
|
|
10963
10979
|
"react/require-default-props": [
|
|
10964
10980
|
"error",
|
|
10965
10981
|
{
|
|
@@ -11609,6 +11625,7 @@ var vitest = async (options = {}) => {
|
|
|
11609
11625
|
"error",
|
|
11610
11626
|
{ fn: "test", withinDescribe: "test" }
|
|
11611
11627
|
],
|
|
11628
|
+
"vitest/no-duplicate-hooks": "error",
|
|
11612
11629
|
"vitest/no-identical-title": "error",
|
|
11613
11630
|
"vitest/prefer-hooks-in-order": "error",
|
|
11614
11631
|
"vitest/prefer-lowercase-title": "error",
|
package/dist/index.d.cts
CHANGED
|
@@ -9545,6 +9545,11 @@ interface PerfectionistRuleOptions {
|
|
|
9545
9545
|
* @see https://eslint-plugin-perfectionist.azat.io/rules/sort-interfaces
|
|
9546
9546
|
*/
|
|
9547
9547
|
"perfectionist/sort-interfaces"?: Linter.RuleEntry<PerfectionistSortInterfaces>;
|
|
9548
|
+
/**
|
|
9549
|
+
* enforce sorted intersection types
|
|
9550
|
+
* @see https://eslint-plugin-perfectionist.azat.io/rules/sort-intersection-types
|
|
9551
|
+
*/
|
|
9552
|
+
"perfectionist/sort-intersection-types"?: Linter.RuleEntry<PerfectionistSortIntersectionTypes>;
|
|
9548
9553
|
/**
|
|
9549
9554
|
* enforce sorted JSX props
|
|
9550
9555
|
* @see https://eslint-plugin-perfectionist.azat.io/rules/sort-jsx-props
|
|
@@ -9696,6 +9701,16 @@ type PerfectionistSortInterfaces =
|
|
|
9696
9701
|
"partition-by-new-line"?: boolean;
|
|
9697
9702
|
},
|
|
9698
9703
|
];
|
|
9704
|
+
// ----- perfectionist/sort-intersection-types -----
|
|
9705
|
+
type PerfectionistSortIntersectionTypes =
|
|
9706
|
+
| []
|
|
9707
|
+
| [
|
|
9708
|
+
{
|
|
9709
|
+
type?: "alphabetical" | "natural" | "line-length";
|
|
9710
|
+
order?: "asc" | "desc";
|
|
9711
|
+
"ignore-case"?: boolean;
|
|
9712
|
+
},
|
|
9713
|
+
];
|
|
9699
9714
|
// ----- perfectionist/sort-jsx-props -----
|
|
9700
9715
|
type PerfectionistSortJsxProps =
|
|
9701
9716
|
| []
|
|
@@ -13390,7 +13405,7 @@ interface VitestRuleOptions {
|
|
|
13390
13405
|
* disallow focused tests
|
|
13391
13406
|
* @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/no-focused-tests.md
|
|
13392
13407
|
*/
|
|
13393
|
-
"vitest/no-focused-tests"?: Linter.RuleEntry<
|
|
13408
|
+
"vitest/no-focused-tests"?: Linter.RuleEntry<VitestNoFocusedTests>;
|
|
13394
13409
|
/**
|
|
13395
13410
|
* disallow setup and teardown hooks
|
|
13396
13411
|
* @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/no-hooks.md
|
|
@@ -13629,6 +13644,14 @@ type VitestMaxNestedDescribe =
|
|
|
13629
13644
|
max?: number;
|
|
13630
13645
|
},
|
|
13631
13646
|
];
|
|
13647
|
+
// ----- vitest/no-focused-tests -----
|
|
13648
|
+
type VitestNoFocusedTests =
|
|
13649
|
+
| []
|
|
13650
|
+
| [
|
|
13651
|
+
{
|
|
13652
|
+
fixable?: boolean;
|
|
13653
|
+
},
|
|
13654
|
+
];
|
|
13632
13655
|
// ----- vitest/no-hooks -----
|
|
13633
13656
|
type VitestNoHooks =
|
|
13634
13657
|
| []
|
package/dist/index.d.ts
CHANGED
|
@@ -9545,6 +9545,11 @@ interface PerfectionistRuleOptions {
|
|
|
9545
9545
|
* @see https://eslint-plugin-perfectionist.azat.io/rules/sort-interfaces
|
|
9546
9546
|
*/
|
|
9547
9547
|
"perfectionist/sort-interfaces"?: Linter.RuleEntry<PerfectionistSortInterfaces>;
|
|
9548
|
+
/**
|
|
9549
|
+
* enforce sorted intersection types
|
|
9550
|
+
* @see https://eslint-plugin-perfectionist.azat.io/rules/sort-intersection-types
|
|
9551
|
+
*/
|
|
9552
|
+
"perfectionist/sort-intersection-types"?: Linter.RuleEntry<PerfectionistSortIntersectionTypes>;
|
|
9548
9553
|
/**
|
|
9549
9554
|
* enforce sorted JSX props
|
|
9550
9555
|
* @see https://eslint-plugin-perfectionist.azat.io/rules/sort-jsx-props
|
|
@@ -9696,6 +9701,16 @@ type PerfectionistSortInterfaces =
|
|
|
9696
9701
|
"partition-by-new-line"?: boolean;
|
|
9697
9702
|
},
|
|
9698
9703
|
];
|
|
9704
|
+
// ----- perfectionist/sort-intersection-types -----
|
|
9705
|
+
type PerfectionistSortIntersectionTypes =
|
|
9706
|
+
| []
|
|
9707
|
+
| [
|
|
9708
|
+
{
|
|
9709
|
+
type?: "alphabetical" | "natural" | "line-length";
|
|
9710
|
+
order?: "asc" | "desc";
|
|
9711
|
+
"ignore-case"?: boolean;
|
|
9712
|
+
},
|
|
9713
|
+
];
|
|
9699
9714
|
// ----- perfectionist/sort-jsx-props -----
|
|
9700
9715
|
type PerfectionistSortJsxProps =
|
|
9701
9716
|
| []
|
|
@@ -13390,7 +13405,7 @@ interface VitestRuleOptions {
|
|
|
13390
13405
|
* disallow focused tests
|
|
13391
13406
|
* @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/no-focused-tests.md
|
|
13392
13407
|
*/
|
|
13393
|
-
"vitest/no-focused-tests"?: Linter.RuleEntry<
|
|
13408
|
+
"vitest/no-focused-tests"?: Linter.RuleEntry<VitestNoFocusedTests>;
|
|
13394
13409
|
/**
|
|
13395
13410
|
* disallow setup and teardown hooks
|
|
13396
13411
|
* @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/no-hooks.md
|
|
@@ -13629,6 +13644,14 @@ type VitestMaxNestedDescribe =
|
|
|
13629
13644
|
max?: number;
|
|
13630
13645
|
},
|
|
13631
13646
|
];
|
|
13647
|
+
// ----- vitest/no-focused-tests -----
|
|
13648
|
+
type VitestNoFocusedTests =
|
|
13649
|
+
| []
|
|
13650
|
+
| [
|
|
13651
|
+
{
|
|
13652
|
+
fixable?: boolean;
|
|
13653
|
+
},
|
|
13654
|
+
];
|
|
13632
13655
|
// ----- vitest/no-hooks -----
|
|
13633
13656
|
type VitestNoHooks =
|
|
13634
13657
|
| []
|
package/dist/index.js
CHANGED
|
@@ -10081,6 +10081,11 @@ function typescriptRulesTypeAware() {
|
|
|
10081
10081
|
"@typescript-eslint/restrict-plus-operands": "error",
|
|
10082
10082
|
"@typescript-eslint/restrict-template-expressions": "error",
|
|
10083
10083
|
"@typescript-eslint/unbound-method": "error",
|
|
10084
|
+
"@typescript-eslint/no-redundant-type-constituents": "warn",
|
|
10085
|
+
"@typescript-eslint/require-array-sort-compare": [
|
|
10086
|
+
"error",
|
|
10087
|
+
{ ignoreStringArrays: true }
|
|
10088
|
+
],
|
|
10084
10089
|
"@typescript-eslint/naming-convention": [
|
|
10085
10090
|
"error",
|
|
10086
10091
|
{
|
|
@@ -10461,7 +10466,15 @@ function typescriptRulesTypeOblivious() {
|
|
|
10461
10466
|
"space-before-blocks": "off",
|
|
10462
10467
|
"@typescript-eslint/space-before-blocks": ["error", "always"],
|
|
10463
10468
|
"no-undef": "off",
|
|
10464
|
-
"no-duplicate-imports": "off"
|
|
10469
|
+
"no-duplicate-imports": "off",
|
|
10470
|
+
"@typescript-eslint/method-signature-style": "warn"
|
|
10471
|
+
/**
|
|
10472
|
+
* @todo
|
|
10473
|
+
*/
|
|
10474
|
+
// "@typescript-eslint/explicit-function-return-type": [
|
|
10475
|
+
// "warn",
|
|
10476
|
+
// { allowExpressions: true, allowTypedFunctionExpressions: true },
|
|
10477
|
+
// ],
|
|
10465
10478
|
};
|
|
10466
10479
|
}
|
|
10467
10480
|
function typescriptRules(props) {
|
|
@@ -10823,6 +10836,7 @@ function reactRules() {
|
|
|
10823
10836
|
"react/jsx-no-target-blank": [
|
|
10824
10837
|
"error",
|
|
10825
10838
|
{
|
|
10839
|
+
allowReferrer: true,
|
|
10826
10840
|
forms: true,
|
|
10827
10841
|
warnOnSpreadAttributes: true
|
|
10828
10842
|
}
|
|
@@ -10888,11 +10902,13 @@ function reactRules() {
|
|
|
10888
10902
|
"react/no-typos": "error",
|
|
10889
10903
|
"react/no-unescaped-entities": "error",
|
|
10890
10904
|
"react/no-unsafe": "error",
|
|
10905
|
+
"react/no-unstable-nested-components": "error",
|
|
10891
10906
|
// "react/no-unused-prop-types": "error",
|
|
10892
10907
|
"react/no-unused-state": "error",
|
|
10893
10908
|
"react/prefer-read-only-props": "error",
|
|
10894
10909
|
// "react/prop-types": "error",
|
|
10895
10910
|
"react/react-in-jsx-scope": "off",
|
|
10911
|
+
// not needed anymore!
|
|
10896
10912
|
"react/require-default-props": [
|
|
10897
10913
|
"error",
|
|
10898
10914
|
{
|
|
@@ -11542,6 +11558,7 @@ var vitest = async (options = {}) => {
|
|
|
11542
11558
|
"error",
|
|
11543
11559
|
{ fn: "test", withinDescribe: "test" }
|
|
11544
11560
|
],
|
|
11561
|
+
"vitest/no-duplicate-hooks": "error",
|
|
11545
11562
|
"vitest/no-identical-title": "error",
|
|
11546
11563
|
"vitest/prefer-hooks-in-order": "error",
|
|
11547
11564
|
"vitest/prefer-lowercase-title": "error",
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jsse/eslint-config",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.1.
|
|
4
|
+
"version": "0.1.12",
|
|
5
5
|
"packageManager": "pnpm@8.15.4",
|
|
6
6
|
"description": "jsse eslint config",
|
|
7
7
|
"author": "jessekrubin <jessekrubin@gmail.com> (https://github.com/jessekrubin/)",
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
},
|
|
62
62
|
"dependencies": {
|
|
63
63
|
"@eslint/js": "~8.57.0",
|
|
64
|
-
"@stylistic/eslint-plugin": "1.7.
|
|
64
|
+
"@stylistic/eslint-plugin": "1.7.2",
|
|
65
65
|
"@typescript-eslint/eslint-plugin": "^7.6.0",
|
|
66
66
|
"@typescript-eslint/parser": "^7.6.0",
|
|
67
67
|
"eslint-config-flat-gitignore": "^0.1.5",
|
|
@@ -82,7 +82,7 @@
|
|
|
82
82
|
"eslint-plugin-toml": "^0.11.0",
|
|
83
83
|
"eslint-plugin-unicorn": "^52.0.0",
|
|
84
84
|
"eslint-plugin-unused-imports": "^3.1.0",
|
|
85
|
-
"eslint-plugin-vitest": "0.5.
|
|
85
|
+
"eslint-plugin-vitest": "0.5.3",
|
|
86
86
|
"eslint-plugin-yml": "^1.14.0",
|
|
87
87
|
"jsonc-eslint-parser": "^2.4.0",
|
|
88
88
|
"toml-eslint-parser": "^0.9.3",
|