This package provides an eslint-config with mostly recommended rules. It already includes prettier configuration.
Install with yarn or npm:
# Yarn
$ yarn add --dev @element-gaming/eslint-config
# Npm
$ npm install --save-dev @element-gaming/eslint-config
If you don't have those already, install peer dependencies:
# Yarn
$ yarn add --dev eslint eslint-config-prettier eslint-plugin-import eslint-plugin-prettier prettier
# Npm
$ npm install --save-dev eslint eslint-config-prettier eslint-plugin-import eslint-plugin-prettier prettier
Extend this config in your .eslintrc
file:
{
"extends": "@element-gaming/eslint-config"
}