An eslint config for Uswitch
Install
npm install @uswitch/eslint-config
Add to .eslintrc
{
"extends": [ "@uswitch" ]
}
or in package.json
"eslintConfig": {
"extends": [ "@uswitch" ]
}
You will need the peer dependencies, easiest is to add the following to your project's dependencies
in package.json and then npm install
"eslint": ">=6",
"eslint-plugin-flowtype": "^4.7.0",
"eslint-plugin-import": "^2.20.2",
"eslint-plugin-jest": "^23.8.2",
"eslint-plugin-jsx-a11y": "^6.2.3",
"eslint-plugin-jsx-control-statements": "^2.2.1",
"eslint-plugin-no-secrets": "^0.6.5",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-prettier": "^3.1.3",
"eslint-plugin-promise": "^4.2.1",
"eslint-plugin-react": "^7.19.0",
"eslint-plugin-react-hooks": "^3.0.0",
"eslint-plugin-security": "^1.4.0",
"eslint-plugin-standard": "^4.0.1",
"eslint-plugin-unicorn": "^18.0.1",
"eslint-plugin-you-dont-need-momentjs": "^1.6.0",
"prettier": "^2.0.4"