This is the ESLint config used by the Invenio team.
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-eslintThe base config. You always want this when using this package.
Requires eslint-plugin-import
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.
extends:
- '@inveniosoftware/invenio'
- '@inveniosoftware/invenio/prettier'
parser: '@babel/eslint-parser'"@inveniosoftware/eslint-config-invenio/prettier-config"