From 98ce3338bc79e85ff0bad201ff66c2018bef5e5d Mon Sep 17 00:00:00 2001 From: msr Date: Mon, 20 May 2024 20:37:25 +0100 Subject: [PATCH] Add to readme --- README.md | 23 ----------------------- 1 file changed, 23 deletions(-) diff --git a/README.md b/README.md index b014435..bb1b60a 100644 --- a/README.md +++ b/README.md @@ -49,26 +49,3 @@ pnpm test:watch - [@vitejs/plugin-react-swc](https://github.com/vitejs/vite-plugin-react-swc) uses [SWC](https://swc.rs/) for Fast Refresh - [How to setup MSW in a React project using Vite](https://www.raisiqueira.io/drops/vite-msw) - [Vitest](https://vitest.dev/guide/#overview) -- [] (...) - -## 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 { - // 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](https://github.com/jsx-eslint/eslint-plugin-react) and add `plugin:react/recommended` & `plugin:react/jsx-runtime` to the `extends` list