Skip to content

Commit

Permalink
Update eslint (#926)
Browse files Browse the repository at this point in the history
  • Loading branch information
DTTerastar authored Dec 29, 2024
1 parent 1a0c8d5 commit 7497073
Show file tree
Hide file tree
Showing 5 changed files with 153 additions and 101 deletions.
3 changes: 3 additions & 0 deletions .clinerules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Test via `dotnet watch --project src`
Don't fix warnings and typescript issues unless it relates to your task
src/ui is svelete 5 please don't use old syntax
13 changes: 0 additions & 13 deletions src/ui/.eslintignore

This file was deleted.

40 changes: 40 additions & 0 deletions src/ui/eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
import js from "@eslint/js";
import eslintConfigPrettier from "eslint-config-prettier";
import eslintPluginSvelte from "eslint-plugin-svelte";
import globals from "globals";
import tsEslint from "typescript-eslint";
import vitest from "eslint-plugin-vitest";
import playwright from "eslint-plugin-playwright";

export default [
js.configs.recommended,
...tsEslint.configs.recommended,
...eslintPluginSvelte.configs["flat/recommended"],
eslintConfigPrettier,
{
...playwright.configs["flat/playwright"],
files: ["tests/**"]
},
vitest.configs.recommended,
...eslintPluginSvelte.configs["flat/prettier"],
{
languageOptions: {
ecmaVersion: "latest",
sourceType: "module",
globals: { ...globals.node, ...globals.browser },
parserOptions: {
extraFileExtensions: [".svelte"]
}
}
},
{
ignores: [
".svelte-kit",
"build",
"package",
"coverage",
"node_modules",
"playwright.config.js"
]
}
];
Loading

0 comments on commit 7497073

Please sign in to comment.