0.1.1 • Published 8 years ago
eslint-plugin-ember-addons v0.1.1
eslint-plugin-ember-addons
Several rules for ember-addons:
Installation
You'll first need to install ESLint:
$ npm i eslint --save-devNext, install eslint-plugin-ember-addons:
$ npm install eslint-plugin-ember-addons --save-devNote: 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:
{
"plugins": [
"ember-addons"
],
"extends": [
"eslint:recommended",
"plugin:ember-addons/recommended"
]
}Supported Rules
| Rule | Description |
|---|---|
| i18n-t-file-format | Checks translations-json format |
| i18n-t-files-eq | Checks that translation-jsons match default one |
| page-object-exports | Check export for each page-object |
| page-object-match | Check if page or component for page-object exists |
