supermemory/apps/extension
2024-02-23 16:04:49 -07:00
..
public chaos 2024-02-23 16:04:49 -07:00
src chaos 2024-02-23 16:04:49 -07:00
.eslintrc.cjs chaos 2024-02-23 16:04:49 -07:00
.gitignore chaos 2024-02-23 16:04:49 -07:00
index.html chaos 2024-02-23 16:04:49 -07:00
manifest.json chaos 2024-02-23 16:04:49 -07:00
package.json chaos 2024-02-23 16:04:49 -07:00
postcss.config.js chaos 2024-02-23 16:04:49 -07:00
README.md chaos 2024-02-23 16:04:49 -07:00
tailwind.config.js chaos 2024-02-23 16:04:49 -07:00
tsconfig.json chaos 2024-02-23 16:04:49 -07:00
tsconfig.node.json chaos 2024-02-23 16:04:49 -07:00
vite.config.ts chaos 2024-02-23 16:04:49 -07:00
vite.config.ts.timestamp-1708724797406-b8029634cc785.mjs chaos 2024-02-23 16:04:49 -07:00
vite.config.ts.timestamp-1708724837352-e87e647be4bdb.mjs chaos 2024-02-23 16:04:49 -07:00
vite.config.ts.timestamp-1708725079494-4cfac9d4a560f.mjs chaos 2024-02-23 16:04:49 -07:00
vite.config.ts.timestamp-1708725168622-ee30a92d0f2bc.mjs chaos 2024-02-23 16:04:49 -07:00

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