Skip to content

Commit

Permalink
Update ESLint config to match latest version from create-svelte
Browse files Browse the repository at this point in the history
  • Loading branch information
theodorejb committed Sep 27, 2024
1 parent 25ebc27 commit ee25adc
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import js from "@eslint/js";
import ts from "typescript-eslint";
import svelte from "eslint-plugin-svelte";
import eslint from "@eslint/js";
import prettier from "eslint-config-prettier";
import svelte from "eslint-plugin-svelte";
import globals from "globals";
/** @type {import('eslint').Linter.Config[]} */
export default [
js.configs.recommended,
...ts.configs.recommended,
import tseslint from "typescript-eslint";

export default tseslint.config(
eslint.configs.recommended,
...tseslint.configs.recommended,
...svelte.configs["flat/recommended"],
prettier,
...svelte.configs["flat/prettier"],
Expand All @@ -22,11 +22,11 @@ export default [
files: ["**/*.svelte"],
languageOptions: {
parserOptions: {
parser: ts.parser,
parser: tseslint.parser,
},
},
rules: {
"svelte/no-inline-styles": "error",
},
},
];
);

0 comments on commit ee25adc

Please sign in to comment.