项目作者: stramel

项目描述 :
Recommended Eslint configs for Polymer
高级语言: JavaScript
项目地址: git://github.com/stramel/eslint-plugin-polymer.git
创建时间: 2017-07-27T19:41:54Z
项目社区:https://github.com/stramel/eslint-plugin-polymer

开源协议:Apache License 2.0

下载


eslint-plugin-polymer

eslint-plugin-polymer

Recommended Eslint configs for Polymer

Installation

You’ll first need to install ESLint:

  1. $ npm i eslint --save-dev

Next, install eslint-plugin-polymer:

  1. $ 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

  1. {
  2. "extends": ["plugin:polymer/polymer-3"],
  3. "plugins": ["polymer"]
  4. }

Polymer 2

  1. {
  2. "extends": ["plugin:polymer/polymer-2"],
  3. "plugins": ["polymer"]
  4. }

Polymer 1

  1. {
  2. "extends": ["plugin:polymer/polymer-1"],
  3. "plugins": ["polymer"]
  4. }