New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@codepunkt/eslint-config-react

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@codepunkt/eslint-config-react

opinionated ESLint configuration based on create-react-app that installs with all required dependencies

latest
Source
npmnpm
Version
1.1.1
Version published
Maintainers
1
Created
Source

@codepunkt/eslint-config-react

This package includes a fork of the shareable ESLint configuration used by Create React App.

Install

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:

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 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:

module.exports = {
  extends: ["react-app", "plugin:jsx-a11y/recommended"],
  plugins: ["jsx-a11y"],
};

FAQs

Package last updated on 17 Feb 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts