Skip to content

Commit

Permalink
infra: Improve ESLint config (#229)
Browse files Browse the repository at this point in the history
  • Loading branch information
WarningImHack3r authored Apr 11, 2024
1 parent c58fc6a commit 44e24cf
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 54 deletions.
7 changes: 3 additions & 4 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import js from "@eslint/js";
import ts from "typescript-eslint";
import svelte from "eslint-plugin-svelte";
import prettier from "eslint-plugin-prettier/recommended";
import prettier from "eslint-config-prettier";
import globals from "globals";

/** @type {import("eslint").Linter.FlatConfig[]} */
Expand All @@ -10,12 +10,11 @@ export default [
...ts.configs.recommended,
...svelte.configs["flat/recommended"],
prettier,
...svelte.configs["flat/prettier"],
{
languageOptions: {
ecmaVersion: 2020,
globals: {
...globals.browser,
...globals.es2017,
...globals.node
}
}
Expand Down Expand Up @@ -43,6 +42,6 @@ export default [
}
},
{
ignores: ["build/", ".svelte-kit/", "package/", "vite.config.ts.*", "src/paraglide/"]
ignores: ["build/", ".svelte-kit/", "package/", "src/paraglide/"]
}
];
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@
"autoprefixer": "^10.4.18",
"eslint": "^9.0.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-prettier": "^5.1.3",
"eslint-plugin-svelte": "^2.36.0",
"globals": "^15.0.0",
"husky": "^9.0.11",
Expand Down
49 changes: 0 additions & 49 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 44e24cf

Please sign in to comment.