Add Tanstack Router Eslint Plugin
This commit is contained in:
@@ -3,11 +3,13 @@ import eslint from '@eslint/js';
|
||||
import tseslint from 'typescript-eslint';
|
||||
import eslintPluginReact from "eslint-plugin-react";
|
||||
import eslintPluginReactHooks from "eslint-plugin-react-hooks";
|
||||
import pluginRouter from '@tanstack/eslint-plugin-router';
|
||||
|
||||
// noinspection JSCheckFunctionSignatures
|
||||
export default defineConfig([
|
||||
eslint.configs.recommended,
|
||||
...tseslint.configs.recommended,
|
||||
...pluginRouter.configs['flat/recommended'],
|
||||
{
|
||||
settings: {
|
||||
react: {
|
||||
@@ -22,4 +24,5 @@ export default defineConfig([
|
||||
eslintPluginReact.configs.flat.recommended,
|
||||
eslintPluginReact.configs.flat['jsx-runtime'],
|
||||
eslintPluginReactHooks.configs['recommended-latest'],
|
||||
|
||||
]);
|
||||
|
||||
@@ -17,6 +17,7 @@
|
||||
},
|
||||
"devDependencies": {
|
||||
"@eslint/js": "^9.23.0",
|
||||
"@tanstack/eslint-plugin-router": "^1.114.29",
|
||||
"@testing-library/dom": "^10.4.0",
|
||||
"@testing-library/react": "^16.2.0",
|
||||
"@types/react": "^19.0.8",
|
||||
|
||||
16
pnpm-lock.yaml
generated
16
pnpm-lock.yaml
generated
@@ -27,6 +27,9 @@ importers:
|
||||
'@eslint/js':
|
||||
specifier: ^9.23.0
|
||||
version: 9.23.0
|
||||
'@tanstack/eslint-plugin-router':
|
||||
specifier: ^1.114.29
|
||||
version: 1.114.29(eslint@9.23.0)(typescript@5.8.2)
|
||||
'@testing-library/dom':
|
||||
specifier: ^10.4.0
|
||||
version: 10.4.0
|
||||
@@ -540,6 +543,11 @@ packages:
|
||||
cpu: [x64]
|
||||
os: [win32]
|
||||
|
||||
'@tanstack/eslint-plugin-router@1.114.29':
|
||||
resolution: {integrity: sha512-eV1QY6TgNfl5O9NeV3vDY+lfT1KunmOivHAQd5MXqPyQd5wnw79LSdzf+8H6E4tjUFYhs6xttHTO+QSqJ8fzew==}
|
||||
peerDependencies:
|
||||
eslint: ^8.57.0 || ^9.0.0
|
||||
|
||||
'@tanstack/history@1.114.29':
|
||||
resolution: {integrity: sha512-OTRMhwidScQSA0xsc5OCtm3K/oAChe47jy1e4OY3VpXUnKrI7C8iwfQ9XDRdpdsRASH2xi6P5I0+7ksFBehaQQ==}
|
||||
engines: {node: '>=12'}
|
||||
@@ -2458,6 +2466,14 @@ snapshots:
|
||||
'@rollup/rollup-win32-x64-msvc@4.38.0':
|
||||
optional: true
|
||||
|
||||
'@tanstack/eslint-plugin-router@1.114.29(eslint@9.23.0)(typescript@5.8.2)':
|
||||
dependencies:
|
||||
'@typescript-eslint/utils': 8.28.0(eslint@9.23.0)(typescript@5.8.2)
|
||||
eslint: 9.23.0
|
||||
transitivePeerDependencies:
|
||||
- supports-color
|
||||
- typescript
|
||||
|
||||
'@tanstack/history@1.114.29': {}
|
||||
|
||||
'@tanstack/react-router-devtools@1.114.29(@tanstack/react-router@1.114.29(react-dom@19.1.0(react@19.1.0))(react@19.1.0))(@tanstack/router-core@1.114.29)(csstype@3.1.3)(react-dom@19.1.0(react@19.1.0))(react@19.1.0)(tiny-invariant@1.3.3)':
|
||||
|
||||
Reference in New Issue
Block a user