-
-
Notifications
You must be signed in to change notification settings - Fork 128
Expand file tree
/
Copy pathoptions.js
More file actions
21 lines (19 loc) · 623 Bytes
/
options.js
File metadata and controls
21 lines (19 loc) · 623 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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
}