mirror of
https://github.com/Mintplex-Labs/anything-llm
synced 2026-04-25 17:15:37 +02:00
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:
@@ -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",
|
||||
|
||||
@@ -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": {
|
||||
|
||||
Reference in New Issue
Block a user