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.
.pre-commit.json
1 parent 5e20d2e commit c5981dbCopy full SHA for c5981db
1 file changed
index.js
@@ -183,11 +183,11 @@ Hook.prototype.initialize = function initialize () {
183
this.status = this.status.stdout.toString().trim()
184
this.root = this.root.stdout.toString().trim()
185
186
- if (fs.existsSync(path.join(this.root, 'pre-commit.json'))) {
+ if (fs.existsSync(path.join(this.root, '.pre-commit.json'))) {
187
let preCommitConfig
188
189
try {
190
- const raw = fs.readFileSync(path.join(this.root, 'pre-commit.json'), 'utf-8').toString()
+ const raw = fs.readFileSync(path.join(this.root, '.pre-commit.json'), 'utf-8').toString()
191
preCommitConfig = JSON.parse(raw)
192
} catch (err) {}
193
0 commit comments