Skip to content

Commit

Permalink
feat: disable lines
Browse files Browse the repository at this point in the history
  • Loading branch information
lvjiaxuan committed Aug 26, 2022
1 parent 48fba0b commit d682974
Show file tree
Hide file tree
Showing 8 changed files with 185 additions and 490 deletions.
9 changes: 0 additions & 9 deletions CHANGELOG.md

This file was deleted.

12 changes: 11 additions & 1 deletion Guides.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# [vscode api](https://code.visualstudio.com/api)

# [Extension manifest](https://code.visualstudio.com/api/references/extension-manifest)

## [contributes](https://code.visualstudio.com/api/references/contribution-points)
Expand All @@ -6,4 +8,12 @@

# [Background / watching tasks](https://code.visualstudio.com/docs/editor/tasks%5C#_background-watching-tasks)

[tasks.json](./.vscode/tasks.json)
[tasks.json](./.vscode/tasks.json)

# References

https://github1s.com/midnightsyntax/vscode-wrap-console-log

https://github1s.com/Box-Of-Hats/vscode-minify-selection/blob/HEAD/src/minifySelectionCommandProvider.ts#L12

https://github1s.com/gko/wrap
14 changes: 9 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
# WIP

- [ ] select lines and disable it with:
- [ ] right click menu.
- [x] Cmd.
- [x] Keyboard shortcuts(ctrl+alt+d).
- [ ] snippets based on rules config.

***
# eslint-disable README

This is the README for your extension "eslint-disable". After writing up a brief description, we recommend including the following sections.
Expand All @@ -12,11 +21,6 @@ For example if there is an image subfolder under your extension project workspac

> Tip: Many popular extensions utilize animations. This is an excellent way to show off your extension! We recommend short, focused animations that are easy to follow.
1. eslint-disabled snippets based rules config
2. select lines and right click to select eslint-disabled
3. use settings
4. based on rules config

## Requirements

If you have any requirements or dependencies, add a section describing those and how to install and configure them.
Expand Down
42 changes: 25 additions & 17 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "eslint-disable",
"displayName": "eslint-disable",
"version": "0.0.1",
"description": "eslint disable snippets based on config rules",
"description": "disable eslint rules in various ways",
"categories": [
"Other",
"Snippets"
Expand All @@ -15,13 +15,26 @@
"icon": "",
"publisher": "lvjiaxuan",
"activationEvents": [
"onCommand:eslint-disable.helloWorld"
"onLanguage:javascript",
"onLanguage:typescript"
],
"contributes": {
"commands": [
{
"command": "eslint-disable.helloWorld",
"title": "Hello World"
"title": "eslint-disable: Hello World"
},
{
"command": "eslint-disable.disableIT",
"title": "eslint-disable: disable it"
}
],
"keybindings": [
{
"command": "eslint-disable.disableIT",
"key": "ctrl+alt+d",
"mac": "ctrl+alt+d",
"when": "editorTextFocus"
}
],
"snippets": [
Expand All @@ -41,10 +54,7 @@
"language": "typescriptreact",
"path": "./snippets/snippets.json"
}
],
"menus": {
"editor/context": []
}
]
},
"scripts": {
"compile": "tsup src/extension.ts --external=vscode --format=cjs --clean",
Expand All @@ -56,21 +66,19 @@
},
"devDependencies": {
"@lvjiaxuan/eslint-config": "^0.0.20",
"@types/glob": "^7.2.0",
"@types/mocha": "^9.1.1",
"@types/node": "18.x",
"@types/eslint": "^8.4.6",
"@types/vscode": "^1.70.0",
"@typescript-eslint/eslint-plugin": "^5.34.0",
"@typescript-eslint/parser": "^5.34.0",
"@typescript-eslint/eslint-plugin": "^5.35.1",
"@typescript-eslint/parser": "^5.35.1",
"@vscode/test-electron": "^2.1.5",
"eslint": "^8.22.0",
"glob": "^8.0.3",
"mocha": "^10.0.0",
"tsup": "^6.2.2",
"typescript": "^4.7.4"
"typescript": "^4.8.2"
},
"license": "SEE LICENSE IN ./LICENSE",
"license": "MIT",
"eslintConfig": {
"extends": "@lvjiaxuan"
},
"dependencies": {
"eslint": "^8.22.0"
}
}

0 comments on commit d682974

Please sign in to comment.