diff --git a/.changeset/neat-flies-cut.md b/.changeset/neat-flies-cut.md new file mode 100644 index 0000000..594d505 --- /dev/null +++ b/.changeset/neat-flies-cut.md @@ -0,0 +1,5 @@ +--- +'@tanstack/eslint-config': patch +--- + +fix: add types diff --git a/packages/eslint-config/package.json b/packages/eslint-config/package.json index b1d4cf8..b7b94ac 100644 --- a/packages/eslint-config/package.json +++ b/packages/eslint-config/package.json @@ -23,6 +23,7 @@ "exports": { ".": { "import": { + "types": "./src/index.d.ts", "default": "./src/index.js" } }, diff --git a/packages/eslint-config/src/index.d.ts b/packages/eslint-config/src/index.d.ts new file mode 100644 index 0000000..a76552d --- /dev/null +++ b/packages/eslint-config/src/index.d.ts @@ -0,0 +1,3 @@ +import type { Linter } from 'eslint' + +export const tanstackConfig: Array diff --git a/packages/eslint-config/src/index.js b/packages/eslint-config/src/index.js index 3c95f0a..a0f2c78 100644 --- a/packages/eslint-config/src/index.js +++ b/packages/eslint-config/src/index.js @@ -35,7 +35,7 @@ const jsPlugins = { node: nodePlugin, } -/** @type {import('eslint').Linter.Config[]} */ +/** @type {Array} */ export const tanstackConfig = [ { name: 'tanstack/ignores',