mirror of
https://github.com/cotes2020/jekyll-theme-chirpy.git
synced 2025-10-20 17:53:45 +00:00
chore: improve ESLint config
This commit is contained in:
parent
f51641b541
commit
a385ffabff
@ -21,13 +21,13 @@ export default defineConfig([
|
|||||||
files: ['_javascript/**/*.js'],
|
files: ['_javascript/**/*.js'],
|
||||||
languageOptions: {
|
languageOptions: {
|
||||||
globals: {
|
globals: {
|
||||||
|
...globals.serviceworker,
|
||||||
ClipboardJS: 'readonly',
|
ClipboardJS: 'readonly',
|
||||||
GLightbox: 'readonly',
|
GLightbox: 'readonly',
|
||||||
Theme: 'readonly',
|
Theme: 'readonly',
|
||||||
dayjs: 'readonly',
|
dayjs: 'readonly',
|
||||||
mermaid: 'readonly',
|
mermaid: 'readonly',
|
||||||
tocbot: 'readonly',
|
tocbot: 'readonly',
|
||||||
importScripts: 'readonly',
|
|
||||||
swconf: 'readonly'
|
swconf: 'readonly'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user