Skip to content

Commit

Permalink
Update Eslint to v9 w/flat config & fix linting errors #724
Browse files Browse the repository at this point in the history
  • Loading branch information
hupf committed Oct 17, 2024
1 parent 82b4eaa commit 193bcbb
Show file tree
Hide file tree
Showing 7 changed files with 372 additions and 348 deletions.
20 changes: 0 additions & 20 deletions .eslintrc.cjs

This file was deleted.

1 change: 1 addition & 0 deletions .knip.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"project": ["src/**/*.{ts,js}"],
"ignore": ["public/*"],
"ignoreBinaries": ["knip", "vite-bundle-visualizer"],
"ignoreDependencies": ["eslint-plugin-lit-a11y", "husky"],
"rules": {
"exports": "warn",
"types": "warn"
Expand Down
14 changes: 14 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
// @ts-check
import eslint from "@eslint/js";
import eslintConfigPrettier from "eslint-config-prettier";
import tseslint from "typescript-eslint";

// import eslintPluginLitA11y from "eslint-plugin-lit-a11y"; // TODO: re-enable this plugin once it supports ESLint 9's flat config format

export default tseslint.config(
{ files: ["**/*.{js,mjs,cjs,ts}"] },
{ ignores: ["dist/"] },
eslint.configs.recommended,
...tseslint.configs.recommended,
eslintConfigPrettier,
);
Loading

0 comments on commit 193bcbb

Please sign in to comment.