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": "^7",
"eslint-plugin-flowtype": "^5",
"eslint-plugin-import": "^2",
"eslint-plugin-jest": "^24",
"eslint-plugin-jsx-a11y": "^6",
"eslint-plugin-jsx-control-statements": "^2",
"eslint-plugin-no-secrets": "^0.8",
"eslint-plugin-node": "^11",
"eslint-plugin-prettier": "^3",
"eslint-plugin-promise": "^4",
"eslint-plugin-react": "^7",
"eslint-plugin-react-hooks": "^4",
"eslint-plugin-security": "^1",
"eslint-plugin-standard": "^5",
"eslint-plugin-unicorn": "^28",
"eslint-plugin-you-dont-need-momentjs": "^1",
"prettier": "^2"