Skip to content

Commit

Permalink
Do not commit code that contains linting warnings
Browse files Browse the repository at this point in the history
Applying the option "--max-warnings 0" to eslint terminates eslint if the code contains a linting warning.
  • Loading branch information
gappc committed Apr 21, 2024
1 parent f81aef3 commit b886c33
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions databrowser/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
"dev": "vite",
"build": "vue-tsc --noEmit && vite build",
"serve": "vite preview",
"lint": "eslint --cache --ext .ts,.vue src",
"lint:fix": "eslint --cache --ext .ts,.vue --fix src",
"lint": "eslint --cache --max-warnings 0 --ext .ts,.vue src",
"lint:fix": "eslint --cache --max-warnings 0 --ext .ts,.vue --fix src",
"prepare": "cd .. && husky install"
},
"dependencies": {
Expand Down Expand Up @@ -61,4 +61,4 @@
"vite": "^5.0.11",
"vue-tsc": "^1.8.27"
}
}
}

0 comments on commit b886c33

Please sign in to comment.