Skip to content

Commit

Permalink
Separate lint and format scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
AlecRust committed Jul 16, 2023
1 parent 6f156f9 commit 0d2a3a8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,5 @@ jobs:
cache: "yarn"
- name: Install Node packages
run: yarn install --immutable
- name: Run Prettier
run: yarn prettier --check .
- name: Run ESLint
run: yarn eslint .'
- name: Run lint
run: yarn lint
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@
"build": "webpack -c webpack.public.js && wp-scripts build src/protected-video-block.js --output-path=admin/js",
"start:demo": "webpack serve --mode development -c webpack.demo.js",
"build:demo": "webpack -c webpack.demo.js",
"lint": "prettier --write . && eslint --fix .",
"lint": "prettier --check . && eslint .",
"format": "prettier --write . && eslint --fix .",
"release": "release-it --ci",
"prepare": "husky install"
},
Expand Down

0 comments on commit 0d2a3a8

Please sign in to comment.