@nicksp/eslint-config 1.5.3 → 1.5.4
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/index.d.mts +34 -2
- package/package.json +17 -17
package/dist/index.d.mts
CHANGED
|
@@ -597,6 +597,11 @@ interface RuleOptions {
|
|
|
597
597
|
* @see https://typescript-eslint.io/rules/no-unused-expressions
|
|
598
598
|
*/
|
|
599
599
|
'@typescript-eslint/no-unused-expressions'?: Linter.RuleEntry<TypescriptEslintNoUnusedExpressions>;
|
|
600
|
+
/**
|
|
601
|
+
* Disallow unused private class members
|
|
602
|
+
* @see https://typescript-eslint.io/rules/no-unused-private-class-members
|
|
603
|
+
*/
|
|
604
|
+
'@typescript-eslint/no-unused-private-class-members'?: Linter.RuleEntry<[]>;
|
|
600
605
|
/**
|
|
601
606
|
* Disallow unused variables
|
|
602
607
|
* @see https://typescript-eslint.io/rules/no-unused-vars
|
|
@@ -1745,6 +1750,11 @@ interface RuleOptions {
|
|
|
1745
1750
|
* @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/require-property-type.md#repos-sticky-header
|
|
1746
1751
|
*/
|
|
1747
1752
|
'jsdoc/require-property-type'?: Linter.RuleEntry<[]>;
|
|
1753
|
+
/**
|
|
1754
|
+
* Requires that Promise rejections are documented with `@rejects` tags.
|
|
1755
|
+
* @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/require-rejects.md#repos-sticky-header
|
|
1756
|
+
*/
|
|
1757
|
+
'jsdoc/require-rejects'?: Linter.RuleEntry<JsdocRequireRejects>;
|
|
1748
1758
|
/**
|
|
1749
1759
|
* Requires that returns are documented with `@returns`.
|
|
1750
1760
|
* @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/require-returns.md#repos-sticky-header
|
|
@@ -4094,6 +4104,7 @@ interface RuleOptions {
|
|
|
4094
4104
|
/**
|
|
4095
4105
|
* Disallow certain props on components.
|
|
4096
4106
|
* @see https://eslint-react.xyz/docs/rules/no-forbidden-props
|
|
4107
|
+
* @deprecated
|
|
4097
4108
|
*/
|
|
4098
4109
|
'react-x/no-forbidden-props'?: Linter.RuleEntry<ReactXNoForbiddenProps>;
|
|
4099
4110
|
/**
|
|
@@ -4215,7 +4226,7 @@ interface RuleOptions {
|
|
|
4215
4226
|
* Prevents using referential-type values as default props in object destructuring.
|
|
4216
4227
|
* @see https://eslint-react.xyz/docs/rules/no-unstable-default-props
|
|
4217
4228
|
*/
|
|
4218
|
-
'react-x/no-unstable-default-props'?: Linter.RuleEntry<
|
|
4229
|
+
'react-x/no-unstable-default-props'?: Linter.RuleEntry<ReactXNoUnstableDefaultProps>;
|
|
4219
4230
|
/**
|
|
4220
4231
|
* Warns unused class component methods and properties.
|
|
4221
4232
|
* @see https://eslint-react.xyz/docs/rules/no-unused-class-component-members
|
|
@@ -5130,6 +5141,11 @@ interface RuleOptions {
|
|
|
5130
5141
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-vi-mocked.md
|
|
5131
5142
|
*/
|
|
5132
5143
|
'test/prefer-vi-mocked'?: Linter.RuleEntry<[]>;
|
|
5144
|
+
/**
|
|
5145
|
+
* ensure that every `expect.poll` call is awaited
|
|
5146
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/require-awaited-expect-poll.md
|
|
5147
|
+
*/
|
|
5148
|
+
'test/require-awaited-expect-poll'?: Linter.RuleEntry<[]>;
|
|
5133
5149
|
/**
|
|
5134
5150
|
* require setup and teardown to be within a hook
|
|
5135
5151
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/require-hook.md
|
|
@@ -7628,6 +7644,7 @@ type JsdocCheckExamples = [] | [{
|
|
|
7628
7644
|
}];
|
|
7629
7645
|
// ----- jsdoc/check-indentation -----
|
|
7630
7646
|
type JsdocCheckIndentation = [] | [{
|
|
7647
|
+
allowIndentedSections?: boolean;
|
|
7631
7648
|
excludeTags?: string[];
|
|
7632
7649
|
}];
|
|
7633
7650
|
// ----- jsdoc/check-line-alignment -----
|
|
@@ -7974,6 +7991,14 @@ type JsdocRequireParamType = [] | [{
|
|
|
7974
7991
|
defaultDestructuredRootType?: string;
|
|
7975
7992
|
setDefaultDestructuredRootType?: boolean;
|
|
7976
7993
|
}];
|
|
7994
|
+
// ----- jsdoc/require-rejects -----
|
|
7995
|
+
type JsdocRequireRejects = [] | [{
|
|
7996
|
+
contexts?: (string | {
|
|
7997
|
+
comment?: string;
|
|
7998
|
+
context?: string;
|
|
7999
|
+
})[];
|
|
8000
|
+
exemptedBy?: string[];
|
|
8001
|
+
}];
|
|
7977
8002
|
// ----- jsdoc/require-returns -----
|
|
7978
8003
|
type JsdocRequireReturns = [] | [{
|
|
7979
8004
|
checkConstructors?: boolean;
|
|
@@ -8064,6 +8089,9 @@ type JsdocSortTags = [] | [{
|
|
|
8064
8089
|
linesBetween?: number;
|
|
8065
8090
|
reportIntraTagGroupSpacing?: boolean;
|
|
8066
8091
|
reportTagGroupSpacing?: boolean;
|
|
8092
|
+
tagExceptions?: {
|
|
8093
|
+
[k: string]: number;
|
|
8094
|
+
};
|
|
8067
8095
|
tagSequence?: {
|
|
8068
8096
|
tags?: string[];
|
|
8069
8097
|
}[];
|
|
@@ -11831,6 +11859,10 @@ type ReactXNoForbiddenProps = [] | [{
|
|
|
11831
11859
|
prop: string;
|
|
11832
11860
|
})[];
|
|
11833
11861
|
}];
|
|
11862
|
+
// ----- react-x/no-unstable-default-props -----
|
|
11863
|
+
type ReactXNoUnstableDefaultProps = [] | [{
|
|
11864
|
+
safeDefaultProps?: string[];
|
|
11865
|
+
}];
|
|
11834
11866
|
// ----- react-x/no-useless-fragment -----
|
|
11835
11867
|
type ReactXNoUselessFragment = [] | [{
|
|
11836
11868
|
allowExpressions?: boolean;
|
|
@@ -12086,7 +12118,7 @@ type TestNoFocusedTests = [] | [{
|
|
|
12086
12118
|
}];
|
|
12087
12119
|
// ----- test/no-hooks -----
|
|
12088
12120
|
type TestNoHooks = [] | [{
|
|
12089
|
-
allow?:
|
|
12121
|
+
allow?: ("beforeAll" | "beforeEach" | "afterAll" | "afterEach")[];
|
|
12090
12122
|
}];
|
|
12091
12123
|
// ----- test/no-large-snapshots -----
|
|
12092
12124
|
type TestNoLargeSnapshots = [] | [{
|
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nicksp/eslint-config",
|
|
3
3
|
"description": "Nick's ESLint config",
|
|
4
|
-
"version": "1.5.
|
|
4
|
+
"version": "1.5.4",
|
|
5
5
|
"type": "module",
|
|
6
|
-
"packageManager": "pnpm@10.
|
|
6
|
+
"packageManager": "pnpm@10.22.0",
|
|
7
7
|
"author": {
|
|
8
8
|
"name": "Nick Plekhanov",
|
|
9
9
|
"url": "https://plekhanov.me/"
|
|
@@ -53,12 +53,12 @@
|
|
|
53
53
|
"prepare": "simple-git-hooks"
|
|
54
54
|
},
|
|
55
55
|
"peerDependencies": {
|
|
56
|
-
"@eslint-react/eslint-plugin": "^2.3.
|
|
57
|
-
"@next/eslint-plugin-next": "^16.0.
|
|
58
|
-
"@nicksp/prettier-config": "^1.0
|
|
56
|
+
"@eslint-react/eslint-plugin": "^2.3.5",
|
|
57
|
+
"@next/eslint-plugin-next": "^16.0.3",
|
|
58
|
+
"@nicksp/prettier-config": "^1.1.0",
|
|
59
59
|
"astro-eslint-parser": "^1.2.2",
|
|
60
60
|
"eslint": "^9.39.1",
|
|
61
|
-
"eslint-plugin-astro": "^1.
|
|
61
|
+
"eslint-plugin-astro": "^1.5.0",
|
|
62
62
|
"eslint-plugin-jsx-a11y": "^6.10.2",
|
|
63
63
|
"eslint-plugin-react-hooks": "^7.0.1",
|
|
64
64
|
"eslint-plugin-react-refresh": "^0.4.24",
|
|
@@ -98,8 +98,8 @@
|
|
|
98
98
|
"@clack/prompts": "^0.11.0",
|
|
99
99
|
"@eslint-community/eslint-plugin-eslint-comments": "^4.5.0",
|
|
100
100
|
"@eslint/js": "^9.39.1",
|
|
101
|
-
"@typescript-eslint/utils": "^8.
|
|
102
|
-
"@vitest/eslint-plugin": "^1.4.
|
|
101
|
+
"@typescript-eslint/utils": "^8.47.0",
|
|
102
|
+
"@vitest/eslint-plugin": "^1.4.3",
|
|
103
103
|
"eslint-config-flat-gitignore": "^2.1.0",
|
|
104
104
|
"eslint-config-prettier": "^10.1.8",
|
|
105
105
|
"eslint-flat-config-utils": "^2.1.4",
|
|
@@ -107,7 +107,7 @@
|
|
|
107
107
|
"eslint-plugin-de-morgan": "^2.0.0",
|
|
108
108
|
"eslint-plugin-erasable-syntax-only": "^0.4.0",
|
|
109
109
|
"eslint-plugin-import-lite": "^0.3.0",
|
|
110
|
-
"eslint-plugin-jsdoc": "^61.1
|
|
110
|
+
"eslint-plugin-jsdoc": "^61.2.1",
|
|
111
111
|
"eslint-plugin-jsonc": "^2.21.0",
|
|
112
112
|
"eslint-plugin-n": "^17.23.1",
|
|
113
113
|
"eslint-plugin-no-only-tests": "^3.3.0",
|
|
@@ -121,21 +121,21 @@
|
|
|
121
121
|
"jsonc-eslint-parser": "^2.4.1",
|
|
122
122
|
"local-pkg": "^1.1.2",
|
|
123
123
|
"prettier": "^3.6.2",
|
|
124
|
-
"typescript-eslint": "^8.
|
|
124
|
+
"typescript-eslint": "^8.47.0",
|
|
125
125
|
"yaml-eslint-parser": "^1.3.0"
|
|
126
126
|
},
|
|
127
127
|
"devDependencies": {
|
|
128
128
|
"@antfu/ni": "^27.0.1",
|
|
129
|
-
"@eslint-react/eslint-plugin": "^2.3.
|
|
129
|
+
"@eslint-react/eslint-plugin": "^2.3.5",
|
|
130
130
|
"@eslint/config-inspector": "^1.3.0",
|
|
131
|
-
"@next/eslint-plugin-next": "^16.0.
|
|
131
|
+
"@next/eslint-plugin-next": "^16.0.3",
|
|
132
132
|
"@nicksp/eslint-config": "workspace:*",
|
|
133
|
-
"@nicksp/prettier-config": "^1.0
|
|
133
|
+
"@nicksp/prettier-config": "^1.1.0",
|
|
134
134
|
"@types/eslint-plugin-jsx-a11y": "^6.10.1",
|
|
135
|
-
"@types/node": "^24.10.
|
|
135
|
+
"@types/node": "^24.10.1",
|
|
136
136
|
"astro-eslint-parser": "^1.2.2",
|
|
137
137
|
"eslint": "^9.39.1",
|
|
138
|
-
"eslint-plugin-astro": "^1.
|
|
138
|
+
"eslint-plugin-astro": "^1.5.0",
|
|
139
139
|
"eslint-plugin-jsx-a11y": "^6.10.2",
|
|
140
140
|
"eslint-plugin-react-hooks": "^7.0.1",
|
|
141
141
|
"eslint-plugin-react-refresh": "^0.4.24",
|
|
@@ -146,10 +146,10 @@
|
|
|
146
146
|
"prettier-plugin-astro": "^0.14.1",
|
|
147
147
|
"simple-git-hooks": "^2.13.1",
|
|
148
148
|
"tinyglobby": "^0.2.15",
|
|
149
|
-
"tsdown": "^0.16.
|
|
149
|
+
"tsdown": "^0.16.5",
|
|
150
150
|
"tsx": "^4.20.6",
|
|
151
151
|
"typescript": "^5.9.3",
|
|
152
|
-
"vitest": "^4.0.
|
|
152
|
+
"vitest": "^4.0.10"
|
|
153
153
|
},
|
|
154
154
|
"simple-git-hooks": {
|
|
155
155
|
"pre-commit": "npx lint-staged"
|