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

hermes-eslint

Package Overview
Dependencies
Maintainers
3
Versions
42
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hermes-eslint

A custom parser for ESLint using the Hermes parser

  • 0.7.0
  • npm
  • Socket score

Version published
Weekly downloads
109K
increased by1.61%
Maintainers
3
Weekly downloads
 
Created
Source

hermes-eslint

A custom parser for ESLint built from the Hermes engine's parser compiled to WebAssembly. The Hermes parser supports ES6, Flow, and JSX syntax, which are parsed into an ESTree AST and then analyzed to determine scope information in a format that can be consumed by ESLint.

Usage

The hermes-eslint package is a custom parser for ESLint. To use hermes-eslint as the parser for ESLint in your project you must specify "hermes-eslint" as the "parser" in your ESLint configuration file:

.eslintrc

{
  "parser": "hermes-parser"
}

The ESLint documentation provides more information about how to configure ESLint, including how to specify a custom parser.

Options

You may provide additional configuration for hermes-eslint by passing an object containing configuration options as the "parserOptions" in your ESLint configuration file. This object may contain the following properties:

  • sourceType: "module" or "script", defaults to "module"

.eslintrc

{
  "parser": "hermes-parser",
  "parserOptions": {
    "sourceType": "module"
  }
}

FAQs

Package last updated on 19 Apr 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

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