Skip to content

Commit

Permalink
chore: update yarn format, lint & lint-staged scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
phatpham9 committed Feb 10, 2021
1 parent bea49ec commit 072562d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion .lintstagedrc
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{
"**/*.js": ["yarn format", "yarn lint"]
"*.{js,json,md,yml}": "yarn format",
"*.js": "yarn lint"
}
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@
"main": "index.js",
"scripts": {
"purge": "rm -rf node_modules",
"format": "prettier --write --ignore-path .gitignore **/*.js",
"format:check": "prettier --check --ignore-path .gitignore **/*.js",
"lint": "eslint --ignore-path .gitignore **/*.js",
"format": "prettier --write --ignore-path .gitignore .",
"format:check": "prettier --check --ignore-path .gitignore .",
"lint": "eslint --quiet --ignore-path .gitignore .",
"release": "standard-version --no-verify",
"release:major": "yarn release --release-as major",
"release:minor": "yarn release --release-as minor",
Expand Down

0 comments on commit 072562d

Please sign in to comment.