https://github.com/codepunkt/eslint-config-react
opinionated ESLint configuration based on create-react-app that installs with all required dependencies
https://github.com/codepunkt/eslint-config-react
Last synced: 2 months ago
JSON representation
opinionated ESLint configuration based on create-react-app that installs with all required dependencies
- Host: GitHub
- URL: https://github.com/codepunkt/eslint-config-react
- Owner: codepunkt
- License: mit
- Created: 2020-08-24T07:19:06.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2022-02-17T10:05:05.000Z (over 3 years ago)
- Last Synced: 2025-03-22T18:43:41.654Z (3 months ago)
- Language: JavaScript
- Size: 68.4 KB
- Stars: 0
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# @codepunkt/eslint-config-react
This package includes a fork of the shareable ESLint configuration used by [Create React App](https://github.com/facebook/create-react-app).
## Install
```sh
yarn add -D eslint @codepunkt/eslint-config-react
```Then create a file named `.eslintrc.js` with following contents in the root folder of your project:
```js
module.exports = {
extends: "react-app",
};
```That's it! You can override the settings from `eslint-config-react-app` by editing the `.eslintrc.json` file. Learn more about [configuring ESLint](http://eslint.org/docs/user-guide/configuring) on the ESLint website.
## Accessibility Checks
If you want to enable even more accessibility rules, you can create an `.eslintrc.js` file in the root of your project with this content:
```js
module.exports = {
extends: ["react-app", "plugin:jsx-a11y/recommended"],
plugins: ["jsx-a11y"],
};
```