Skip to content

Commit

Permalink
chore: upgrade to eslint 9
Browse files Browse the repository at this point in the history
  • Loading branch information
josdejong committed Oct 22, 2024
1 parent 54e5daf commit ac0f59e
Show file tree
Hide file tree
Showing 23 changed files with 296 additions and 417 deletions.
3 changes: 3 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import path from 'node:path'
import { fileURLToPath } from 'node:url'
import js from '@eslint/js'
import { FlatCompat } from '@eslint/eslintrc'
import { includeIgnoreFile } from '@eslint/compat'

const __filename = fileURLToPath(import.meta.url)
const __dirname = path.dirname(__filename)
Expand All @@ -13,6 +14,7 @@ const compat = new FlatCompat({
recommendedConfig: js.configs.recommended,
allConfig: js.configs.all
})
const gitignorePath = path.resolve(__dirname, '.gitignore')

export default [
...compat.extends(
Expand All @@ -21,6 +23,7 @@ export default [
'plugin:svelte/recommended',
'prettier'
),
includeIgnoreFile(gitignorePath),
{
languageOptions: {
globals: {
Expand Down
Loading

0 comments on commit ac0f59e

Please sign in to comment.