🚀 DAY 5 OF LAUNCH WEEK:Introducing Webhook Events for Alert Changes.Learn more →
Socket
Book a DemoInstallSign in
Socket

eslint-plugin-fixclosure

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-plugin-fixclosure

this is a eslint plugin for fixclosure

latest
npmnpm
Version
1.0.1
Version published
Maintainers
1
Created
Source

eslint-plugin-fixclosure

this is a eslint plugin for fixclosure.

Installation

You'll first need to install ESLint and fixclosure:

$ npm i eslint fixclosure --save-dev

Next, install eslint-plugin-fixclosure:

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

Usage

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

{
    "plugins": [
        "fixclosure"
    ]
}

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

{
    "rules": {
        "fixclosure/fixclosure": "error"
    }
}

Supported Rules

fixclosure/fixclosure

A rule to test whether the code is compatible with fixclosure or not.

This rule supports --fix option, so you no longer write goog.require(...) manually :rocket:

You can pass the following options to fixclosure.

  • depsJs
    • deps.js files, which is a comma separated list.
  • config
    • a path for .fixclosurerc.
  • provideRoots
    • root namespaces you use.
  • useForwardDeclare
    • Use goog.forwardDeclare() instead of goog.requireType()

You can see the details on the documentation of fixclosure.

https://github.com/teppeis/fixclosure#options

Keywords

eslint

FAQs

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