Fix eslint error about --ext option by remove it #2543
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Context
--ext is removed.
Implementation
Screenshots
How to Test
btw, warning is ok?
Get in Touch
eslint/eslint#17931
https://eslint.org/docs/latest/use/configure/migration-guide#cli-flag-changes
Important
Remove
--extoption from ESLint commands in multiplepackage.jsonfiles, replacing it with glob patterns for file extensions.--extoption from ESLint commands ine2e/package.json,evals/apps/cli/package.json, andevals/packages/db/package.json.src/**/*.tsorsrc/**/*.ts src/**/*.tsxto specify file extensions.e2e/package.json: Change"lint": "eslint src --ext ts"to"lint": "eslint src/**/*.ts".evals/apps/cli/package.json: Change"lint": "eslint src --ext ts --max-warnings=0"to"lint": "eslint src/**/*.ts --max-warnings=0".webview-ui/package.json: Change"lint": "eslint src --ext ts,tsx"to"lint": "eslint src/**/*.ts src/**/*.tsx".package.jsonand otherpackage.jsonfiles similarly to ensure consistent linting across the project.This description was created by
for 65d0784881220b41dd2bcb9407a4481aedc3ddf6. It will automatically update as commits are pushed.