SolarEnergy/central_frontend
2024-09-15 22:06:42 +02:00
..
public Add base login route 2024-06-29 13:26:12 +02:00
src Add missing device information synchronization 2024-09-15 22:06:42 +02:00
.env Add authentication layer 2024-06-29 14:43:56 +02:00
.env.production Add authentication layer 2024-06-29 14:43:56 +02:00
.eslintrc.cjs Add base react app 2024-06-29 13:01:50 +02:00
.gitignore Add base react app 2024-06-29 13:01:50 +02:00
index.html Add base login route 2024-06-29 13:26:12 +02:00
package-lock.json Display live and cached consumption on dashboard 2024-09-02 22:17:34 +02:00
package.json Display live and cached consumption on dashboard 2024-09-02 22:17:34 +02:00
README.md Add base react app 2024-06-29 13:01:50 +02:00
tsconfig.app.json Add base react app 2024-06-29 13:01:50 +02:00
tsconfig.json Add base react app 2024-06-29 13:01:50 +02:00
tsconfig.node.json Add base react app 2024-06-29 13:01:50 +02:00
vite.config.ts Add base react app 2024-06-29 13:01:50 +02: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