standa

JavaScript Standa•Rd Style minus R(eact) d(evelopment) stuff

Features

It has same features as Standard JS linter but with a subset of rules: everything related to JSX and React is removed.

Installation

With npm do

npm i standa -D

Usage

It works the same as Standard JS!

For example you can declare globals in package.json, adding something like

  "standa": {
    "globals": [
      "localStorage"
    ]
  }

Note that the attribute name is standa instead of standard.

The same applies if you want to ignore files, for example

  "standa": {
    "ignore": [
      "dist/"
    ]
  }

Another use case, if you want to lint code with flow annotations, follow instructions from official StandardJS documentation then in your package.json

npm install babel-eslint
  "standa": {
    "parser": "babel-eslint",
    "plugins": [
      "flowtype"
    ]
  }

Credits

Credits go to standard-engine collaborators.

Versioning

Major version is the same as eslint-config-standard.

License

Same as Standard JS, i.e. MIT.