Custom ESLint configuration for projects. It extends popular Airbnb ESLint config and other popular configs in one place.
npm install --save-dev @msobiecki/eslint-config
Make sure to install the necessary peer dependencies as well:
npm install --save-dev eslint prettier
To use this ESLint configuration, you need to extend it in your project's .eslintrc
file:
{
"extends": "@msobiecki/eslint-config"
}
{
"extends": [
"@msobiecki/eslint-config/react",
"@msobiecki/eslint-config/react-jsx"
]
}
{
"extends": ["@msobiecki/eslint-config/next"]
}
{
"extends": ["@msobiecki/eslint-config/node"]
}
{
"extends": ["@msobiecki/eslint-config/jest"]
}
{
"extends": [
"@msobiecki/eslint-config/jest",
"@msobiecki/eslint-config/jest-dom"
]
}
{
"extends": [
"@msobiecki/eslint-config/jest",
"@msobiecki/eslint-config/jest-react"
]
}
{
"extends": ["@msobiecki/eslint-config/best-practice"]
}
If you have an existing ESLint configuration, you can merge it with this configuration using the extends
property:
{
"extends": ["@msobiecki/eslint-config", "your-existing-config"]
}
This project is licensed under the MIT License. See the LICENSE file for more details.
Feel free to contribute to this repository by opening issues or submitting pull requests. Happy coding!