New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

lfeslint

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lfeslint

Livefyre ES Linter

  • 1.3.3
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
8
increased by300%
Maintainers
1
Weekly downloads
 
Created
Source

LFESLINT

Overview

Linter for Livefyre Javascript projects

Install

Drop it into your package.json

or install via npm install git+ssh://git@github.com/Livefyre/lfeslint.git

Usage

Running lfeslint will run the linter recurisvely in the current directory. It will skip certain directories by default.

To run on a certain path

lfeslint ./src

Command line options

-e  --env       Environment prefixes: browser, mocha, node, commonjs, es6 (defaults to all)
-F  --fix       Automatically fix some issues
-f  --formatter Output results as different format types
-g  --global    Declare global variable
-v  --version   Show current version
-h, --help      Show usage information
-i, --ignore    Ignore certain paths

Ignoring Files

Certain paths - including node_modules/** and *.min.js - are ignored by default.

To add more directories to ignore, place the following in your package.json

"lfeslint": {
  "ignore": [
    "**/out/**",
    "**/lib/select2/**",
    "**/lib/ckeditor/**"
  ]
}

Hiding Warnings

This project uses ESlint. All of the ESlint directives will work - for example: /*eslint-disable*/

Defining Globals in a project's package.json

Certain projects will need globals present to operate correctly.

{
  "lfeslint": {
    "global": ["var1", "Q"]
  }
}

Configuring environments

A complete list of available environments can be found in the Specifying Environments section of the ESLint docs.

{
  "lfeslint": {
    "env": ["mocha", "es6"]
  }
}

Choosing a formatter

A complete list of available formatters can be found in the ESLint Formatters section of the ESLint docs

FAQs

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