tclindner / eslint-config-react-tc

ESLint shareable config for React projects

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

eslint-config-react-tc

ESLint shareable config for React projects

license npm ci

What is eslint-config-react-tc?

Shared configuration for ESLint. Follow the instructions below to easily include this configuration in another project without having to duplicate the file!

How do I install it?

First thing first, let's make sure you have the necessary pre-requisites.

System Dependencies

Node

Command

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.

Usage

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"
	}
}

Related

Contributing

Please see the CONTRIBUTING.md file for more information.

Change Log

Please see the CHANGELOG.md for more information.

License

Copyright (c) 2018-2023 Thomas Lindner. Licensed under the MIT license.

About

ESLint shareable config for React projects

License:MIT License


Languages

Language:JavaScript 100.0%