Skip to content

Commit

Permalink
chore: Add lint-staged (#565)
Browse files Browse the repository at this point in the history
Co-authored-by: Nitin Kumar <snitin315@gmail.com>
Co-authored-by: Milos Djermanovic <milos.djermanovic@gmail.com>
  • Loading branch information
3 people committed Mar 18, 2023
1 parent bc306d9 commit 5c85ea8
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .lintstagedrc.json
@@ -0,0 +1,3 @@
{
"*.{js,cjs}": "eslint --fix"
}
7 changes: 6 additions & 1 deletion package.json
Expand Up @@ -48,10 +48,12 @@
"eslint-plugin-node": "^11.1.0",
"eslint-release": "^3.2.0",
"esprima-fb": "^8001.2001.0-dev-harmony-fb",
"lint-staged": "^13.2.0",
"mocha": "^9.2.2",
"npm-run-all": "^4.1.5",
"rollup": "^2.41.2",
"shelljs": "^0.3.0"
"shelljs": "^0.3.0",
"yorkie": "^2.0.0"
},
"keywords": [
"ast",
Expand All @@ -61,6 +63,9 @@
"syntax",
"acorn"
],
"gitHooks": {
"pre-commit": "lint-staged"
},
"scripts": {
"unit": "npm-run-all -s unit:*",
"unit:esm": "c8 mocha --color --reporter progress --timeout 30000 'tests/lib/**/*.js'",
Expand Down

0 comments on commit 5c85ea8

Please sign in to comment.