Skip to content

Commit

Permalink
Bump and migrate to ESLint 9
Browse files Browse the repository at this point in the history
Following how things are setup when creating a new Sveltekit app using `npm create svelte@latest`
  • Loading branch information
johanbissemattsson committed Jun 12, 2024
1 parent 8ff8359 commit a077472
Show file tree
Hide file tree
Showing 4 changed files with 489 additions and 445 deletions.
13 changes: 0 additions & 13 deletions lxl-web/.eslintignore

This file was deleted.

33 changes: 33 additions & 0 deletions lxl-web/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/']
}
];
Loading

0 comments on commit a077472

Please sign in to comment.