ESLint shareable config for React projects
MIT License
ESLint shareable config for React projects
Shared configuration for ESLint. Follow the instructions below to easily include this configuration in another project without having to duplicate the file!
First thing first, let's make sure you have the necessary pre-requisites.
npx install-peerdeps --dev eslint-config-react-tc
eslint, eslint-config-tc eslint-plugin-import, eslint-plugin-prettier, eslint-plugin-react, eslint-plugin-jsx-a11y, and prettier are peer dependencies and must be installed.
This module works best when paired with eslint-config-tc
. Please follow it's install instructions.
Add the following to your .eslintrc.json
file:
{
"extends": "eslint-config-react-tc"
}
If you need to override a rule, your .eslintrc.json
file should look like the example below. All shared rules will be used, but eqeqeq
will be turned off.
{
"extends": "eslint-config-react-tc",
"rules": {
"react/display-name": "off"
}
}
Please see the CONTRIBUTING.md file for more information.
Please see the CHANGELOG.md for more information.
Copyright (c) 2018-2023 Thomas Lindner. Licensed under the MIT license.