Skip to content

Instantly share code, notes, and snippets.

@Dnevend
Last active July 1, 2024 05:40
Show Gist options
  • Save Dnevend/717fe9c8750660fa04278da6140c96a4 to your computer and use it in GitHub Desktop.
Save Dnevend/717fe9c8750660fa04278da6140c96a4 to your computer and use it in GitHub Desktop.
Github.blog.Hello ClassyGit

GithubPage

该是一篇用于展示在ClassyGit上的一篇测试内容。

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:

Expanding the ESLint configuration

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

  • Configure the top-level parserOptions property like this:
export default {
  // other rules...
  parserOptions: {
    ecmaVersion: 'latest',
    sourceType: 'module',
    project: ['./tsconfig.json', './tsconfig.node.json'],
    tsconfigRootDir: __dirname,
  },
}
  • Replace plugin:@typescript-eslint/recommended to plugin:@typescript-eslint/recommended-type-checked or plugin:@typescript-eslint/strict-type-checked
  • Optionally add plugin:@typescript-eslint/stylistic-type-checked
  • Install eslint-plugin-react and add plugin:react/recommended & plugin:react/jsx-runtime to the extends list
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment