From 3deab805b7c3308c04f27192f3d47a7fdb241748 Mon Sep 17 00:00:00 2001 From: Mohammad Bagher Abiyat Date: Fri, 27 Sep 2024 09:31:35 +0330 Subject: [PATCH] remove few files --- examples/counter/.gitignore | 24 ------------- examples/counter/README.md | 50 --------------------------- examples/counter/eslint.config.js | 28 --------------- examples/counter/public/vite.svg | 1 - examples/counter/src/assets/react.svg | 1 - 5 files changed, 104 deletions(-) delete mode 100644 examples/counter/.gitignore delete mode 100644 examples/counter/README.md delete mode 100644 examples/counter/eslint.config.js delete mode 100644 examples/counter/public/vite.svg delete mode 100644 examples/counter/src/assets/react.svg diff --git a/examples/counter/.gitignore b/examples/counter/.gitignore deleted file mode 100644 index a547bf36..00000000 --- a/examples/counter/.gitignore +++ /dev/null @@ -1,24 +0,0 @@ -# Logs -logs -*.log -npm-debug.log* -yarn-debug.log* -yarn-error.log* -pnpm-debug.log* -lerna-debug.log* - -node_modules -dist -dist-ssr -*.local - -# Editor directories and files -.vscode/* -!.vscode/extensions.json -.idea -.DS_Store -*.suo -*.ntvs* -*.njsproj -*.sln -*.sw? diff --git a/examples/counter/README.md b/examples/counter/README.md deleted file mode 100644 index 74872fd4..00000000 --- a/examples/counter/README.md +++ /dev/null @@ -1,50 +0,0 @@ -# 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, - }, -}) -``` diff --git a/examples/counter/eslint.config.js b/examples/counter/eslint.config.js deleted file mode 100644 index 092408a9..00000000 --- a/examples/counter/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/examples/counter/public/vite.svg b/examples/counter/public/vite.svg deleted file mode 100644 index e7b8dfb1..00000000 --- a/examples/counter/public/vite.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/examples/counter/src/assets/react.svg b/examples/counter/src/assets/react.svg deleted file mode 100644 index 6c87de9b..00000000 --- a/examples/counter/src/assets/react.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file