Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/stramel/eslint-plugin-polymer
Recommended Eslint configs for Polymer
https://github.com/stramel/eslint-plugin-polymer
eslint eslint-config eslint-plugin polymer polymer2
Last synced: 12 days ago
JSON representation
Recommended Eslint configs for Polymer
- Host: GitHub
- URL: https://github.com/stramel/eslint-plugin-polymer
- Owner: stramel
- License: apache-2.0
- Created: 2017-07-27T19:41:54.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-02-26T19:25:55.000Z (over 5 years ago)
- Last Synced: 2024-10-15T00:21:55.647Z (24 days ago)
- Topics: eslint, eslint-config, eslint-plugin, polymer, polymer2
- Language: JavaScript
- Homepage:
- Size: 57.6 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# eslint-plugin-polymer
[![eslint-plugin-polymer](https://img.shields.io/npm/v/eslint-plugin-polymer.svg?style=flat-square)](https://www.npmjs.com/package/eslint-plugin-polymer)
Recommended Eslint configs for Polymer
## Installation
You'll first need to install [ESLint](http://eslint.org):
```
$ 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
```json
{
"extends": ["plugin:polymer/polymer-3"],
"plugins": ["polymer"]
}
```### Polymer 2
```json
{
"extends": ["plugin:polymer/polymer-2"],
"plugins": ["polymer"]
}
```### Polymer 1
```json
{
"extends": ["plugin:polymer/polymer-1"],
"plugins": ["polymer"]
}
```