project: add eslint
This commit is contained in:
@@ -7,5 +7,5 @@
|
|||||||
"git": true,
|
"git": true,
|
||||||
"version": 1,
|
"version": 1,
|
||||||
"framework": "react-cra",
|
"framework": "react-cra",
|
||||||
"chosenAddOns": ["start"]
|
"chosenAddOns": ["start", "eslint"]
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
node_modules/
|
node_modules/
|
||||||
package-lock.json
|
package-lock.json
|
||||||
pnpm-lock.yaml
|
pnpm-lock.yaml
|
||||||
src/types/schema.d.ts
|
src/routeTree.gen.ts
|
||||||
5
eslint.config.js
Normal file
5
eslint.config.js
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
// @ts-check
|
||||||
|
|
||||||
|
import { tanstackConfig } from '@tanstack/eslint-config';
|
||||||
|
|
||||||
|
export default [...tanstackConfig];
|
||||||
@@ -26,12 +26,14 @@
|
|||||||
"vite-tsconfig-paths": "^5.1.4"
|
"vite-tsconfig-paths": "^5.1.4"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
"@tanstack/eslint-config": "^0.3.2",
|
||||||
"@testing-library/dom": "^10.4.0",
|
"@testing-library/dom": "^10.4.0",
|
||||||
"@testing-library/react": "^16.2.0",
|
"@testing-library/react": "^16.2.0",
|
||||||
"@types/node": "^22.10.2",
|
"@types/node": "^22.10.2",
|
||||||
"@types/react": "^19.0.8",
|
"@types/react": "^19.0.8",
|
||||||
"@types/react-dom": "^19.0.3",
|
"@types/react-dom": "^19.0.3",
|
||||||
"@vitejs/plugin-react": "^4.3.4",
|
"@vitejs/plugin-react": "^4.3.4",
|
||||||
|
"eslint": "^9.36.0",
|
||||||
"jsdom": "^26.0.0",
|
"jsdom": "^26.0.0",
|
||||||
"prettier": "^3.6.2",
|
"prettier": "^3.6.2",
|
||||||
"typescript": "^5.7.2",
|
"typescript": "^5.7.2",
|
||||||
|
|||||||
1256
pnpm-lock.yaml
generated
1256
pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load Diff
@@ -1 +1,4 @@
|
|||||||
minimumReleaseAge: 4320 # 3 days
|
minimumReleaseAge: 4320
|
||||||
|
|
||||||
|
onlyBuiltDependencies:
|
||||||
|
- unrs-resolver
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
import { HeadContent, Scripts, createRootRoute } from '@tanstack/react-router';
|
import { HeadContent, Scripts, createRootRoute } from '@tanstack/react-router';
|
||||||
import { TanStackRouterDevtoolsPanel } from '@tanstack/react-router-devtools';
|
import { TanStackRouterDevtoolsPanel } from '@tanstack/react-router-devtools';
|
||||||
import { TanstackDevtools } from '@tanstack/react-devtools';
|
import { TanstackDevtools } from '@tanstack/react-devtools';
|
||||||
|
import * as React from 'react';
|
||||||
|
|
||||||
import Header from '../components/Header';
|
import Header from '../components/Header';
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"include": ["**/*.ts", "**/*.tsx"],
|
"include": ["**/*.ts", "**/*.tsx", "eslint.config.js", "prettier.config.js"],
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
"target": "ES2022",
|
"target": "ES2022",
|
||||||
"jsx": "react-jsx",
|
"jsx": "react-jsx",
|
||||||
|
|||||||
Reference in New Issue
Block a user