As compiled by the Exeter Office. There are 2 configs.
- One for general JS, the default
@arago/eslint-config-arago
- One for React projects with JSX,
@arago/eslint-config-arago/react
It is also expected that files are formatted to the rules set out by https://github.com/prettier/prettier
npm install --save-dev arago/eslint-config-arago
then follow the prompts.
Add to package.json
under devDependencies
and eslint
...
"devDependencies": {
"@arago/eslint-config-arago": "arago/eslint-config-arago#master",
"babel-eslint": "x.y.z",
"eslint": "x.y.z"
},
...
"eslintConfig": {
"extends": "@arago/eslint-config-arago(|/react)"
}