Skip to content

Commit

Permalink
fix: added commitlint, lint-staged, changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
kouts committed May 11, 2021
1 parent 8e90b05 commit 4cffba4
Show file tree
Hide file tree
Showing 7 changed files with 1,820 additions and 113 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ jobs:
node-version: 12.x
- name: Install dependencies
run: npx ci
- name: Install sematic-release extra plugins
run: npm install --save-dev @semantic-release/changelog @semantic-release/git
- name: Build
run: npm run build
- name: Lint
Expand Down
6 changes: 6 additions & 0 deletions commitlint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
module.exports = {
extends: ['@commitlint/config-conventional'],
rules: {
'body-max-line-length': () => [1, 'always', 200]
}
}
3 changes: 3 additions & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module.exports = {
preset: '@vue/cli-plugin-unit-jest'
}
3 changes: 3 additions & 0 deletions lint-staged.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module.exports = {
'*.{js,vue}': ['npm run lint-fix']
}
Loading

0 comments on commit 4cffba4

Please sign in to comment.