ESLint shareable config for JavaScript 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-tc
eslint, eslint-plugin-import, eslint-plugin-jest, eslint-plugin-prettier, eslint-plugin-unicorn, and prettier are peer dependencies and must be installed.
Add the following to your .eslintrc.json
file:
{
"extends": "eslint-config-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-tc",
"rules": {
"eqeqeq": "off"
}
}
Please see CONTRIBUTING.md.
Please see CHANGELOG.md.
Copyright (c) 2016-2023 Thomas Lindner. Licensed under the MIT license.