Skip to content

Commit

Permalink
chore: upgrade ESLint
Browse files Browse the repository at this point in the history
  • Loading branch information
Attacktive committed Sep 16, 2024
1 parent d07db43 commit 5e66cc5
Show file tree
Hide file tree
Showing 4 changed files with 367 additions and 296 deletions.
14 changes: 0 additions & 14 deletions .eslintrc.cjs

This file was deleted.

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

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

0 comments on commit 5e66cc5

Please sign in to comment.