Skip to content

Commit

Permalink
style: run prettier during lint (#724)
Browse files Browse the repository at this point in the history
  • Loading branch information
nschonni authored Nov 23, 2021
1 parent 26b4e44 commit 3c25de8
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 8 deletions.
4 changes: 2 additions & 2 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
version: 2
updates:
- package-ecosystem: npm
directory: "/"
directory: '/'
schedule:
interval: weekly
versioning-strategy: increase
- package-ecosystem: github-actions
directory: "/"
directory: '/'
schedule:
interval: weekly
2 changes: 1 addition & 1 deletion .github/workflows/labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ jobs:
steps:
- uses: actions/[email protected]
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
repo-token: '${{ secrets.GITHUB_TOKEN }}'
3 changes: 1 addition & 2 deletions .github/workflows/production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,7 @@ jobs:
file: ./coverage/lcov.info

release:
if:
${{ github.repository == 'htmlhint/HTMLHint' &&
if: ${{ github.repository == 'htmlhint/HTMLHint' &&
contains('refs/heads/master,refs/heads/beta,refs/heads/next,refs/heads/alpha',
github.ref) && github.event_name == 'push' }}
runs-on: ubuntu-latest
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/test-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,4 +56,3 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@
"build:rollup": "npm run build:min && npm run build:unmin",
"build:min": "rollup -c --environment NODE_ENV:production --file dist/htmlhint.min.js",
"build:unmin": "rollup -c",
"lint": "eslint . --ext .js,.ts --max-warnings 0",
"lint:fix": "eslint --fix . --ext .js,.ts --max-warnings 0",
"lint": "prettier -c . && eslint . --ext .js,.ts --max-warnings 0",
"lint:fix": "npm run prettier && npm run lint -- --fix",
"test:coverage": "nyc npm run test"
},
"husky": {
Expand Down

0 comments on commit 3c25de8

Please sign in to comment.