1.1.0 • Published 4 years ago
@nqminds/eslint-config-react v1.1.0
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-reactPeer 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-mochaUsage
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"]
};