This package provides LabKey's base JS ESLint configuration with React plugins as an extensible shared config.
See the CHANGELOG for changes in this version.
Install @labkey/eslint-config-base
first then continue below.
$ npm install --save-dev --save-exact @labkey/eslint-config-react
You'll need to also install all of the dependencies. On OSX or Linux, you can use this snippet to install all of the dependencies:
$ npm info @labkey/eslint-config-react peerDependencies --json | command sed 's/[\{\},]//g ; s/: /@/g' | xargs npm install --save-dev --save-exact --dry-run
When you have inspected the output, you can remove the --dy-run
flag to actually perform the install.
Create an .eslintrc.json file with the following contents
{
"extends": "@labkey/eslint-config-react"
}
For more information on configuring and using es-lint, refer to the README for eslint-config-base.
Look into including eslint-config-react-redux