project: add eslint

This commit is contained in:
2025-09-25 15:11:14 +02:00
parent 7950e6761c
commit 08c93cdbc8
8 changed files with 1271 additions and 4 deletions

View File

@@ -7,5 +7,5 @@
"git": true,
"version": 1,
"framework": "react-cra",
"chosenAddOns": ["start"]
"chosenAddOns": ["start", "eslint"]
}

View File

@@ -1,4 +1,4 @@
node_modules/
package-lock.json
pnpm-lock.yaml
src/types/schema.d.ts
src/routeTree.gen.ts

5
eslint.config.js Normal file
View File

@@ -0,0 +1,5 @@
// @ts-check
import { tanstackConfig } from '@tanstack/eslint-config';
export default [...tanstackConfig];

View File

@@ -26,12 +26,14 @@
"vite-tsconfig-paths": "^5.1.4"
},
"devDependencies": {
"@tanstack/eslint-config": "^0.3.2",
"@testing-library/dom": "^10.4.0",
"@testing-library/react": "^16.2.0",
"@types/node": "^22.10.2",
"@types/react": "^19.0.8",
"@types/react-dom": "^19.0.3",
"@vitejs/plugin-react": "^4.3.4",
"eslint": "^9.36.0",
"jsdom": "^26.0.0",
"prettier": "^3.6.2",
"typescript": "^5.7.2",

1256
pnpm-lock.yaml generated

File diff suppressed because it is too large Load Diff

View File

@@ -1 +1,4 @@
minimumReleaseAge: 4320 # 3 days
minimumReleaseAge: 4320
onlyBuiltDependencies:
- unrs-resolver

View File

@@ -1,6 +1,7 @@
import { HeadContent, Scripts, createRootRoute } from '@tanstack/react-router';
import { TanStackRouterDevtoolsPanel } from '@tanstack/react-router-devtools';
import { TanstackDevtools } from '@tanstack/react-devtools';
import * as React from 'react';
import Header from '../components/Header';

View File

@@ -1,5 +1,5 @@
{
"include": ["**/*.ts", "**/*.tsx"],
"include": ["**/*.ts", "**/*.tsx", "eslint.config.js", "prettier.config.js"],
"compilerOptions": {
"target": "ES2022",
"jsx": "react-jsx",