0.1.0 • Published 7 years ago

superlint v0.1.0

Weekly downloads
2
License
MIT
Repository
github
Last release
7 years ago

Supermind Linting Standards

Configurable ESLint wrapper around eslint-config-supermind.

Install superlint as a devDependency:

yarn add superlint --dev

Add superlint to your package scripts:

{
  "scripts": {
    "lint": "superlint"
  }
}

Optionally pass a glob to superlint to only lint those files:

{
  "scripts": {
    "lint": "superlint source/**/*.js"
  }
}

For extra points run superlint before your tests:

{
  "scripts": {
    "test": "superlint && node tests.js"
  }
}

Configuration

Add a superlint field to package.json:

{
  "superlint": {
    "ignore": "build",
    "use": [
      "flowtype",
      "inferno"
    ],
    "plugins": [
      "mocha"
    ],
    "rules": {
      "semi": [ "error", "always" ]
    }
  }
}

You can ignore files and folders using a glob or an array of globs.

To add more linting goodness for Inferno, React or Flowtype, pass an array of strings to the use field. Options are:

  • flowtype
  • jsx-a11y
  • inferno
  • react

These options map to the rulesets from eslint-config-supermind.

Fields that can be set on the superlint object are as follows:

  • use — Array of rulesets from eslint-config-supermind
  • ignore — Glob or array of globs eg. "build"
  • globals — Array of globals eg. [ "$", "_" ]
  • plugins — Array of ESLint plugins eg. [ "mocha" ]
  • parser — Custom parser eg. babel-eslint
  • rules — Rules object eg. { "semi": [ "error", "always" ] }
  • envs — Array of environments eg. [ "browser", "mocha" ]
  • fix — Boolean to automatically fix errors
0.1.0

7 years ago

0.0.14

8 years ago

0.0.13

8 years ago

0.0.12

8 years ago

0.0.11

8 years ago

0.0.10

8 years ago

0.0.9

8 years ago

0.0.8

8 years ago

0.0.7

8 years ago

0.0.6

8 years ago

0.0.5

8 years ago

0.0.4

8 years ago

0.0.3

8 years ago

0.0.2

8 years ago

0.0.1

8 years ago