Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/comcast/eslint-plugin-polymer-components

Polymer specific linting rules for ESLint
https://github.com/comcast/eslint-plugin-polymer-components

eslint eslint-plugin polymer

Last synced: 2 months ago
JSON representation

Polymer specific linting rules for ESLint

Awesome Lists containing this project

README

        

# eslint-plugin-polymer-components

Polymer specific linting rules for ESLint

## Installation

You'll first need to install [ESLint](http://eslint.org):

```
$ npm i eslint --save-dev
```

Next, install `eslint-plugin-polymer-components`:

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

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

## Usage

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

```json
{
"plugins": [
"polymer-components"
]
}
```

Then configure the rules you want to use under the rules section.

```json
{
"rules": {
"polymer-components/sort-comp": "error"
}
}
```

## Supported Rules

* [polymer-components/sort-comp](docs/rules/sort-comp.md): Enforce component methods order