README
🃏 eslint-config-ruppy-jest
Ruppy's eslint extension configs for Jest environments
Description
This eslint configurations is the extension of ruppy-configs for jest environments.
ruppy-jest
This is the default configs. It contains recommended and style rules from plugin and, also personal preferences.
Usage
The easiest way to add this configs into project is running this commands in your root project:
npx eslint-ruppy -i
OR follow along these steps below:
This configs needs another config. This config only extension. Example use along with ruppy-react:
Install this configs and its peer dependencies.
yarn add -D eslint-config-ruppy-react eslint-config-ruppy-jest eslint prettier
or
npm install -D eslint-config-ruppy-react eslint-config-ruppy-jest eslint prettier
Create
.eslintrc.js
file in the root project and extends the configs. Also set the environment your project would live on.require("eslint-config-ruppy-react/patch"); module.exports = { extends: ["ruppy-react, ruppy-jest"], env: {}, };
An environment defines global variables that are predefined. See eslint configurations guide for available environments.
Optionally create prettier configuration file for the code styles,
.prettierrc
:{ "overrides": [ { "files": "*.{js,jsx,ts,tsx}", "options": { "singleQuote": true } } ] }
See all available prettier options and how to write configuration files to see more info on that.