Skip to content

Latest commit

 

History

History
48 lines (33 loc) · 1.64 KB

README.md

File metadata and controls

48 lines (33 loc) · 1.64 KB

eslint-plugin-ember-observer

Eslint rules used for static analysis for emberobserver.com, so you probably don't want to enable these in your own project!

Installation

npm install eslint-plugin-ember-observer --save-dev

Usage

Add ember-observer to the plugins section of your .eslintrc configuration file. You can omit the eslint-plugin- prefix:

{
    "plugins": [
        "ember-observer"
    ]
}

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

{
    "rules": {
        "ember-observer/rule-name": 2
    }
}

Rules

Name                  Description
has-maybe-embroider Require maybeEmbroider function imported and called in ember-cli-build.js
no-ember-components indicate the usage of Ember Components
no-glimmer-components indicates use of glimmer components
no-jquery-integration disallow any usage of jQuery integration
no-tracked indicate the use of @tracked