Skip to content

Commit

Permalink
feat: add lint-staged (#5454)
Browse files Browse the repository at this point in the history
  • Loading branch information
bmuenzenmeyer authored Jun 30, 2023
1 parent 5a6e476 commit 54c1e9e
Show file tree
Hide file tree
Showing 4 changed files with 409 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,6 @@ echo "{\"pagination\": [],\"categories\": [],\"posts\": []}" > $DIR/../public/bl
# adds these changes to be part of the current commit
git add --sparse $DIR/../public/node-releases-data.json
git add --sparse $DIR/../public/blog-posts-data.json

# lint and format staged files
npx lint-staged
3 changes: 3 additions & 0 deletions .lintstagedrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"**/*": "npm run format"
}
Loading

2 comments on commit 54c1e9e

@vercel
Copy link

@vercel vercel bot commented on 54c1e9e Jun 30, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

nodejs-org-stories – ./

nodejs-org-stories-openjs.vercel.app
nodejs-org-stories-git-main-openjs.vercel.app
nodejs-org-storybook.vercel.app

@vercel
Copy link

@vercel vercel bot commented on 54c1e9e Jun 30, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.