Skip to content

Commit 61628ea

Browse files
fix: Add extraFileExtensions (#107)
* fix: Add extraFileExtensions * Add types * Fix type import
1 parent df9dbda commit 61628ea

File tree

4 files changed

+23
-1
lines changed

4 files changed

+23
-1
lines changed

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
"exports": {
2020
"./eslint": {
2121
"import": {
22+
"types": "./src/eslint/index.d.ts",
2223
"default": "./src/eslint/index.js"
2324
}
2425
},
@@ -94,6 +95,7 @@
9495
"devDependencies": {
9596
"@arethetypeswrong/cli": "^0.15.3",
9697
"@types/current-git-branch": "^1.1.6",
98+
"@types/eslint": "^8.56.10",
9799
"@types/interpret": "^1.1.3",
98100
"@types/jsonfile": "^6.1.4",
99101
"@types/liftoff": "^4.0.3",

pnpm-lock.yaml

Lines changed: 16 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/eslint/index.d.ts

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 declare const rootConfig: Array<Linter.FlatConfig>

src/eslint/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import eslint from '@eslint/js'
66
// @ts-expect-error
77
import configPrettier from 'eslint-config-prettier'
88

9+
/** @type {import('eslint').Linter.FlatConfig[]} */
910
export const rootConfig = [
1011
{
1112
name: 'eslint/rules',
@@ -52,14 +53,14 @@ export const rootConfig = [
5253
},
5354
{
5455
name: 'tanstack/custom',
55-
ignores: ['**/build', '**/coverage', '**/dist', '**/snap'],
5656
languageOptions: {
5757
globals: {
5858
...globals.browser,
5959
},
6060
ecmaVersion: 2020,
6161
sourceType: 'module',
6262
parserOptions: {
63+
extraFileExtensions: ['.js', '.svelte', '.vue'],
6364
project: true,
6465
},
6566
},

0 commit comments

Comments
 (0)