Skip to content

Commit 811390a

Browse files
committed
Switch to shared linting config
1 parent cd2cf18 commit 811390a

23 files changed

+2200
-5311
lines changed

.eslintignore

Lines changed: 0 additions & 2 deletions
This file was deleted.

.eslintrc.cjs

Lines changed: 0 additions & 95 deletions
This file was deleted.

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33

44
/dist/
55

6-
*.log*
76
Thumbs.db
87
.DS_Store
8+
*.log
9+
*.tsbuildinfo

eslint.config.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
import { createConfig, detectOpts } from '@esrf/eslint-config';
2+
import { globalIgnores } from 'eslint/config';
3+
import { defineConfig } from 'vite';
4+
5+
const opts = detectOpts(import.meta.dirname);
6+
7+
const config = defineConfig([
8+
globalIgnores(['.pnpm-store/', 'dist/']),
9+
...createConfig(opts),
10+
]);
11+
12+
export default config;

package.json

Lines changed: 6 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@
1919
"start": "vite",
2020
"build": "vite build",
2121
"preview": "vite preview",
22-
"lint": "run-p lint:*",
23-
"lint:eslint": "eslint \"**/*.{ts,tsx}\" --max-warnings=0",
22+
"lint": "pnpm \"/^lint:/\"",
23+
"lint:eslint": "eslint --max-warnings=0",
2424
"lint:tsc": "tsc",
2525
"lint:prettier": "prettier --cache --check .",
2626
"analyze": "pnpm dlx source-map-explorer \"dist/assets/*.js\" --no-border-checks"
@@ -42,26 +42,15 @@
4242
"zustand": "5.0.3"
4343
},
4444
"devDependencies": {
45+
"@esrf/eslint-config": "1.0.4",
4546
"@types/node": "^22.13.10",
4647
"@types/react": "^18.3.19",
4748
"@types/react-dom": "^18.3.5",
4849
"@vitejs/plugin-react-swc": "3.8.1",
49-
"babel-preset-react-app": "10.0.1",
50-
"eslint": "8.56.0",
51-
"eslint-config-galex": "4.5.2",
52-
"npm-run-all": "4.1.5",
50+
"eslint": "9.23.0",
5351
"prettier": "3.5.3",
54-
"typescript": "5.0.4",
52+
"typescript": "5.8.2",
5553
"vite": "6.2.2",
56-
"vite-plugin-checker": "0.9.1",
57-
"vite-plugin-eslint": "1.8.1"
58-
},
59-
"pnpm": {
60-
"peerDependencyRules": {
61-
"allowedVersions": {
62-
"@phenomnomnominal/tsquery>typescript": "5.x",
63-
"eslint-plugin-etc>typescript": "5.x"
64-
}
65-
}
54+
"vite-plugin-checker": "0.9.1"
6655
}
6756
}

0 commit comments

Comments
 (0)