An open API service indexing awesome lists of open source software.

https://github.com/xkeshav/test

just a test repo
https://github.com/xkeshav/test

Last synced: 2 months ago
JSON representation

just a test repo

Awesome Lists containing this project

README

        

# Sample repo to reproduce the issue

[issue detail](https://github.com/microsoft/vscode-eslint/issues/1931)

Added below 2 files which can be used to help the issue reproduction

- **src/index.js**
- **README .md**

1. Installed eslint extension(`dbaeumer.vscode-eslint`)

2. Install eslint globally `npm install eslint -g`

3. Added eslint extension related settings in the workspace setting `.code-workspace` ( see at the end of the file )

```json
{
"editor.codeActionsOnSave": {
"source.fixAll.eslint": "explicit",
"source.fixAll": "explicit",
"source.organizeImports": "explicit"
},
"eslint.useFlatConfig": true,
"eslint.validate": ["mdx", "javascript", "typescript"],
"eslint.options": {
"extensions": [".js", ".md"]
}
}
```

4. Use `Ctrl+S` on markdown or js file
5. Open the _Output_ Panel in Bottom
6. Select _EsLint_ and _Extension Host(Remote)_ section from right side drop down

below are the logs

## in `Extension Host(Remote)` section

```log
- 'extensions' has been removed.
at ae (/home/codespace/.vscode-remote/extensions/dbaeumer.vscode-eslint-3.0.10/client/out/extension.js:1:41596)
at re (/home/codespace/.vscode-remote/extensions/dbaeumer.vscode-eslint-3.0.10/client/out/extension.js:1:39556)
at Immediate. (/home/codespace/.vscode-remote/extensions/dbaeumer.vscode-eslint-3.0.10/client/out/extension.js:1:35850)
at processImmediate (node:internal/timers:483:21)
```

## in `Eslint` Section

```log
[Error - 8:20:37 AM] An unexpected error occurred:
[Error - 8:20:37 AM] Error: Invalid Options:
- Unknown options: extensions
- 'extensions' has been removed.
at processOptions (/workspaces/test/node_modules/eslint/lib/eslint/eslint-helpers.js:847:15)
at new ESLint (/workspaces/test/node_modules/eslint/lib/eslint/eslint.js:447:34)
at O (/home/codespace/.vscode-remote/extensions/dbaeumer.vscode-eslint-3.0.10/server/out/eslintServer.js:1:19181)
at async M (/home/codespace/.vscode-remote/extensions/dbaeumer.vscode-eslint-3.0.10/server/out/eslintServer.js:1:19777)
```

Hope it will help.