https://github.com/notninja/eslint-config-notninja
Standard ESLint configurations for !ninja packages
https://github.com/notninja/eslint-config-notninja
eslint-config
Last synced: about 1 month ago
JSON representation
Standard ESLint configurations for !ninja packages
- Host: GitHub
- URL: https://github.com/notninja/eslint-config-notninja
- Owner: NotNinja
- License: mit
- Created: 2017-05-01T12:09:52.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2018-11-08T14:45:42.000Z (over 7 years ago)
- Last Synced: 2025-02-25T14:43:01.831Z (over 1 year ago)
- Topics: eslint-config
- Language: JavaScript
- Size: 29.3 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGES.md
- Contributing: CONTRIBUTING.md
- License: LICENSE.md
Awesome Lists containing this project
README
# !ninja ESlint Configuration
[eslint-config-notninja](https://github.com/NotNinja/eslint-config-notninja) contains standard ESLint configurations for
!ninja packages.
[](https://github.com/NotNinja/eslint-config-notninja/blob/master/LICENSE.md)
[](https://www.npmjs.com/package/eslint-config-notninja)
* [Install](#install)
* [Configuration](#configuration)
* [Bugs](#bugs)
* [Contributors](#contributors)
* [License](#license)
## Install
Install using `npm`:
``` bash
$ npm install --save-dev eslint-config-notninja
```
You'll need to have at least [Node.js](https://nodejs.org) installed.
## Configuration
Create an ESLint configuration file within your package that extends this configuration:
``` json
{
"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](https://eslint.org/docs/user-guide/configuring#using-eslintrecommended) configuration.
## Bugs
If you have any problems or would like to see changes currently in development you can do so
[here](https://github.com/NotNinja/eslint-config-notninja/issues).
## Contributors
If you want to contribute, you're a legend! Information on how you can do so can be found in
[CONTRIBUTING.md](https://github.com/NotNinja/eslint-config-notninja/blob/master/CONTRIBUTING.md). We want your
suggestions and pull requests!
A list of contributors can be found in
[AUTHORS.md](https://github.com/NotNinja/eslint-config-notninja/blob/master/AUTHORS.md).
## License
See [LICENSE.md](https://github.com/NotNinja/eslint-config-notninja/raw/master/LICENSE.md) for more information on our
MIT license.
[](https://not.ninja)