Skip to content
This repository has been archived by the owner on Aug 7, 2023. It is now read-only.

AtomLinter/linter-jshint

This branch is 1 commit ahead of master.

Folders and files

NameName
Last commit message
Last commit date
Sep 27, 2018
May 5, 2017
Sep 13, 2019
Sep 27, 2018
Apr 20, 2016
May 3, 2017
Dec 31, 2015
Sep 25, 2017
Sep 25, 2017
Jun 12, 2019
Jan 28, 2020
Jul 21, 2015
Sep 26, 2016
May 9, 2021
Feb 24, 2020

Repository files navigation

linter-jshint

This plugin for linter provides an interface to JSHint. It will lint JavaScript in files with the .js extension and optionally inside <script> blocks in HTML or PHP files.

Installation

The Linter package must be installed in order to use this plugin. If it isn't installed, please follow the instructions here.

Plugin installation

$ apm install linter-jshint

Settings

You can configure linter-jshint by editing ~/.atom/config.cson (choose Open Your Config in Atom menu):

'linter-jshint':
  # Path of the `jshint` executable
  executablePath: '/path/to/bundled/jshint'

  # Lint JavaScript inside `<script>` blocks in HTML or PHP files
  lintInlineJavaScript: false

  # Disable linter when no `.jshintrc` is found in project
  disableWhenNoJshintrcFileInPath: false

Contributing

If you would like to contribute enhancements or fixes, please do the following:

  1. Fork the plugin repository
  2. Hack on a separate topic branch created from the latest master
  3. Commit and push the topic branch
  4. Make a pull request
  5. Welcome to the club 😎

Please note that modifications should follow these coding guidelines:

  • Indent of 2 spaces
  • Code should pass CoffeeLint with the provided coffeelint.json
  • Vertical whitespace helps readability, don't be afraid to use it

Thank you for helping out!