Socket
Book a DemoInstallSign in
Socket

@fixter/eslint-config-react

Package Overview
Dependencies
Maintainers
14
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
Package was removed
Sorry, it seems this package was removed from the registry

@fixter/eslint-config-react

Common eslint rules to use with all of our React projects

1.1.2
unpublished
latest
Source
npmnpm
Version published
Maintainers
14
Created
Source

@fixter/eslint-config-react

Common eslint rules to use with all of our React projects.

Install

npm i -D @fixter/eslint-config-react

Usage

.eslintrc

{
  "extends": ["@fixter/eslint-config-react"],
  "rules": {
    "no-eval": 0
  }
}

TypeScript & JavaScript in the same project

This config is mainly for TS and to have it working alonside JS add the following in .eslintrc:

"parser": "@typescript-eslint/parser",
"parserOptions": {
  "project": "./tsconfig.json"
},

Also if you want to customize some rules based on language add this:

"overrides": [
  {
    // disable TS rules for JS
    "files": ["**/*.js"],
    "parser": "@typescript-eslint/parser",
    "rules": {
      "@typescript-eslint/no-var-requires": "off"
    }
  }
]

Keywords

eslint

FAQs

Package last updated on 05 Dec 2023

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

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.