// Package-local override for @bytelyst/ui. // Flat config does NOT inherit the root file when ESLint discovers a config // here, so the parser must be declared explicitly or ESLint falls back to // the espree default which can't parse TypeScript syntax (`interface`, // type-only imports, etc.) and emits 38 parse errors. import tsparser from '@typescript-eslint/parser'; export default [ // Ignore build artifacts (root config's ignores aren't inherited). { ignores: ['dist/**', 'node_modules/**', 'coverage/**'], }, { files: ['src/**/*.{ts,tsx}', '.storybook/**/*.{ts,tsx}'], languageOptions: { parser: tsparser, parserOptions: { ecmaVersion: 2022, sourceType: 'module', }, globals: { HTMLButtonElement: 'readonly', HTMLSpanElement: 'readonly', HTMLDivElement: 'readonly', HTMLInputElement: 'readonly', React: 'readonly', setTimeout: 'readonly', Date: 'readonly', Math: 'readonly', console: 'readonly', }, }, }, ];