Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/t-sauer/autolinting-for-javascript
Activates the correct Javascript linter for the current opened workspace in VSCode
https://github.com/t-sauer/autolinting-for-javascript
eslint javascript jscs jshint linter vscode
Last synced: about 1 month ago
JSON representation
Activates the correct Javascript linter for the current opened workspace in VSCode
- Host: GitHub
- URL: https://github.com/t-sauer/autolinting-for-javascript
- Owner: t-sauer
- License: mit
- Created: 2016-11-03T23:59:13.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2016-12-09T20:22:55.000Z (about 8 years ago)
- Last Synced: 2024-11-13T17:53:12.517Z (3 months ago)
- Topics: eslint, javascript, jscs, jshint, linter, vscode
- Language: TypeScript
- Homepage: https://marketplace.visualstudio.com/items?itemName=t-sauer.autolinting-for-javascript
- Size: 32.2 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.MD
Awesome Lists containing this project
README
# Autolinting for Javascript in VSCode
[](https://travis-ci.org/t-sauer/autolinting-for-javascript)
## Features
Automatically activates/deactivates the correct linters in Visual Studio Code for your current Javascript workspace depending on which configuration files can be found.
If no configuration can be found, user defined default linters will be used.Currently supported linters:
* ESLint
* JSHint
* JSCS
* Standard
* TSLint## Requirements
All linter extensions you want to use have to be installed in Visual Studio Code.
You can find these extensions here:* [ESLint](https://marketplace.visualstudio.com/items?itemName=dbaeumer.vscode-eslint)
* [JSHint](https://marketplace.visualstudio.com/items?itemName=dbaeumer.jshint)
* [JSCS](https://marketplace.visualstudio.com/items?itemName=ms-vscode.jscs)
* Standard: [JavaScript Standard Style](https://marketplace.visualstudio.com/items?itemName=chenxsan.vscode-standardjs) or [JS "Standard" Linter](https://marketplace.visualstudio.com/items?itemName=shinnn.standard)
* [TSLint](https://marketplace.visualstudio.com/items?itemName=eg2.tslint)## Extension Settings
### Default Linters
If you want to set one or more default linters (for the case that no configuration can be found), you can add a setting to your configuration:
* `jsAutolint.defaultLinters`: Set to an Array containing all linters you want to activate if no known linter configuration can be found (e.g. `["jshint", "jscs"]`).
Possible Values:
* `eslint`
* `jscs`
* `jshint`
* `standard`
* `tslint`The default linters will be set if you either open a Javascript file while a folder is opened (if you just open single files the linters won't get set automatically) or if you run the command `Automatically set correct Javascript linters` from the command palette.
### Disabling
* `jsAutolint.enable`: If set to `false` the extension won't automatically set the linters. This is useful in certain project settings if you want to handle the configuration yourself. The command to automatically set linters is still available if you want to run it manually.
### Status information
* `jsAutolint.showStatus`: If set to `false` current active linters won't be displayed in the status bar.