@mhirba/eslint-config-react
Summary
Overview
A Node.js ESLint configuration for Mhirba source code.
L'exception vient toujours de la raison de la règle. _ Joseph Joubert
Installation
Use Yarn or NPM to install.
❯ yarn add --dev @mhirba/eslint-config-react
or
❯ npm install --save-dev @mhirba/eslint-config-react
Usage
Simple. Basic.
Extends your specific ESLint configuration and add your rules; For example in an .eslintrc.js
file:
module.exports = {
extends: '@mhirba/react',
globals: {
iWantThisGlobal: true
},
rules: {
"react/jsx-uses-react": "error",
"react/jsx-uses-vars": "error",
}
Credits
Craft with