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

eslint-plugin-es

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-plugin-es

ESLint plugin about ECMAScript syntactic features.

  • 4.1.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
4.2M
decreased by-5.93%
Maintainers
1
Weekly downloads
 
Created

What is eslint-plugin-es?

The eslint-plugin-es npm package is a plugin for ESLint that provides linting rules for ES2015+ (ES6+) code. It helps developers to follow best practices and avoid common pitfalls when writing modern JavaScript.

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

Linting for new syntax

This feature allows developers to enforce rules that prevent the use of certain ES2015+ syntax. In the code sample, the rule 'no-arrow-functions' is set to 'error', which means ESLint will report an error if an arrow function is used.

"rules": {
  "es/no-arrow-functions": "error"
}

Disallowing specific ES features

With this feature, developers can disallow the use of specific ES features that they do not want in their codebase. The code sample shows how to disallow template literals by setting the 'no-template-literals' rule to 'error'.

"rules": {
  "es/no-template-literals": "error"
}

Configurable rules for ES versions

This feature allows developers to configure ESLint to only allow features from certain versions of ECMAScript. In the code sample, all ES2015 features are disabled.

"settings": {
  "es": { "features": { "[ES2015]": false } }
}

Other packages similar to eslint-plugin-es

Keywords

FAQs

Package last updated on 19 Nov 2020

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