ntarocco / eslint-config-invenio

ESLint config/preset for Invenio modules

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Invenio ESLint config

This is the ESLint config used by the Invenio team.

Installation

npm install --save-dev eslint-config-invenio
# if you use prettier
npm install --save-dev prettier eslint-plugin-prettier 
# if you use babel
npm install --save-dev eslint-plugin-babel babel-eslint

Presets

invenio

The base config. You always want this when using this package.
Requires eslint-plugin-import

invenio/prettier

Enables prettier integration.
Requires prettier, eslint-config-prettier and eslint-plugin-prettier
Make sure to load this after all other invenio/* presets.

For convenience, we also include a prettier config, that can be loaded by putting "eslint-config-invenio/prettier-config" in your .prettierrc.

Example .eslintrc.yml

extends:
  - 'invenio'
  - 'invenio/prettier'

env:
  browser: true
  es6: true

About

ESLint config/preset for Invenio modules

License:Other


Languages

Language:JavaScript 100.0%