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

eslint-plugin-babel

Package Overview
Dependencies
Maintainers
10
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-plugin-babel

an eslint rule plugin companion to babel-eslint

  • 5.0.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
781K
increased by9.13%
Maintainers
10
Weekly downloads
 
Created

What is eslint-plugin-babel?

The eslint-plugin-babel package provides additional ESLint rules for Babel-specific syntax and features. It helps in linting code that uses Babel transformations, ensuring that the code adheres to best practices and coding standards.

What are eslint-plugin-babel's main functionalities?

babel/new-cap

This rule is similar to ESLint's core new-cap rule but ignores capitalized decorators and allows new operators with lowercase names.

module.exports = {
  "rules": {
    "babel/new-cap": 1
  }
};

babel/no-invalid-this

This rule is similar to ESLint's core no-invalid-this rule but considers class properties as well.

module.exports = {
  "rules": {
    "babel/no-invalid-this": 1
  }
};

babel/object-curly-spacing

This rule is similar to ESLint's core object-curly-spacing rule but can be used to enforce consistent spacing inside braces of object literals, destructuring assignments, and import/export specifiers.

module.exports = {
  "rules": {
    "babel/object-curly-spacing": ["error", "always"]
  }
};

babel/quotes

This rule is similar to ESLint's core quotes rule but allows for template literals.

module.exports = {
  "rules": {
    "babel/quotes": ["error", "single"]
  }
};

babel/semi

This rule is similar to ESLint's core semi rule but can be used to enforce or disallow semicolons.

module.exports = {
  "rules": {
    "babel/semi": ["error", "always"]
  }
};

Other packages similar to eslint-plugin-babel

Keywords

FAQs

Package last updated on 31 Mar 2018

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