Skip to content

Standard ESLint configurations for !ninja packages

License

Notifications You must be signed in to change notification settings

NotNinja/eslint-config-notninja

Repository files navigation

!ninja ESlint Configuration

eslint-config-notninja contains standard ESLint configurations for !ninja packages.

License Release

Install

Install using npm:

$ npm install --save-dev eslint-config-notninja

You'll need to have at least Node.js installed.

Configuration

Create an ESLint configuration file within your package that extends this configuration:

{
  "extends": "notninja",
  ...
}

This will extend the ECMAScript 5 configuration by default, but you can extend other ECMAScript versions as well. You also have the option of using either the script (i.e. normal) or ECMAScript modules (e.g import foo from 'foo') source type for any version, if desired.

ECMAScript Version Script ECMAScript Module
Default (5) "notninja" "notninja/esm"
5 "notninja/es5" "notninja/esm5"
6 (2015) "notninja/es6" "notninja/esm6"
7 (2016) "notninja/es7" "notninja/esm7"
8 (2017) "notninja/es8" "notninja/esm8"
9 (2018) "notninja/es9" "notninja/esm9"

By design, all rules that are specific to !ninja are applied on top of the eslint:recommended configuration.

Bugs

If you have any problems or would like to see changes currently in development you can do so here.

Contributors

If you want to contribute, you're a legend! Information on how you can do so can be found in CONTRIBUTING.md. We want your suggestions and pull requests!

A list of contributors can be found in AUTHORS.md.

License

See LICENSE.md for more information on our MIT license.

Copyright !ninja