Skip to content

Commit

Permalink
feat(dx): add lint-staged
Browse files Browse the repository at this point in the history
  • Loading branch information
vinayakkulkarni committed Aug 19, 2021
1 parent 1ab21ef commit a5842b6
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# Auto detect text files and perform LF normalization
* text=auto
* text=auto
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -102,4 +102,7 @@ dist

# TernJS port file
.tern-port
.DS_Store
.DS_Store

# Static storybook
static/storybook
1 change: 0 additions & 1 deletion .husky/.gitignore

This file was deleted.

2 changes: 1 addition & 1 deletion .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npm run lint
npm run lint-staged
3 changes: 2 additions & 1 deletion lint-staged.config.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
module.exports = {
'*.{ts,js,vue}': 'npm run lint:js',
'*.{js,ts,vue}': 'npm run lint:js',
'*.{css,vue}': 'npm run lint:css',
};

0 comments on commit a5842b6

Please sign in to comment.