eslint-config-n8io
An opinionated eslint configuration for backend and frontend development.
Adding to your project
npm install -D eslint-config-n8io
- Add to your
.eslintrc
,.eslintrc.js
, or.eslintrc.json
{ "extends": [ ..., "n8io" ] }
Rule set definitions
eslint:recommended
rules?
How does this differ from the See the rules defined here: base.js
Rules cascade per the pseudo-code below.
n8io = Object.assign('eslint:recommended', 'n8io/base')
n8io/backend = Object.assign('eslint:recommended', './base', './backend')
n8io/frontend = Object.assign('eslint:recommended', './base', './frontend')
n8io/frontend-react = Object.assign('eslint:recommended', 'n8io/base', './frontend', './frontend-react')
Options
- For example, to use the
n8io/backend
rule set{ "extends": [ ..., "n8io/backend" ] }