Experimental. Several rules for ember-addons.
Several rules for ember-addons:
You'll first need to install ESLint:
$ 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.
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"
]
}
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 |