import js from '@eslint/js'; import tseslint from 'typescript-eslint'; import react from 'eslint-plugin-react'; import storybook from 'eslint-plugin-storybook'; import globals from 'globals'; export default tseslint.config( { ignores: ['node_modules/**', 'dist/**', 'build/**', 'storybook-static/**'], }, js.configs.recommended, ...tseslint.configs.recommended, react.configs.flat.recommended, react.configs.flat['jsx-runtime'], ...storybook.configs['flat/recommended'], { settings: { react: { version: 'detect' }, }, }, { files: ['**/*.{js,jsx,ts,tsx}'], languageOptions: { ecmaVersion: 'latest', sourceType: 'module', parserOptions: { ecmaFeatures: { jsx: true }, }, globals: { ...globals.browser, ...globals.node, }, }, rules: { indent: ['error', 'tab'], 'linebreak-style': ['error', 'unix'], quotes: ['error', 'single'], semi: ['error', 'always'], 'eol-last': ['error', 'always'], 'react/prop-types': 'off', '@typescript-eslint/no-require-imports': 'off', }, }, { files: ['**/*.js'], languageOptions: { sourceType: 'commonjs', }, }, );