Shareable eslint config for the PI-Webdesign projects.
First install all needed dependencies:
yarn add babel-eslint eslint eslint-plugin-ava eslint-plugin-jsdoc --dev
Then install the shareable config itself:
yarn add eslint-config-pidev --dev
The eslint shareable configs can be used with the extends
feature of .eslintrc
files.
Learn more about shareable configs on the official ESLint website.
To use the shareable config, first install it and then, add this to your .eslintrc.yml file:
extends: pidev
parser: babel-eslint
plugins:
- ava
- jsdoc
Note: You can omit the eslint-config-
prefix since it is automatically assumed by ESLint.
You can override settings from the shareable config by adding them directly into your
.eslintrc.yml
file.
For the full listing of rules visit the wiki.
MIT. Copyright © Pascal Iske.