Skip to content

Commit

Permalink
Upgrade to ESLint 9 with flat config format
Browse files Browse the repository at this point in the history
  • Loading branch information
hupf committed Sep 2, 2024
1 parent c61116d commit 1d2ef57
Show file tree
Hide file tree
Showing 3 changed files with 348 additions and 529 deletions.
14 changes: 14 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import pluginJs from "@eslint/js";
import eslintConfigPrettier from "eslint-config-prettier";
// import eslintPluginLitA11y from "eslint-plugin-lit-a11y"; // TODO: re-enable this plugin once it supports ESLint 9's flat config format
import globals from "globals";
import tseslint from "typescript-eslint";

export default [
{ files: ["**/*.{js,mjs,cjs,ts}"] },
{ ignores: ["dist/*", "storybook-static/*"] },
{ languageOptions: { globals: globals.browser } },
pluginJs.configs.recommended,
...tseslint.configs.recommended,
eslintConfigPrettier,
];
Loading

0 comments on commit 1d2ef57

Please sign in to comment.