Package detail

eslint-config-notninja

NotNinja32MIT0.4.0

Standard ESLint configurations for !ninja packages

eslint, eslintconfig, notninja

readme

!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

changelog

Version 0.4.0, 2018.11.08

  • Enable semi, semi-spacing, and semi-style rules at ERROR level (breaking change)

Version 0.3.0, 2018.05.03

  • Reset all rules and start fresh by extending the eslint:recommended configuration (breaking change)

Version 0.2.4, 2018.05.03

  • Simplify how default configuration is managed
  • Add configuration for ECMAScript 9 (2018)
  • Add configurations for each ECMAScript version for ECMAScript modules

Version 0.2.3, 2017.07.20

  • Disable array-bracket-newline rule
  • Disable array-element-newline rule
  • Disable class-methods-use-this rule
  • Disable object-curly-newline rule

Version 0.2.2, 2017.07.03

  • Disable no-magic-numbers rule again

Version 0.2.1, 2017.07.03

  • Fix incorrect value type for max-statements-per-line rule

Version 0.2.0, 2017.07.03

  • Add missing rules as of ESLint 4
  • Remove deprecated/removed rules as of ESLint 4
  • Add ES7/2016 & ES8/2017 configurations
  • Update rules to align with common usage

Version 0.1.1, 2017.05.01

  • Fix bug with missing comma after sort-keys rule

Version 0.1.0, 2017.05.01

  • Initial release