A ESLint plugin for Closure Library
Use npm or a compatibility tool to install.
$ npm install --save-dev eslint eslint-plugin-closure-library
- Node.js v8.10.0 or newer versions.
- ESLint v5.16.0 or newer versions.
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.
closure-library/recommended
... enables the recommended rules.
Rule ID | Description | |
---|---|---|
closure-library/no-deprecated-apis | A rule to forbid use of deprecated methods. | ⭐️✒️ |
closure-library/prefer-native-array-methods | Suggest using native Arary methods instead apis Closure Library provides | ⭐️✒️ |
This plugin follows Semantic Versioning and ESLint's Semantic Versioning Policy.
Welcome your contribution!
See also ESLint Contribution Guide.
npm test
runs tests and measures coverage.npm version <TYPE>
updates the package version. And it updateslib/configs/recommended.js
,lib/index.js
, andREADME.md
's rule table. See also npm version CLI command.npm run add-rule <RULE_ID>
creates three files to add a new rule.