eslint-plugin-polymer

0.4.0 • Public • Published

eslint-plugin-polymer

eslint-plugin-polymer

Recommended Eslint configs for Polymer

Installation

You'll first need to install ESLint:

$ npm i eslint --save-dev

Next, install eslint-plugin-polymer:

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

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

Usage

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

Polymer 3

{
  "extends": ["plugin:polymer/polymer-3"],
  "plugins": ["polymer"]
}

Polymer 2

{
  "extends": ["plugin:polymer/polymer-2"],
  "plugins": ["polymer"]
}

Polymer 1

{
  "extends": ["plugin:polymer/polymer-1"],
  "plugins": ["polymer"]
}

Package Sidebar

Install

npm i eslint-plugin-polymer

Weekly Downloads

15

Version

0.4.0

License

Apache-2.0

Unpacked Size

76.6 kB

Total Files

7

Last publish

Collaborators

  • stramel89