Skip to content

Commit

Permalink
eslint9
Browse files Browse the repository at this point in the history
  • Loading branch information
pjaudiomv committed Jun 9, 2024
1 parent cc57145 commit f2e46e8
Show file tree
Hide file tree
Showing 6 changed files with 693 additions and 431 deletions.
13 changes: 0 additions & 13 deletions .eslintignore

This file was deleted.

26 changes: 0 additions & 26 deletions .eslintrc.cjs

This file was deleted.

33 changes: 33 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
import js from '@eslint/js';
import ts from 'typescript-eslint';
import svelte from 'eslint-plugin-svelte';
import prettier from 'eslint-config-prettier';
import globals from 'globals';

/** @type {import('eslint').Linter.FlatConfig[]} */
export default [
js.configs.recommended,
...ts.configs.recommended,
...svelte.configs['flat/recommended'],
prettier,
...svelte.configs['flat/prettier'],
{
languageOptions: {
globals: {
...globals.browser,
...globals.node
}
}
},
{
files: ['**/*.svelte'],
languageOptions: {
parserOptions: {
parser: ts.parser
}
}
},
{
ignores: ['build/', '.svelte-kit/', 'dist/', '*.lock']
}
];
Loading

0 comments on commit f2e46e8

Please sign in to comment.