@nqminds/eslint-config-react
v1.1.0
Published
Common eslint config for nqminds react projects
Downloads
10
Readme
nquiringminds eslint config react
This config provides a minimum set of linting rules that react nqminds code should conform to.
Please see @nqminds/eslint-config
for linting rules designed for
all Javascript code, or just Node.JS code.
Installation
npm i --save-dev @nqminds/eslint-config-react
Peer dependencies
If you do not already have the following as dev dependencies you will be prompted to install them when you run npm i
:
npm i --save-dev eslint eslint-plugin-react eslint-plugin-babel eslint-plugin-promise eslint-plugin-mocha
Usage
In the root of your project add an .eslintrc.js
with the following content:
module.exports = {
extends: "@nqminds/eslint-config-react"
};
If your code is running both client-side code, and server-side code,
you can combine both @nqminds/eslint-config
and ``@nqminds/eslint-config-react`:
module.exports = {
extends: ["@nqminds/eslint-config", "@nqminds/eslint-config-react"]
};