mirror of
https://github.com/ivuorinen/base-configs.git
synced 2026-01-26 11:14:00 +00:00
15 lines
326 B
JavaScript
15 lines
326 B
JavaScript
'use strict'
|
|
|
|
const fs = require('fs')
|
|
const path = require('path')
|
|
|
|
const filePath = path.join(process.env.INIT_CWD, '.commitlintrc.json')
|
|
|
|
const fileConfigObject = {
|
|
extends: ['@ivuorinen/commitlint-config']
|
|
}
|
|
|
|
if (!fs.existsSync(filePath)) {
|
|
fs.writeFileSync(filePath, JSON.stringify(fileConfigObject, undefined, 2))
|
|
}
|