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

eslint-plugin-closure-library

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-plugin-closure-library

A ESlint plugin for Closure Library

latest
Source
npmnpm
Version
0.2.0
Version published
Maintainers
1
Created
Source

eslint-plugin-closure-library

npm version Build Status Dependency Status

A ESLint plugin for Closure Library

Installation

Use npm or a compatibility tool to install.

$ npm install --save-dev eslint eslint-plugin-closure-library

Requirements

  • Node.js v8.10.0 or newer versions.
  • ESLint v5.16.0 or newer versions.

Usage

Write your config file such as .eslintrc.yml.

plugins:
  - closure-library
rules:
  closure-library/no-deprecated-apis: error
  closure-library/prefer-native-array-methods: error

or

extends: closure-library/recommended

See also Configuring ESLint.

Configs

  • closure-library/recommended ... enables the recommended rules.

Rules

Best Practices

Rule IDDescription
closure-library/no-deprecated-apisA rule to forbid use of deprecated methods.⭐️✒️
closure-library/prefer-native-array-methodsSuggest using native Arary methods instead apis Closure Library provides⭐️✒️

Semantic Versioning Policy

This plugin follows Semantic Versioning and ESLint's Semantic Versioning Policy.

Changelog

Contributing

Welcome your contribution!

See also ESLint Contribution Guide.

Development Tools

  • npm test runs tests and measures coverage.
  • npm version <TYPE> updates the package version. And it updates lib/configs/recommended.js, lib/index.js, and README.md's rule table. See also npm version CLI command.
  • npm run add-rule <RULE_ID> creates three files to add a new rule.

Keywords

eslint

FAQs

Package last updated on 22 Jun 2019

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