Skip to content

Commit

Permalink
docs: update
Browse files Browse the repository at this point in the history
  • Loading branch information
lvjiaxuan committed Mar 20, 2023
1 parent 1bcde1e commit e88f5b0
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 162 deletions.
11 changes: 5 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
](https://marketplace.visualstudio.com/items?itemName=lvjiaxuan.eslint-disable)

## Features
Select one or **multiple lines** which have rule problems from the extension of ESLint IntelliSense, and we could either disable rules for lines by `ctrl + alt + d` or disable for the entire file by `ctrl + alt + e`.
Select single or **multiple lines** which have rule problems from the extension of ESLint IntelliSense, and it could either disable rules for lines by `ctrl + alt + d` or disable for the entire file by `ctrl + alt + e`.


> **Note**
Expand All @@ -25,14 +25,13 @@ Select one or **multiple lines** which have rule problems from the extension of
## Preview

![](assets/1.gif)
For single line.

![](assets/2.gif)
![single](assets/1.gif)

## ~~Support [Flat Config](https://eslint.org/docs/latest/use/configure/configuration-files-new)(WIP)~~

1. Place an `eslint.config.js` file in the root of your project.
2. Enable `eslint.experimental.useFlatConfig` in `settings.json`.
For multiple lines, press `ctrl + d` to select another pair in other side.
![multiple](assets/2.gif)

## TODO

Expand Down
140 changes: 12 additions & 128 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

28 changes: 0 additions & 28 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,32 +33,8 @@
{
"command": "eslint-disable.entire",
"title": "eslint-disable: disable for entire file"
},
{
"command": "eslint-disable.reload",
"title": "eslint-disable: reload"
}
],
"configuration": {
"title": "ESLint Disable",
"properties": {
"eslint-disable.disable": {
"type": "boolean",
"default": false,
"description": "Controls whether eslint-disable is enabled or not."
},
"eslint-disable.preLinting": {
"type": "boolean",
"default": true,
"description": "Enables pre-linting after activeTextEditor open."
},
"eslint-disable.useFlatConfig": {
"type": "boolean",
"default": false,
"description": "Enables support of experimental Flat Config (aka eslint.config.js, supported by ESLint version 8.21 or later)."
}
}
},
"menus": {
"editor/context": [
{
Expand Down Expand Up @@ -95,10 +71,6 @@
"pack": "vsce package",
"publish": "vsce publish"
},
"dependencies": {
"vscode-languageclient": "^8.1.0",
"vscode-languageserver": "^8.1.0"
},
"devDependencies": {
"@lvjiaxuan/eslint-plugin": "^0.10.1",
"@types/eslint": "^8.21.3",
Expand Down

0 comments on commit e88f5b0

Please sign in to comment.