Skip to content

Commit 7236237

Browse files
authored
chore: add eslint test script to package.json (#8979)
* chore: add eslint test script to package.json Add a new script "test:eslint" to run eslint on the src directory, improving code quality checks during development. * fix(nx): ensure test eslint depends on build for plugin workspace Added nx configuration to make test:eslint target depend on the build target of its dependencies, ensuring the eslint plugin workspace is built before running tests.
1 parent acd519c commit 7236237

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

examples/react/basic/package.json

+11-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
"scripts": {
66
"dev": "vite",
77
"build": "vite build",
8-
"preview": "vite preview"
8+
"preview": "vite preview",
9+
"test:eslint": "eslint ./src"
910
},
1011
"dependencies": {
1112
"@tanstack/query-sync-storage-persister": "^5.72.2",
@@ -22,5 +23,14 @@
2223
"@vitejs/plugin-react": "^4.3.4",
2324
"typescript": "5.8.2",
2425
"vite": "^6.2.4"
26+
},
27+
"nx": {
28+
"targets": {
29+
"test:eslint": {
30+
"dependsOn": [
31+
"^build"
32+
]
33+
}
34+
}
2535
}
2636
}

0 commit comments

Comments
 (0)