eslint-config-node-moar
v1.0.5
Published
The linter config for people who do not want to be standard.
Downloads
19
Readme
A strict and complete ESLint configuration
An ESLint Shareable Config that includes this plugins and enforces reccomended:
extends: [
'eslint:recommended',
'plugin:node/recommended',
'plugin:promise/recommended',
'plugin:security/recommended',
'plugin:sonarjs/recommended',
],
And then defines:
- a quite strict and opinionated rule set
- formatting rules - no need for prettier
- errors as errors, and warnings as warnings.
- As in: if it does break it, it's an error. If it's a convention, it's a warning.
Why -moar? Because -strict was already taken and -more is boring.
Basic usage
Install all the dependencies:
yarn add -D eslint eslint-config-node-moar eslint-plugin-node eslint-plugin-security eslint-plugin-sonarjs
Create your own .eslintrc.js
:
module.exports = {
extends: [
'node-moar',
],
}
Or use this one-liner:
echo "extends: ['node-moar']" > .eslintrc.yml
Get... moar :)
Part of the family are: