@ncontiero/eslint-config 8.0.0-beta.8 → 8.0.0

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/README.md CHANGED
@@ -199,14 +199,14 @@ We provide some optional configs for specific use cases, that we don't include t
199
199
 
200
200
  #### TanStack Query
201
201
 
202
- To enable TanStack Query support, you need to have the package installed or explicitly enable it:
202
+ To enable TanStack Query support, you need to explicitly turn it on:
203
203
 
204
204
  ```js
205
205
  // eslint.config.js
206
206
  import { ncontiero } from "@ncontiero/eslint-config";
207
207
 
208
208
  export default ncontiero({
209
- reactQuery: true,
209
+ tanstackQuery: true,
210
210
  });
211
211
  ```
212
212
 
package/dist/index.d.mts CHANGED
@@ -16492,7 +16492,7 @@ type ConfigNames = 'ncontiero/gitignore' | 'ncontiero/ignores' | 'ncontiero/java
16492
16492
  //#region src/types.d.ts
16493
16493
  type Awaitable<T> = T | Promise<T>;
16494
16494
  interface Rules extends RuleOptions {}
16495
- interface FlatConfigItem extends Omit<Linter.Config, "plugins" | "rules"> {
16495
+ interface FlatConfigItem extends Omit<Linter.Config<Linter.RulesRecord & Rules>, "plugins"> {
16496
16496
  /**
16497
16497
  * An object containing a name-value mapping of plugin names to plugin objects.
16498
16498
  * When `files` is specified, these plugins are only available to the matching files.
@@ -16500,11 +16500,6 @@ interface FlatConfigItem extends Omit<Linter.Config, "plugins" | "rules"> {
16500
16500
  * @see [Using plugins in your configuration](https://eslint.org/docs/latest/user-guide/configuring/configuration-files-new#using-plugins-in-your-configuration)
16501
16501
  */
16502
16502
  plugins?: Record<string, any>;
16503
- /**
16504
- * An object containing the configured rules. When `files` or `ignores` are
16505
- * specified, these rule configurations are only available to the matching files.
16506
- */
16507
- rules?: Rules;
16508
16503
  }
16509
16504
  interface OptionsFiles {
16510
16505
  /**
package/package.json CHANGED
@@ -1,8 +1,7 @@
1
1
  {
2
2
  "name": "@ncontiero/eslint-config",
3
3
  "type": "module",
4
- "version": "8.0.0-beta.8",
5
- "packageManager": "pnpm@10.33.2",
4
+ "version": "8.0.0",
6
5
  "description": "Nicolas's ESLint config.",
7
6
  "author": {
8
7
  "name": "Nicolas Contiero",
@@ -28,19 +27,6 @@
28
27
  "publishConfig": {
29
28
  "access": "public"
30
29
  },
31
- "scripts": {
32
- "build": "pnpm typegen && tsdown",
33
- "dev": "pnpm dlx @eslint/config-inspector --config eslint-inspector.config.ts",
34
- "build:inspector": "pnpm build && pnpm dlx @eslint/config-inspector build --config eslint-inspector.config.ts",
35
- "typegen": "tsx scripts/typegen.ts",
36
- "test": "vitest",
37
- "lint": "eslint .",
38
- "lint:fix": "pnpm lint --fix",
39
- "typecheck": "tsc --noEmit",
40
- "check": "pnpm lint && pnpm typecheck",
41
- "release": "changeset publish",
42
- "prepare": "husky"
43
- },
44
30
  "peerDependencies": {
45
31
  "@tanstack/eslint-plugin-query": ">=5.50.0",
46
32
  "eslint": ">=9.20.0"
@@ -90,6 +76,7 @@
90
76
  "@changesets/cli": "^2.31.0",
91
77
  "@commitlint/cli": "^20.5.3",
92
78
  "@commitlint/config-conventional": "^20.5.3",
79
+ "@eslint/config-inspector": "^2.0.0",
93
80
  "@ncontiero/changelog-github": "^2.1.3",
94
81
  "@ncontiero/prettier-config": "^1.0.0",
95
82
  "@tanstack/eslint-plugin-query": "^5.100.9",
@@ -112,5 +99,17 @@
112
99
  "nano-staged": {
113
100
  "*": "pnpm lint:fix"
114
101
  },
115
- "prettier": "@ncontiero/prettier-config"
116
- }
102
+ "prettier": "@ncontiero/prettier-config",
103
+ "scripts": {
104
+ "build": "pnpm typegen && tsdown",
105
+ "dev": "eslint-config-inspector --config eslint-inspector.config.ts",
106
+ "build:inspector": "pnpm build && eslint-config-inspector build --config eslint-inspector.config.ts",
107
+ "typegen": "tsx scripts/typegen.ts",
108
+ "test": "vitest",
109
+ "lint": "eslint .",
110
+ "lint:fix": "pnpm lint --fix",
111
+ "typecheck": "tsc --noEmit",
112
+ "check": "pnpm lint && pnpm typecheck",
113
+ "release": "changeset publish"
114
+ }
115
+ }