npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

eslint-plugin-ember-cleanup

v2.0.1

Published

Check Ember-code for some potential issues

Downloads

14,213

Readme

eslint-plugin-ember-cleanup

Build Status npm version License Downloads

Installation

You'll first need to install ESLint:

$ npm i eslint --save-dev

Next, install eslint-plugin-ember-cleanup:

$ npm install eslint-plugin-ember-cleanup --save-dev

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

Usage

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

{
  "plugins": [
    "ember-cleanup"
  ],
  "extends": [
    "eslint:recommended",
    "plugin:ember-cleanup/recommended"
  ]
}

Supported Rules

| Rule | Description | |----- | ------------| | max-dep-keys| Checks number of dependent keys | | no-settimeout | Proposes to use run-methods instead of setTimeout | | no-throw | Proposes to use assert from @ember/debug instead of throwing errors | | no-typeof | Proposes to use typeOf from @ember/utils instead of built-in typeof for some types check | | cp-brace-expansion | Checks dependent keys for possibility to do brace expansion | | no-is-array | Checks for array detection and propose to use isArray from @ember/array | | no-this-in-dep-keys | Checks dependent keys for this.-prefix | | one-level-each | Checks @each usage in the dependent keys | | square-brackets | Checks [] usage in the dependent keys | | no-multi-dots | Checks dependent keys to not contain .. | | no-typo-in-dep-keys | Checks possible typos in the dependent keys (it doesn't check short keys) | | cp-macro-args-limit | Checks dependent keys count | | cp-macro-not-key | Checks arguments for computed macros to not be dependent keys | | no-expr-in-dep-keys | Checks dependent keys to not contain expressions | | no-empty-declaration | Disallow empty extend for Ember Objects | | cp-macro-alias | Looks for Computed Properties that look like computed.alias but are written as 'general' CP | | super-args | Checks potential invalid calls _super without ... | | route-model-return | Checks that model hook returns a value | | no-dep-keys-loop | Checks for loops in the dependent keys |

Deprecated and removed:

| Rule | Reason | |------|--------| | no-declare-obj-components | Use ember/avoid-leaking-state-in-ember-objects from eslint-plugin-ember | | no-set-in-getter | Use ember/no-side-effects from eslint-plugin-ember | | no-dup-keys | Use ember/no-duplicate-dependent-keys from eslint-plugin-ember | | destructuring | It's not needed for modules API | | no-define-property | defineProperty is private, so it must not be used at all | | no-console | Proposed Ember.Logger is private, so rule may be replaced with no-console from ESLint |