mirror of
https://github.com/cotes2020/jekyll-theme-chirpy.git
synced 2025-10-20 17:53:45 +00:00
36 lines
779 B
JavaScript
36 lines
779 B
JavaScript
import { defineConfig, globalIgnores } from 'eslint/config';
|
|
import js from '@eslint/js';
|
|
import globals from 'globals';
|
|
|
|
export default defineConfig([
|
|
globalIgnores(['assets/*', 'node_modules/*', '_site/*']),
|
|
js.configs.recommended,
|
|
{
|
|
rules: {
|
|
semi: ['error', 'always'],
|
|
quotes: ['error', 'single']
|
|
},
|
|
languageOptions: {
|
|
globals: {
|
|
...globals.browser,
|
|
...globals.node
|
|
}
|
|
}
|
|
},
|
|
{
|
|
files: ['_javascript/**/*.js'],
|
|
languageOptions: {
|
|
globals: {
|
|
ClipboardJS: 'readonly',
|
|
GLightbox: 'readonly',
|
|
Theme: 'readonly',
|
|
dayjs: 'readonly',
|
|
mermaid: 'readonly',
|
|
tocbot: 'readonly',
|
|
importScripts: 'readonly',
|
|
swconf: 'readonly'
|
|
}
|
|
}
|
|
}
|
|
]);
|