mirror of
https://github.com/ivuorinen/base-configs.git
synced 2026-01-26 03:03:59 +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, '.markdownlint.json')
|
|
|
|
const fileConfigObject = {
|
|
extends: '@ivuorinen/markdownlint-config'
|
|
}
|
|
|
|
if (!fs.existsSync(filePath)) {
|
|
fs.writeFileSync(filePath, JSON.stringify(fileConfigObject, undefined, 2))
|
|
}
|