We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
lint-staged
1 parent bc306d9 commit 5c85ea8Copy full SHA for 5c85ea8
.lintstagedrc.json
@@ -0,0 +1,3 @@
1
+{
2
+ "*.{js,cjs}": "eslint --fix"
3
+}
package.json
@@ -48,10 +48,12 @@
48
"eslint-plugin-node": "^11.1.0",
49
"eslint-release": "^3.2.0",
50
"esprima-fb": "^8001.2001.0-dev-harmony-fb",
51
+ "lint-staged": "^13.2.0",
52
"mocha": "^9.2.2",
53
"npm-run-all": "^4.1.5",
54
"rollup": "^2.41.2",
- "shelljs": "^0.3.0"
55
+ "shelljs": "^0.3.0",
56
+ "yorkie": "^2.0.0"
57
},
58
"keywords": [
59
"ast",
@@ -61,6 +63,9 @@
61
63
"syntax",
62
64
"acorn"
65
],
66
+ "gitHooks": {
67
+ "pre-commit": "lint-staged"
68
+ },
69
"scripts": {
70
"unit": "npm-run-all -s unit:*",
71
"unit:esm": "c8 mocha --color --reporter progress --timeout 30000 'tests/lib/**/*.js'",
0 commit comments