Détail du package

eslint-plugin-ember-internal

emberjs9.1kMIT3.0.0

Rules used internally by Ember.js

eslint, eslintplugin, eslint-plugin, ember

readme

eslint-plugin-ember-internal

NPM version

Rules used internally by Ember.js

Installation

You'll first need to install ESLint:

npm i eslint --save-dev

Next, install eslint-plugin-ember-internal:

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

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

Usage

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

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

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

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

Rules

🔧 Automatically fixable by the --fix CLI option.

Name Description 🔧
no-const-outside-module-scope disallow const from being used outside of the module scope (e.g. in functions) 🔧
no-empty-yuidoc-code-blocks disallow empty code blocks in YUIDoc comments
require-yuidoc-access require that every YUIDoc comment has @public, @protected or @private declared
require-yuidoc-code-block-type require that every code blocks in YUIDoc comments has a type associated

Related

License

eslint-plugin-ember-internal is licensed under the MIT License.

changelog

v3.0.0 (2022-12-05)

:boom: Breaking Change

:memo: Documentation

  • #41 Automate docs with eslint-doc-generator (@bmish)
  • #36 Link to eslint-plugin-ember (@bmish)

:house: Internal

Committers: 1

v2.0.1 (2022-12-05)

:bug: Bug Fix

  • #27 Update deprecated function-style rules to object-style (and add/update internal linters) (@bmish)

:memo: Documentation

:house: Internal

Committers: 2

v2.0.0 (2020-09-03)

:boom: Breaking Change

  • #22 Fix CI: dropping unsupported Node versions (@JoaoDsv)

:rocket: Enhancement

  • #21 Add --fix support to no-const-outside-module rule (@JoaoDsv)

Committers: 1

v1.1.1 (2018-02-23)

:bug: Bug Fix

  • #18 Corrected REs on yuidoc access so that they don't misfire from CRs (@lupestro)

Committers: 1

v1.1.0 (2017-02-18)

:rocket: Enhancement

Committers: 1