Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@jetbrains/eslint-config

Package Overview
Dependencies
Maintainers
0
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@jetbrains/eslint-config

JetBrains config for ESLint

  • 6.0.4
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
0
Created
Source

JetBrains config for ESLint

official JetBrains project

Package contents

@jetbrains basic and style rules
@jetbrains/eslint-config/base basic rules
@jetbrains/eslint-config/style style rules
@jetbrains/eslint-config/browser browser rules and environment
@jetbrains/eslint-config/es6 ES6 rules and environment, including eslint-plugin-import
@jetbrains/eslint-config/node Node.js rules and environment
@jetbrains/eslint-config/react rules for eslint-plugin-react, eslint-plugin-react-hooks, and eslint-plugin-jsx-a11y
@jetbrains/eslint-config/angular rules for eslint-plugin-angular
@jetbrains/eslint-config/test mocha, chai, sinon rules and environment, including eslint-plugin-bdd

Installation

  1. Install ESLint if it is not yet installed in your project: npm install eslint
  2. Install JetBrains' config package: npm install @jetbrains/eslint-config
  3. JetBrains' configuration doesn't implicitly install plugins it uses. This approach lets you specify what exactly version you'd like to use. You need to install these peer dependencies, if they are not yet installed in your project: npm install eslint-import-resolver-webpack eslint-plugin-angular @vitest/eslint-plugin eslint-plugin-import eslint-plugin-jsx-a11y eslint-plugin-react eslint-plugin-react-hooks

Usage example

{
  "parser": "babel-eslint",
  "extends": [
    "@jetbrains",
    "@jetbrains/eslint-config/browser",
    "@jetbrains/eslint-config/es6",
    "@jetbrains/eslint-config/node",
    "@jetbrains/eslint-config/react",
    "@jetbrains/eslint-config/angular",
    "@jetbrains/eslint-config/test"
  ]
}

Usage with Prettier

If you're using this ESLint config with Prettier, make sure that you disable the arrow-body-style rule in the ESLint config, because it conflicts with Prettier rules:

"rules": {
  "arrow-body-style": "off"
}

Note to maintainers: to trigger publishing of the npm package append [Publish] to the commit message. For example:

Tweaked the rules [Publish]

Keywords

FAQs

Package last updated on 25 Oct 2024

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

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc