0.1.1 • Published 6 years ago

eslint-plugin-ember-addons v0.1.1

Weekly downloads
-
License
MIT
Repository
-
Last release
6 years ago

eslint-plugin-ember-addons

Build Status npm version License Downloads

Several rules for ember-addons:

Installation

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.

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

RuleDescription
i18n-t-file-formatChecks translations-json format
i18n-t-files-eqChecks that translation-jsons match default one
page-object-exportsCheck export for each page-object
page-object-matchCheck if page or component for page-object exists