21 lines
717 B
JavaScript
21 lines
717 B
JavaScript
import globals from 'globals'
|
|
import pluginJs from '@eslint/js'
|
|
import { includeIgnoreFile } from '@eslint/compat'
|
|
import path from 'node:path'
|
|
import { fileURLToPath } from 'node:url'
|
|
import eslintPluginPrettierRecommended from 'eslint-plugin-prettier/recommended'
|
|
|
|
const __filename = fileURLToPath(import.meta.url)
|
|
const __dirname = path.dirname(__filename)
|
|
const gitignorePath = path.resolve(__dirname, '.gitignore')
|
|
|
|
/** @type {import('eslint').Linter.Config[]} */
|
|
export default [
|
|
{ languageOptions: { globals: { ...globals.browser, ...globals.node } } },
|
|
pluginJs.configs.recommended,
|
|
eslintPluginPrettierRecommended,
|
|
includeIgnoreFile(gitignorePath),
|
|
{
|
|
ignores: ['site/*', 'templates/*'],
|
|
},
|
|
]
|