@novemberborn/as-i-preach

Like standard, but with support for new syntax and AVA rules, to @novemberborn's taste

Stats

stars 🌟issues ⚠️updated 🛠created 🐣size 🏋️‍♀️
00Oct 4, 2020Mar 28, 2016Minified + gzip package size for @novemberborn/as-i-preach in KB

Readme

as-i-preach

Like standard, with additional configuration:

See .eslintrc.js and .typescript.eslintrc.js for details.

It's what I use.

Installation

$ npm install --save-dev @novemberborn/as-i-preach

Then add it to your package.json:

{
  "scripts": {
    "lint": "as-i-preach"
  }
}

Configuration

You can provide configuration in your package.json under the as-i-preach key:

{
  "as-i-preach": {
    "ignore": [
      "tmp.js"
    ]
  }
}

See standard-engine for details.

Additionally you can provide the following options:

  • allowDevDependencies: a string or array of glob patterns for files that are allowed to use devDependencies.

    Defaults to ["scripts/**/*.js", "test.js", "test/**/*.js"]

  • fakeDependencies: a string or array of regular expression patterns for dependency sources that are actually fake, and must not be linted.

    For example if you use babel-plugin-files, specify "^files:" to avoid linter errors for import statements that are handled by the plugin.

  • resolvers: a valid value for the eslint-plugin-import's import/resolver setting

Semantic versioning

ESLint config and plugin dependencies are pinned. Any rule or plugin addition that restricts the rules is considered a breaking change.

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.