# eslint-plugin-ember-rules

> A set of ESLint rules for Ember applications

Latest version **0.1.0** (published 2016-07-20) · ISC license · 0 weekly downloads

## Install

```sh
npm install eslint-plugin-ember-rules
pnpm add eslint-plugin-ember-rules
yarn add eslint-plugin-ember-rules
bun add eslint-plugin-ember-rules
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.0 |
| Published | 2016-07-20 |
| First published | 2016-06-24 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=0.10.0 |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Mitch Lloyd |
| Maintainers | mitchlloyd |
| Keywords | eslint, eslintplugin, eslint-plugin |

## Links

- npm: https://www.npmjs.com/package/eslint-plugin-ember-rules
- npm.io page: https://npm.io/package/eslint-plugin-ember-rules

## Dependencies (1)

- [requireindex](https://npm.io/package/requireindex.md) ~1.1.0

## Alternatives

- [eslint-plugin-sonarjs](https://npm.io/package/eslint-plugin-sonarjs.md) — 2.9M weekly downloads
- [eslint-config-expo](https://npm.io/package/eslint-config-expo.md) — 1.5M weekly downloads
- [@matter/protocol](https://npm.io/package/@matter/protocol.md) — 63.5K weekly downloads
- [@eventcatalog/linter](https://npm.io/package/@eventcatalog/linter.md) — 24.8K weekly downloads
- [@inrupt/eslint-config-base](https://npm.io/package/@inrupt/eslint-config-base.md) — 4.5K weekly downloads

## Recent versions

- 0.1.0 (latest) — 2016-07-20
- 0.0.1 — 2016-06-24

## README

# eslint-plugin-ember-rules

A set of ESLint rules for Ember applications.

[![Build Status](https://travis-ci.org/201-created/eslint-plugin-ember-rules.svg?branch=master)](https://travis-ci.org/201-created/eslint-plugin-ember-rules)

## Installation

You'll first need to install [ESLint](http://eslint.org):

```
$ npm i eslint --save-dev
```

Next, install `eslint-plugin-ember-rules`:

```
$ npm install eslint-plugin-ember-rules --save-dev
```

**Note:** If you installed ESLint globally (using the `-g` flag) then you must also install `eslint-plugin-ember-rules` globally.

## Usage

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

```json
{
    "plugins": [
        "ember-rules"
    ]
}
```

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

```json
{
    "rules": {
        "ember-rules/destructure-namespaces": [2, ["Ember", "DS"]]
    }
}
```

## Supported Rules

* `destructure-namespaces` - Ensure that properties from the configured
  namespaces are assigned to variables before they are used.

* `no-function-prototype-extension-calls` - Prevent the use of Ember's methods
  `property`, `observes`, and `observesBefore` which are added to the function
  prototype. A common example of a violation would be this deprecated syntax:

  ```javascript
  Ember.Object.extend({
    name: function() {
      return this.get('firstName') + this.get('lastName');
    }.property('firstName', 'lastName')
  })
  ```

---
_Source: https://npm.io/package/eslint-plugin-ember-rules · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
