diff --git a/eslint.config.js b/eslint.config.js index 5fd53cd..3b75804 100644 --- a/eslint.config.js +++ b/eslint.config.js @@ -1,8 +1,34 @@ // For more info, see https://github.com/storybookjs/eslint-plugin-storybook#configuration-flat-config-format import storybook from "eslint-plugin-storybook"; +import js from "@eslint/js"; +import tseslint from "typescript-eslint"; -import js from '@eslint/js'; +export default [ + { + ignores: [ + "**/dist/**", + "**/www/**", + "**/node_modules/**", + "**/.stencil/**", + "**/loader/**", + ], + }, -export default [js.configs.recommended, { - ignores: ['**/dist/**', '**/www/**', '**/node_modules/**', '**/.stencil/**'], -}, ...storybook.configs["flat/recommended"]]; \ No newline at end of file + js.configs.recommended, + + ...tseslint.configs.recommended, + + ...storybook.configs["flat/recommended"], + + { + files: ["**/*.tsx"], + rules: { + "@typescript-eslint/no-unused-vars": [ + "error", + { + varsIgnorePattern: "^h$", + }, + ], + }, + }, +]; \ No newline at end of file