semistandard
Version:
All the goodness of `feross/standard` with semicolons sprinkled on top.
22 lines (19 loc) • 623 B
JavaScript
import { readFileSync } from 'node:fs'
import { fileURLToPath } from 'node:url'
import eslint from 'eslint'
// eslintConfig.overrideConfigFile have problem reading URLs and file:///
const overrideConfigFile = fileURLToPath(new URL('./eslintrc.json', import.meta.url))
const pkgURL = new URL('./package.json', import.meta.url)
const pkgJSON = readFileSync(pkgURL, { encoding: 'utf-8' })
const pkg = JSON.parse(pkgJSON)
export default {
bugs: pkg.bugs.url,
cmd: 'semistandard',
eslint,
eslintConfig: {
overrideConfigFile
},
homepage: pkg.homepage,
tagline: 'Semicolons For All!',
version: pkg.version
}