Press n or j to go to the next uncovered block, b, p or k for the previous block.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x | import { readFileSync } from 'node:fs' import { fileURLToPath } from 'node:url' import eslint from 'eslint' // eslintConfig.configFile have problem reading URLs and file:/// const configFile = 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: 'standard', eslint, eslintConfig: { configFile }, homepage: pkg.homepage, tagline: 'Use JavaScript Standard Style', version: pkg.version } |