Skip to content

Move to kcd-scripts #86

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 22 commits into from
Aug 18, 2019
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add vue linting files
  • Loading branch information
afontcu committed Aug 17, 2019
commit c5696c771d8eb2e93f7f8b9d93016bf36c7c9026
11 changes: 11 additions & 0 deletions lint-staged.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
const config = require('kcd-scripts/lint-staged')

module.exports = {
...config,
'*.vue': [
'kcd-scripts format',
'kcd-scripts lint',
'kcd-scripts test --findRelatedTests',
'git add'
]
}
11 changes: 4 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,18 +57,15 @@
"vue": "^2.6.10",
"vue-template-compiler": "^2.6.10"
},
"husky": {
"hooks": {
"pre-commit": "kcd-scripts pre-commit"
}
},
"lint-staged": {
"*.{js,vue}": [
"eslint --fix",
"kcd-scripts format",
"kcd-scripts lint",
"kcd-scripts test --findRelatedTests",
"git add"
],
"*.{md,html}": [
"prettier --write",
"kcd-scripts format",
"git add"
]
}
Expand Down
6 changes: 5 additions & 1 deletion tests/__tests__/components/Form.vue
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,12 @@ export default {
return !this.title || !this.review
}
},




methods: {
submit() {
submit () {
if (this.submitDisabled) return

this.$emit('submit', {
Expand Down