Skip to content

Commit c5981db

Browse files
committed
Use .pre-commit.json as config file name
1 parent 5e20d2e commit c5981db

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -183,11 +183,11 @@ Hook.prototype.initialize = function initialize () {
183183
this.status = this.status.stdout.toString().trim()
184184
this.root = this.root.stdout.toString().trim()
185185

186-
if (fs.existsSync(path.join(this.root, 'pre-commit.json'))) {
186+
if (fs.existsSync(path.join(this.root, '.pre-commit.json'))) {
187187
let preCommitConfig
188188

189189
try {
190-
const raw = fs.readFileSync(path.join(this.root, 'pre-commit.json'), 'utf-8').toString()
190+
const raw = fs.readFileSync(path.join(this.root, '.pre-commit.json'), 'utf-8').toString()
191191
preCommitConfig = JSON.parse(raw)
192192
} catch (err) {}
193193

0 commit comments

Comments
 (0)