diff --git a/README.md b/README.md index 74872fd4af60fb8d6cdb7d27e6c587ee0b6e1df7..49bb7bdcb8ee4ba478ce60ce7e24f0646025156c 100644 --- a/README.md +++ b/README.md @@ -13,38 +13,5 @@ If you are developing a production application, we recommend updating the config - 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, - }, -}) -``` + + diff --git a/eslint.config.js b/eslint.config.js deleted file mode 100644 index 092408a9f09eae19150818b4f0db5d1b70744828..0000000000000000000000000000000000000000 --- a/eslint.config.js +++ /dev/null @@ -1,28 +0,0 @@ -import js from '@eslint/js' -import globals from 'globals' -import reactHooks from 'eslint-plugin-react-hooks' -import reactRefresh from 'eslint-plugin-react-refresh' -import tseslint from 'typescript-eslint' - -export default tseslint.config( - { ignores: ['dist'] }, - { - extends: [js.configs.recommended, ...tseslint.configs.recommended], - files: ['**/*.{ts,tsx}'], - languageOptions: { - ecmaVersion: 2020, - globals: globals.browser, - }, - plugins: { - 'react-hooks': reactHooks, - 'react-refresh': reactRefresh, - }, - rules: { - ...reactHooks.configs.recommended.rules, - 'react-refresh/only-export-components': [ - 'warn', - { allowConstantExport: true }, - ], - }, - }, -) diff --git a/src/services/.gitkeep b/src/services/.gitkeep deleted file mode 100644 index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..0000000000000000000000000000000000000000 diff --git a/tsconfig.app.json b/tsconfig.app.json index 358ca9ba93f089b0133f05933f133a446402eb17..45d253c31217eda120284e427294986ebd9bc7a6 100644 --- a/tsconfig.app.json +++ b/tsconfig.app.json @@ -16,11 +16,7 @@ "jsx": "react-jsx", /* Linting */ - "strict": true, - "noUnusedLocals": true, - "noUnusedParameters": true, - "noFallthroughCasesInSwitch": true, - "noUncheckedSideEffectImports": true + }, "include": ["src"] } diff --git a/tsconfig.node.json b/tsconfig.node.json index db0becc8b033a4a78144f4a3bb852082fe91cd62..9a1b5f4f0b048e7b9f30d942f339e96fab5da1aa 100644 --- a/tsconfig.node.json +++ b/tsconfig.node.json @@ -14,11 +14,7 @@ "noEmit": true, /* Linting */ - "strict": true, - "noUnusedLocals": true, - "noUnusedParameters": true, - "noFallthroughCasesInSwitch": true, - "noUncheckedSideEffectImports": true + }, "include": ["vite.config.ts"] }