An ESLint Shareable Config for Javascript based projects
Extends the base configuration and includes some React rules. For projects using React.
Use the package manager npm or yarn to install it.
Peer dependencies need to be installed in order to make it work properly
"eslint": "^6.3.0"
"prettier": "^1.18.2"
"typescript": "^3.6.3"
"eslint-plugin-prettier": "^3.1.0"
"@typescript-eslint/eslint-plugin": "^2.12.0"
"eslint-plugin-jest": "^22.17.0"
"eslint-plugin-react": "^7.14.3"
After that you should install the plugin without any problem
yarn add -D @the-unicorns/eslint-config-react
Once the @the-unicorns/eslint-config-react
package is installed, you can use it by specifying @the-unicorns/eslint-config-react
in the extends
section of your ESLint configuration.
{
"extends": "@the-unicorns/eslint-config-react",
"rules": {
// Additional, per-project rules...
}
}
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.