Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/onechiporenko/eslint-plugin-ember-addons
Experimental. Several rules for ember-addons.
https://github.com/onechiporenko/eslint-plugin-ember-addons
emberjs eslint eslint-plugin
Last synced: 1 day ago
JSON representation
Experimental. Several rules for ember-addons.
- Host: GitHub
- URL: https://github.com/onechiporenko/eslint-plugin-ember-addons
- Owner: onechiporenko
- Created: 2017-12-20T17:57:17.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2024-09-07T11:36:05.000Z (26 days ago)
- Last Synced: 2024-09-07T12:46:09.916Z (26 days ago)
- Topics: emberjs, eslint, eslint-plugin
- Language: JavaScript
- Homepage:
- Size: 21.5 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# eslint-plugin-ember-addons
[![Build Status](https://travis-ci.org/onechiporenko/eslint-plugin-ember-addons.svg?branch=master)](https://travis-ci.org/onechiporenko/eslint-plugin-ember-addons)
[![npm version](https://badge.fury.io/js/eslint-plugin-ember-addons.png)](http://badge.fury.io/js/eslint-plugin-ember-addons)
[![License](http://img.shields.io/:license-mit-blue.svg)](http://doge.mit-license.org)
[![Downloads](http://img.shields.io/npm/dm/eslint-plugin-ember-addons.svg)](https://www.npmjs.com/package/eslint-plugin-ember-addons)Several rules for ember-addons:
* [ember-cli-page-object](https://github.com/san650/ember-cli-page-object)
* [ember-i18n](https://github.com/jamesarosen/ember-i18n)## Installation
You'll first need to install [ESLint](http://eslint.org):
```
$ npm i eslint --save-dev
```Next, install `eslint-plugin-ember-addons`:
```
$ npm install eslint-plugin-ember-addons --save-dev
```**Note:** If you installed ESLint globally (using the `-g` flag) then you must also install `eslint-plugin-ember-addons` globally.
## Usage
Add `ember-addons` to the plugins section of your `.eslintrc` configuration file. You can omit the `eslint-plugin-` prefix:
```json
{
"plugins": [
"ember-addons"
],
"extends": [
"eslint:recommended",
"plugin:ember-addons/recommended"
]
}
```## Supported Rules
| Rule | Description |
|----- | ------------|
| [i18n-t-file-format](./docs/rules/i18n-t-file-format.md)| Checks translations-json format |
| [i18n-t-files-eq](./docs/rules/i18n-t-files-eq.md) | Checks that translation-jsons match default one |
| [page-object-exports](./docs/rules/page-object-exports.md) | Check `export` for each page-object |
| [page-object-match](./docs/rules/page-object-match.md) | Check if page or component for page-object exists |