Update ESLint configuration to change Prettier rule from error to warning and change lint script to use eslint and prettier together

This commit is contained in:
angelplusultra
2025-12-17 09:53:03 -08:00
parent 7d19f66010
commit cee795bdb5
2 changed files with 5 additions and 3 deletions

View File

@@ -29,7 +29,7 @@ export default defineConfig([
},
rules: {
...configPrettier.rules,
"prettier/prettier": "error",
"prettier/prettier": "warn",
"react/react-in-jsx-scope": "off",
"react-hooks/exhaustive-deps": "off",
"no-extra-boolean-cast": "off",

View File

@@ -7,8 +7,10 @@
"start": "vite --open",
"dev": "cross-env NODE_ENV=development vite --debug --host=0.0.0.0",
"build": "vite build && node scripts/postbuild.js",
"lint": "yarn prettier --ignore-path ../.prettierignore --write ./src",
"lintv2": "eslint --fix",
"lint:check": "eslint ./src",
"lint:fix": "eslint ./src --fix",
"format": "prettier --write ./src",
"lint": "yarn lint:check && yarn format",
"preview": "vite preview"
},
"dependencies": {