-
Notifications
You must be signed in to change notification settings - Fork 1
Migrate to ESLint flat config and modernize tooling #13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main-react-query
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1 @@ | ||
| #!/bin/sh | ||
| . "$(dirname "$0")/_/husky.sh" | ||
|
|
||
| npx lint-staged |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1 @@ | ||
| v18.12.0 | ||
| v22.22.0 |
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -0,0 +1,47 @@ | ||||||
| import js from '@eslint/js'; | ||||||
| import tseslint from 'typescript-eslint'; | ||||||
| import react from 'eslint-plugin-react'; | ||||||
| import reactHooks from 'eslint-plugin-react-hooks'; | ||||||
| import prettier from 'eslint-config-prettier'; | ||||||
| import storybook from 'eslint-plugin-storybook'; | ||||||
| import globals from 'globals'; | ||||||
|
|
||||||
| export default tseslint.config( | ||||||
| { ignores: ['dist/', 'node_modules/', 'src/core/api/queries/', 'src/core/api/requests/', '**/*.d.ts'] }, | ||||||
| js.configs.recommended, | ||||||
| ...tseslint.configs.recommended, | ||||||
| { | ||||||
| files: ['src/**/*.{js,ts,tsx}'], | ||||||
|
||||||
| files: ['src/**/*.{js,ts,tsx}'], | |
| files: ['src/**/*.{js,ts,tsx}', '.storybook/**/*.{js,ts,tsx}', 'vite.config.ts', 'tsconfig.json'], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The removal of '@storybook/addon-essentials' removes several commonly used addons (actions, controls, docs, viewport, backgrounds, toolbars, measure, outline). While '@storybook/addon-docs' is explicitly added, other essential addons like actions and controls are no longer included. Verify that this is intentional and that the removed addons are not needed for the project's Storybook stories.