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

Respect JSHint Configrautions #31

Closed
@lijunle

Description

According to JSHint docs, there are three ways to configure JSHint:

  1. Specify with --config option
  2. .jshintrc file under project hierarchy
  3. package.json file under project root

And, of course, JS file inline configuration. Something like this:

/* jshint undef: true, unused: true */
/* global MY_GLOBAL */

Regarding .jshintrc configuration file, notice this sentence:

In case of .jshintrc, JSHint will start looking for this file in the same directory as the file that's being linted. If not found, it will move one level up the directory tree all the way up to the filesystem root.

But, because AtomLinter save the atom content buffer to a temporary file, it will NOT respect the above rule. Besides, AtomLinter does not expose the --config option to the end-user.

Currently, the only way to configure JSHint is to add inline directives. Once the project contains many files, this is a nightmare.

Please consider to add support to respect the JSHint rules.

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions