- Add ESLint configuration for TypeScript and React. - Create index.html as the entry point for the application. - Set up package.json with scripts for development, build, linting, and preview. - Include Vite logo SVG in the public directory. - Add App.css for styling the application. - Implement main App component in App.tsx with basic functionality. - Add React logo SVG to assets. - Create global styles in index.css. - Set up main entry point in main.tsx. - Configure TypeScript with tsconfig files for app and node environments. - Create Vite configuration file for React integration.
24 lines
616 B
JavaScript
24 lines
616 B
JavaScript
import js from '@eslint/js'
|
|
import globals from 'globals'
|
|
import reactHooks from 'eslint-plugin-react-hooks'
|
|
import reactRefresh from 'eslint-plugin-react-refresh'
|
|
import tseslint from 'typescript-eslint'
|
|
import { defineConfig, globalIgnores } from 'eslint/config'
|
|
|
|
export default defineConfig([
|
|
globalIgnores(['dist']),
|
|
{
|
|
files: ['**/*.{ts,tsx}'],
|
|
extends: [
|
|
js.configs.recommended,
|
|
tseslint.configs.recommended,
|
|
reactHooks.configs.flat.recommended,
|
|
reactRefresh.configs.vite,
|
|
],
|
|
languageOptions: {
|
|
ecmaVersion: 2020,
|
|
globals: globals.browser,
|
|
},
|
|
},
|
|
])
|