Skip to content

t-sauer/autolinting-for-javascript

Repository files navigation

Autolinting for Javascript in VSCode

Build Status

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:

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.