Skip to content

Commit e126c79

Browse files
committed
add back eslint
1 parent ed2ac03 commit e126c79

File tree

5 files changed

+2815
-248
lines changed

5 files changed

+2815
-248
lines changed

.storybook/preview.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
import type { Preview } from '@storybook/react'
1+
import type { Preview } from "@storybook/react";
22

33
const preview: Preview = {
44
parameters: {
55
controls: {
66
matchers: {
7-
color: /(background|color)$/i,
8-
date: /Date$/i,
7+
color: /(background|color)$/i,
8+
date: /Date$/i,
99
},
1010
},
1111
},
1212
};
1313

14-
export default preview;
14+
export default preview;

eslint.config.js

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
import js from "@eslint/js";
2+
import globals from "globals";
3+
import tseslint from "typescript-eslint";
4+
import pluginReact from "eslint-plugin-react";
5+
import { defineConfig } from "eslint/config";
6+
7+
export default defineConfig([
8+
{
9+
files: ["**/*.{js,mjs,cjs,ts,jsx,tsx}"],
10+
plugins: { js },
11+
extends: ["js/recommended"],
12+
},
13+
{
14+
files: ["**/*.{js,mjs,cjs,ts,jsx,tsx}"],
15+
languageOptions: { globals: globals.browser },
16+
},
17+
tseslint.configs.recommended,
18+
pluginReact.configs.flat.recommended,
19+
pluginReact.configs.flat["jsx-runtime"],
20+
]);

0 commit comments

Comments
 (0)