Skip to content

Commit

Permalink
chore: use nano-staged instead of lint-staged
Browse files Browse the repository at this point in the history
  • Loading branch information
Kikobeats committed Feb 25, 2022
1 parent 7d23dbe commit 9e44c6d
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 18 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ name: test
on:
push:
branches:
- master
- master
pull_request:
branches:
- master
- master

jobs:
test:
Expand All @@ -23,7 +23,7 @@ jobs:
- name: Test
run: npm test
- name: Report
run: mkdir -p coverage && npx nyc report --reporter=text-lcov > coverage/lcov.info
run: mkdir -p coverage && npx c8 report --reporter=text-lcov > coverage/lcov.info
- name: Coverage
uses: coverallsapp/github-action@master
with:
Expand Down
24 changes: 9 additions & 15 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,13 @@
"@commitlint/cli": "latest",
"@commitlint/config-conventional": "latest",
"ava": "latest",
"c8": "latest",
"ci-publish": "latest",
"conventional-github-releaser": "latest",
"finepack": "latest",
"git-authors-cli": "latest",
"lint-staged": "latest",
"nano-staged": "latest",
"npm-check-updates": "latest",
"nyc": "latest",
"prettier-standard": "latest",
"simple-git-hooks": "latest",
"standard": "latest",
Expand All @@ -58,14 +58,14 @@
"coverage": "nyc report --reporter=text-lcov | coveralls",
"lint": "standard-markdown README.md && standard",
"postrelease": "npm run release:tags && npm run release:github && (ci-publish || npm publish --access=public)",
"precommit": "lint-staged",
"precommit": "nano-staged",
"prerelease": "npm run update:check && npm run contributors",
"pretest": "npm run lint",
"pretty": "prettier-standard index.js {core,test,bin,scripts}/**/*.js --single-quote --print-width 100",
"release": "standard-version -a",
"release:github": "conventional-github-releaser -p angular",
"release:tags": "git push --follow-tags origin HEAD:master",
"test": "nyc ava",
"test": "c8 ava",
"update": "ncu -u",
"update:check": "ncu -- --error-level 2"
},
Expand All @@ -75,25 +75,19 @@
"@commitlint/config-conventional"
]
},
"husky": {
"hooks": {
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS",
"pre-commit": "lint-staged"
}
},
"lint-staged": {
"package.json": [
"finepack"
],
"nano-staged": {
"*.js,!*.min.js,": [
"prettier-standard"
],
"*.md": [
"standard-markdown"
],
"package.json": [
"finepack"
]
},
"simple-git-hooks": {
"commit-msg": "npx commitlint --edit",
"pre-commit": "npx lint-staged"
"pre-commit": "npx nano-staged"
}
}

0 comments on commit 9e44c6d

Please sign in to comment.