You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
importglobalsfrom'globals';importtseslintfrom'typescript-eslint';importpathfrom'path';import{fileURLToPath}from'url';import{FlatCompat}from'@eslint/eslintrc';importpluginJsfrom'@eslint/js';// mimic CommonJS variables -- not needed if using CommonJSconst__filename=fileURLToPath(import.meta.url);const__dirname=path.dirname(__filename);constcompat=newFlatCompat({baseDirectory: __dirname,recommendedConfig: pluginJs.configs.recommended});exportdefault[{languageOptions: {globals: globals.browser}},
...compat.extends('standard-with-typescript'),
...tseslint.configs.recommended,];
What did you expect to happen?
to run linting check
What actually happened?
Oops! Something went wrong! :(
ESLint: 9.0.0
ConfigError: Config "typescript-eslint/base": Key "plugins": Cannot redefine plugin "@typescript-eslint".
at rethrowConfigError (node_modules\@[email protected]\node_modules\@humanwhocodes\config-array\api.js:225:8)
### Link to Minimal Reproducible Example
private code
### Participation
- [X] I am willing to submit a pull request for this issue.
### Additional comments
_No response_
The text was updated successfully, but these errors were encountered:
The ts style guide typically depend on tseslint, so there's no need
to install it separately. Doing so might result in multiple versions
being installed, leading to errors.
fixes#97, #98
The ts style guide typically depend on tseslint, so there's no need
to install it separately. Doing so might result in multiple versions
being installed, leading to errors.
fixes#97, #98
The ts style guide typically depend on tseslint, so there's no need
to install it separately. Doing so might result in multiple versions
being installed, leading to errors.
fixes#97, #98
Environment
Node version: 20.12.0
npm version: 10.5.1
Local ESLint version: 9.0.0
Global ESLint version:
Operating System: Win 11
What parser are you using?
@typescript-eslint/parser
What did you do?
Configuration
What did you expect to happen?
to run linting check
What actually happened?
The text was updated successfully, but these errors were encountered: