web-design-skill/web/eslint.config.js
lishiqi.conard 32a23cdc3e Initialize web application with React, TypeScript, and Vite setup
- Added essential project files including package.json, tsconfig, and Vite configuration.
- Created initial components and chapters for the application structure.
- Implemented ESLint configuration for code quality and consistency.
- Included .gitignore files to exclude build artifacts and dependencies.
- Added README for project documentation and setup instructions.
- Integrated a sample video and favicon for the application.
2026-04-21 21:47:16 +08:00

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,
},
},
])