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
.depcheckrc
src/components/RayChart/theme
*.md

View File

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

View File

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