1.1.0 • Published 3 years ago

@yayforms/eslint-config v1.1.0

Weekly downloads
-
License
LGPL-3.0-only
Repository
github
Last release
3 years ago

eslint-config

ESLint configuration for Yay! Forms front-end projects

Install

yarn add eslint @yayforms/eslint-config --dev

Usage

If you want to use the default configuration, you can simply create a .eslintrc.js file (or alternatives) with the following content:

module.exports = {
  extends: ['@yayforms/eslint-config'],
}

And run with:

yarn eslint . --fix

Using with prettier

If your codebase uses prettier for styles formatting, you can override default standard rules updating your eslint config:

module.exports = {
  extends: ['@yayforms/eslint-config', 'prettier', 'prettier/react', 'plugin:prettier/recommended'],
}

and installing eslint-plugin-prettier:

yarn add --dev eslint-plugin-prettier