UNPKG
@bubkoo/eslint-config
Version:
latest (3.1.1)
3.1.1
3.1.0
3.0.3
3.0.2
3.0.1
3.0.0
2.4.0
2.3.1
2.3.0
2.2.1
2.2.0
2.1.3
2.1.2
2.1.1
2.1.0
2.0.2
2.0.1
2.0.0
1.5.1
1.5.0
1.4.2
1.4.1
1.4.0
1.3.1
1.3.0
1.2.0
1.1.0
1.0.1
1.0.0
Shared eslint config for my projects
github.com/bubkoo/configs
bubkoo/configs
@bubkoo/eslint-config
/
setup.js
18 lines
(14 loc)
•
286 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import { initConfig }
from
'@bubkoo/config-util'
const
configContent
= ` import { config }
from
'@bubkoo/eslint-config'
export
default
config
([ {
files
: [
'**/*.js'
,
'**/*.ts'
], }, {
rules
: { }, }, ]) `.
trim
()
initConfig
(
'eslint.config.mjs'
, `${configContent}\n`)