@paciolan/eslint-config
v1.5.0
Published
Paciolan ESLint default settings with Prettier.
Downloads
18,489
Maintainers
Readme
@paciolan/eslint-config
Paciolan ESLint default settings with Prettier.
Install
# Install @paciolan/eslint-config
npm install -D @paciolan/eslint-config
# Install Peer Dependencies
npm install -D eslint@5 prettier eslint-plugin-prettier eslint-config-prettier
Create an .eslintrc.yml
file:
extends: ["@paciolan"]
Add a lint
script in package.json
:
{
"scripts": {
"lint": "eslint ."
}
}
Rules
- "prettier/prettier": "error"
- "no-unused-vars": "error"
- "no-undef": "error"
- "max-lines-per-function": ["warn", 20]
Contributors
Joel Thoms (@joelnet)