-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* upgrade deps * eslint 9 * upgrade deps * docs; remove redundant deps
- Loading branch information
Showing
5 changed files
with
401 additions
and
374 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,46 @@ | ||
import globals from 'globals'; | ||
import tsParser from '@typescript-eslint/parser'; | ||
|
||
import eslint from '@eslint/js'; | ||
import tseslint from 'typescript-eslint'; | ||
|
||
import pluginReactHooks from 'eslint-plugin-react-hooks'; | ||
import pluginReactRefresh from 'eslint-plugin-react-refresh'; | ||
|
||
/** | ||
* The ESLint configuration in "flat config" format. | ||
* | ||
* Note: This configuration uses helper functions from `typescript-eslint`. | ||
* | ||
* @see {@link https://eslint.org/docs/latest/use/configure/ Configure ESLint} | ||
* @see {@link https://typescript-eslint.io/packages/typescript-eslint typescript-eslint} | ||
*/ | ||
export default tseslint.config( | ||
{ | ||
files: ['**/*.ts', '**/*.tsx'], | ||
extends: [eslint.configs.recommended, ...tseslint.configs.recommended], | ||
languageOptions: { | ||
globals: { | ||
...globals.browser, | ||
}, | ||
|
||
parser: tsParser, | ||
}, | ||
linterOptions: { | ||
reportUnusedDisableDirectives: 'warn', | ||
}, | ||
plugins: { | ||
'react-hooks': pluginReactHooks, | ||
'react-refresh': pluginReactRefresh, | ||
}, | ||
rules: { | ||
'react-refresh/only-export-components': ['warn', { allowConstantExport: true }], | ||
'@typescript-eslint/no-empty-object-type': ['error', { allowWithName: 'Props$' }], | ||
}, | ||
}, | ||
{ | ||
// global ignores | ||
// do not add any other keys to this object | ||
ignores: ['coverage/', 'dist/'], | ||
}, | ||
); |
Oops, something went wrong.