Skip to content

Commit

Permalink
fix: run prettier on ts files
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-akait committed Oct 22, 2019
1 parent e955b4b commit c322cfa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/tasks/package.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ module.exports = () => {
clean: 'del-cli dist',
commitlint: 'commitlint --from=master',
'lint:prettier':
'prettier "{**/*,*}.{js,json,md,yml,css}" --list-different',
'prettier "{**/*,*}.{js,json,md,yml,css,ts}" --list-different',
'lint:js': 'eslint --cache src test',
lint: 'npm-run-all -l -p "lint:**"',
prepare: 'npm run build',
Expand Down
2 changes: 1 addition & 1 deletion templates/lint-staged.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module.exports = {
'*.js': ['prettier --write', 'eslint --fix', 'git add'],
'*.{json,md,yml,css}': ['prettier --write', 'git add'],
'*.{json,md,yml,css,ts}': ['prettier --write', 'git add'],
};

0 comments on commit c322cfa

Please sign in to comment.