update eslint rules

This commit is contained in:
XiaoDaiGua-Ray 2023-08-02 15:30:31 +08:00
parent 08f236dd0a
commit 74da406808
3 changed files with 6 additions and 4 deletions

View File

@ -14,3 +14,4 @@ visualizer.html
src/locales/lang src/locales/lang
.depcheckrc .depcheckrc
src/components/RayChart/theme src/components/RayChart/theme
*.md

View File

@ -34,6 +34,7 @@ module.exports = {
defineOptions: 'readonly', defineOptions: 'readonly',
}, },
rules: { rules: {
'linebreak-style': ['error', 'unix'],
'@typescript-eslint/no-explicit-any': [ '@typescript-eslint/no-explicit-any': [
'error', 'error',
{ {

View File

@ -5,11 +5,11 @@
"type": "module", "type": "module",
"scripts": { "scripts": {
"dev": "vite", "dev": "vite",
"build": "vue-tsc --noEmit && vite build --mode production", "build": "eslint src && vue-tsc --noEmit && vite build --mode production",
"preview": "vite preview", "preview": "vite preview",
"test": "vue-tsc --noEmit && vite build --mode test", "test": "eslint src && vue-tsc --noEmit && vite build --mode test",
"dev-build": "vue-tsc --noEmit && vite build --mode development", "dev-build": "eslint src && vue-tsc --noEmit && vite build --mode development",
"report": "vue-tsc --noEmit && vite build --mode report", "report": "eslint src && vue-tsc --noEmit && vite build --mode report",
"prepare": "husky install" "prepare": "husky install"
}, },
"lint-staged": { "lint-staged": {