We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c6eb3cc commit b2d338bCopy full SHA for b2d338b
.githooks/pre-commit
@@ -0,0 +1,2 @@
1
+#!/bin/sh
2
+npx --no-install lint-staged
package.json
@@ -102,6 +102,7 @@
102
"espree": "^9.6.1",
103
"esquery": "^1.5.0",
104
"json-schema": "^0.4.0",
105
+ "lint-staged": "^15.0.0",
106
"mocha": "^10.2.0",
107
"monaco-editor": "^0.47.0",
108
"nyc": "^15.1.0",
@@ -119,5 +120,18 @@
119
120
},
121
"publishConfig": {
122
"access": "public"
123
+ },
124
+ "lint-staged": {
125
+ "*.{json,md,yml}": [
126
+ "prettier --write"
127
+ ],
128
+ "*.{js?(x)}": [
129
+ "prettier --write",
130
+ "eslint --fix"
131
132
+ "*.ts?(x)": [
133
+ "prettier --parser=typescript --write",
134
135
+ ]
136
}
137
0 commit comments