Skip to content

Commit 8fa3822

Browse files
fix(eslint): add types (#313)
* fix(eslint): add types * Add changeset * ci: apply automated fixes * Fix export name --------- Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
1 parent aa5872c commit 8fa3822

File tree

4 files changed

+10
-1
lines changed

4 files changed

+10
-1
lines changed

.changeset/neat-flies-cut.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@tanstack/eslint-config': patch
3+
---
4+
5+
fix: add types

packages/eslint-config/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
"exports": {
2424
".": {
2525
"import": {
26+
"types": "./src/index.d.ts",
2627
"default": "./src/index.js"
2728
}
2829
},
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
import type { Linter } from 'eslint'
2+
3+
export const tanstackConfig: Array<Linter.Config>

packages/eslint-config/src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ const jsPlugins = {
3535
node: nodePlugin,
3636
}
3737

38-
/** @type {import('eslint').Linter.Config[]} */
38+
/** @type {Array<import('eslint').Linter.Config>} */
3939
export const tanstackConfig = [
4040
{
4141
name: 'tanstack/ignores',

0 commit comments

Comments
 (0)