@inveniosoftware/eslint-config-invenio

1.0.12 • Public • Published

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:
  - '@inveniosoftware/invenio'
  - '@inveniosoftware/invenio/prettier'

parser: '@babel/eslint-parser'

Example .prettierrc

"@inveniosoftware/eslint-config-invenio/prettier-config"

Package Sidebar

Install

npm i @inveniosoftware/eslint-config-invenio

Weekly Downloads

826

Version

1.0.12

License

MIT

Unpacked Size

7.23 kB

Total Files

8

Last publish

Collaborators

  • invenio
  • lnielsen
  • ntarocco
  • slint