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

eslint-plugin-hbs

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-plugin-hbs

Provide linting for hbs template literals inside of JavaScript

  • 1.0.3
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

eslint-plugin-hbs

Greenkeeper badge npm version Build Status

Provide linting for hbs template literals inside of JavaScript

Installation

You'll first need to install ESLint:

$ npm i eslint --save-dev

Next, install eslint-plugin-hbs:

$ npm install eslint-plugin-hbs --save-dev

Note: If you installed ESLint globally (using the -g flag) then you must also install eslint-plugin-hbs globally.

Usage

Add hbs to the plugins section of your .eslintrc configuration file. You can omit the eslint-plugin- prefix:

{
    "plugins": [
        "hbs"
    ]
}

Then configure the rules you want to use under the rules section.

{
  "rules": {
      "hbs/check-hbs-template-literals": 2
  }
}

or

  "rules": {
    'hbs/check-hbs-template-literals': [
      'error', 2,
      {'ConfigFile': __dirname + '/.eslint-template-lintrc.json'}
    ],
  }

The plugin will report the number of errors and the first line of the first error. Here's a running example. Left-hand side is the output of eslint from the command-line, right-hand side is vim running with eslint (via syntastic):

Example of in-use

Supported Rules

  • Fill in provided rules here

Keywords

FAQs

Package last updated on 17 Aug 2021

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