generated from garronej/keycloakify-demo-app
-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
19 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,50 +1,19 @@ | ||
# 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: | ||
|
||
- [@vitejs/plugin-react](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react/README.md) uses [Babel](https://babeljs.io/) for Fast Refresh | ||
- [@vitejs/plugin-react-swc](https://github.com/vitejs/vite-plugin-react-swc) uses [SWC](https://swc.rs/) for Fast Refresh | ||
|
||
## 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: | ||
|
||
```js | ||
export default tseslint.config({ | ||
languageOptions: { | ||
// other options... | ||
parserOptions: { | ||
project: ['./tsconfig.node.json', './tsconfig.app.json'], | ||
tsconfigRootDir: import.meta.dirname, | ||
}, | ||
}, | ||
}) | ||
``` | ||
|
||
- Replace `tseslint.configs.recommended` to `tseslint.configs.recommendedTypeChecked` or `tseslint.configs.strictTypeChecked` | ||
- Optionally add `...tseslint.configs.stylisticTypeChecked` | ||
- Install [eslint-plugin-react](https://github.com/jsx-eslint/eslint-plugin-react) and update the config: | ||
|
||
```js | ||
// eslint.config.js | ||
import react from 'eslint-plugin-react' | ||
|
||
export default tseslint.config({ | ||
// Set the react version | ||
settings: { react: { version: '18.3' } }, | ||
plugins: { | ||
// Add the react plugin | ||
react, | ||
}, | ||
rules: { | ||
// other rules... | ||
// Enable its recommended rules | ||
...react.configs.recommended.rules, | ||
...react.configs['jsx-runtime'].rules, | ||
}, | ||
}) | ||
``` | ||
<p align="center"> | ||
<i><a href="https://www.sspcloud.fr">This website</a>, the landing page of the SSPCloud ( Service Statistique Public Cloud )</i> | ||
<br> | ||
<br> | ||
<img src="https://github.com/garronej/keycloakify/workflows/ci/badge.svg?branch=develop"> | ||
<img src="https://img.shields.io/npm/l/keycloakify"> | ||
<img src="https://camo.githubusercontent.com/0f9fcc0ac1b8617ad4989364f60f78b2d6b32985ad6a508f215f14d8f897b8d3/68747470733a2f2f62616467656e2e6e65742f62616467652f547970655363726970742f7374726963742532302546302539462539322541412f626c7565"> | ||
</p> | ||
|
||
https://user-images.githubusercontent.com/6702424/152362187-3b02ba1f-432d-45fa-8c4c-cfc34d61f16b.mp4 | ||
|
||
NOTE: This website is not to be confused by [docs.sspcloud.fr](https://docs.sspcloud.fr) that can | ||
be edited on [GitBook](https://www.gitbook.com) or directly in markdown at [InseeFrLab/docs.sspcloud.fr](https://github.com/InseeFrLab/docs.sspcloud.fr) | ||
|
||
<p align="center"> | ||
<i>On this website you will get infos about the services offered alongside training and tutorials</i> | ||
<img src="https://user-images.githubusercontent.com/6702424/141505369-e02128e0-e7f6-477e-877b-995f05ee7df7.png"> | ||
<img src="https://user-images.githubusercontent.com/6702424/141505196-d7906507-a2e3-481f-b339-a971ef58737f.png"> | ||
</p> |