@nicksp/eslint-config 1.5.2 → 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.
@@ -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
@@ -3951,6 +3961,11 @@ interface RuleOptions {
3951
3961
  * @see https://eslint-react.xyz/docs/rules/web-api-no-leaked-timeout
3952
3962
  */
3953
3963
  'react-web-api/no-leaked-timeout'?: Linter.RuleEntry<[]>;
3964
+ /**
3965
+ * Prevents dollar signs from being inserted as text nodes before expressions.
3966
+ * @see https://eslint-react.xyz/docs/rules/jsx-dollar
3967
+ */
3968
+ 'react-x/jsx-dollar'?: Linter.RuleEntry<[]>;
3954
3969
  /**
3955
3970
  * Enforces that the 'key' prop is placed before the spread prop in JSX elements.
3956
3971
  * @see https://eslint-react.xyz/docs/rules/jsx-key-before-spread
@@ -4089,6 +4104,7 @@ interface RuleOptions {
4089
4104
  /**
4090
4105
  * Disallow certain props on components.
4091
4106
  * @see https://eslint-react.xyz/docs/rules/no-forbidden-props
4107
+ * @deprecated
4092
4108
  */
4093
4109
  'react-x/no-forbidden-props'?: Linter.RuleEntry<ReactXNoForbiddenProps>;
4094
4110
  /**
@@ -4210,7 +4226,7 @@ interface RuleOptions {
4210
4226
  * Prevents using referential-type values as default props in object destructuring.
4211
4227
  * @see https://eslint-react.xyz/docs/rules/no-unstable-default-props
4212
4228
  */
4213
- 'react-x/no-unstable-default-props'?: Linter.RuleEntry<[]>;
4229
+ 'react-x/no-unstable-default-props'?: Linter.RuleEntry<ReactXNoUnstableDefaultProps>;
4214
4230
  /**
4215
4231
  * Warns unused class component methods and properties.
4216
4232
  * @see https://eslint-react.xyz/docs/rules/no-unused-class-component-members
@@ -5125,6 +5141,11 @@ interface RuleOptions {
5125
5141
  * @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-vi-mocked.md
5126
5142
  */
5127
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<[]>;
5128
5149
  /**
5129
5150
  * require setup and teardown to be within a hook
5130
5151
  * @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/require-hook.md
@@ -7623,6 +7644,7 @@ type JsdocCheckExamples = [] | [{
7623
7644
  }];
7624
7645
  // ----- jsdoc/check-indentation -----
7625
7646
  type JsdocCheckIndentation = [] | [{
7647
+ allowIndentedSections?: boolean;
7626
7648
  excludeTags?: string[];
7627
7649
  }];
7628
7650
  // ----- jsdoc/check-line-alignment -----
@@ -7969,6 +7991,14 @@ type JsdocRequireParamType = [] | [{
7969
7991
  defaultDestructuredRootType?: string;
7970
7992
  setDefaultDestructuredRootType?: boolean;
7971
7993
  }];
7994
+ // ----- jsdoc/require-rejects -----
7995
+ type JsdocRequireRejects = [] | [{
7996
+ contexts?: (string | {
7997
+ comment?: string;
7998
+ context?: string;
7999
+ })[];
8000
+ exemptedBy?: string[];
8001
+ }];
7972
8002
  // ----- jsdoc/require-returns -----
7973
8003
  type JsdocRequireReturns = [] | [{
7974
8004
  checkConstructors?: boolean;
@@ -8059,6 +8089,9 @@ type JsdocSortTags = [] | [{
8059
8089
  linesBetween?: number;
8060
8090
  reportIntraTagGroupSpacing?: boolean;
8061
8091
  reportTagGroupSpacing?: boolean;
8092
+ tagExceptions?: {
8093
+ [k: string]: number;
8094
+ };
8062
8095
  tagSequence?: {
8063
8096
  tags?: string[];
8064
8097
  }[];
@@ -11826,6 +11859,10 @@ type ReactXNoForbiddenProps = [] | [{
11826
11859
  prop: string;
11827
11860
  })[];
11828
11861
  }];
11862
+ // ----- react-x/no-unstable-default-props -----
11863
+ type ReactXNoUnstableDefaultProps = [] | [{
11864
+ safeDefaultProps?: string[];
11865
+ }];
11829
11866
  // ----- react-x/no-useless-fragment -----
11830
11867
  type ReactXNoUselessFragment = [] | [{
11831
11868
  allowExpressions?: boolean;
@@ -12081,7 +12118,7 @@ type TestNoFocusedTests = [] | [{
12081
12118
  }];
12082
12119
  // ----- test/no-hooks -----
12083
12120
  type TestNoHooks = [] | [{
12084
- allow?: unknown[];
12121
+ allow?: ("beforeAll" | "beforeEach" | "afterAll" | "afterEach")[];
12085
12122
  }];
12086
12123
  // ----- test/no-large-snapshots -----
12087
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.2",
4
+ "version": "1.5.4",
5
5
  "type": "module",
6
- "packageManager": "pnpm@10.20.0",
6
+ "packageManager": "pnpm@10.22.0",
7
7
  "author": {
8
8
  "name": "Nick Plekhanov",
9
9
  "url": "https://plekhanov.me/"
@@ -25,11 +25,11 @@
25
25
  "styleguide",
26
26
  "eslint-config"
27
27
  ],
28
- "main": "./dist/index.js",
28
+ "main": "./dist/index.mjs",
29
29
  "exports": {
30
- ".": "./dist/index.js"
30
+ ".": "./dist/index.mjs"
31
31
  },
32
- "types": "./dist/index.d.ts",
32
+ "types": "./dist/index.d.mts",
33
33
  "files": [
34
34
  "dist"
35
35
  ],
@@ -53,12 +53,12 @@
53
53
  "prepare": "simple-git-hooks"
54
54
  },
55
55
  "peerDependencies": {
56
- "@eslint-react/eslint-plugin": "^2.2.4",
57
- "@next/eslint-plugin-next": "^16.0.1",
58
- "@nicksp/prettier-config": "^1.0.1",
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
- "eslint": "^9.38.0",
61
- "eslint-plugin-astro": "^1.4.0",
60
+ "eslint": "^9.39.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",
@@ -97,17 +97,17 @@
97
97
  "@antfu/install-pkg": "^1.1.0",
98
98
  "@clack/prompts": "^0.11.0",
99
99
  "@eslint-community/eslint-plugin-eslint-comments": "^4.5.0",
100
- "@eslint/js": "^9.38.0",
101
- "@typescript-eslint/utils": "^8.46.2",
102
- "@vitest/eslint-plugin": "^1.4.0",
100
+ "@eslint/js": "^9.39.1",
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",
106
106
  "eslint-plugin-antfu": "^3.1.1",
107
107
  "eslint-plugin-de-morgan": "^2.0.0",
108
- "eslint-plugin-erasable-syntax-only": "^0.3.1",
108
+ "eslint-plugin-erasable-syntax-only": "^0.4.0",
109
109
  "eslint-plugin-import-lite": "^0.3.0",
110
- "eslint-plugin-jsdoc": "^61.1.11",
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",
@@ -117,25 +117,25 @@
117
117
  "eslint-plugin-unicorn": "^62.0.0",
118
118
  "eslint-plugin-unused-imports": "^4.3.0",
119
119
  "eslint-plugin-yml": "^1.19.0",
120
- "globals": "^16.4.0",
120
+ "globals": "^16.5.0",
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.46.2",
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.2.4",
129
+ "@eslint-react/eslint-plugin": "^2.3.5",
130
130
  "@eslint/config-inspector": "^1.3.0",
131
- "@next/eslint-plugin-next": "^16.0.1",
131
+ "@next/eslint-plugin-next": "^16.0.3",
132
132
  "@nicksp/eslint-config": "workspace:*",
133
- "@nicksp/prettier-config": "^1.0.1",
133
+ "@nicksp/prettier-config": "^1.1.0",
134
134
  "@types/eslint-plugin-jsx-a11y": "^6.10.1",
135
- "@types/node": "^24.9.2",
135
+ "@types/node": "^24.10.1",
136
136
  "astro-eslint-parser": "^1.2.2",
137
- "eslint": "^9.38.0",
138
- "eslint-plugin-astro": "^1.4.0",
137
+ "eslint": "^9.39.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.15.12",
149
+ "tsdown": "^0.16.5",
150
150
  "tsx": "^4.20.6",
151
151
  "typescript": "^5.9.3",
152
- "vitest": "^4.0.5"
152
+ "vitest": "^4.0.10"
153
153
  },
154
154
  "simple-git-hooks": {
155
155
  "pre-commit": "npx lint-staged"
File without changes