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-config-amaze

v0.1.1

Published

Deque's standardized ESLint configuration for Node and JavaScript applications.

Downloads

4

Readme

Deque ESLint

JavaScript, being a dynamic and loosely-typed language, is especially prone to developer error. Without the benefit of a compilation process, JavaScript code is typically executed in order to find syntax or other errors. Linting tools like ESLint allow developers to discover problems with their JavaScript code without executing it.

Why ESLint?

As stated earlier, linting allows developers to produce and commit clean, valid, and consistent code. By sharing our ruleset we can ensure our developers are coding to Deque’s best practices and formatting standards. Our standard rulesets (there are two of them) can be found on our private Bitbucket:

  • https://bitbucket.org/dmusser/eslint-config-amaze (Node/JS, Amaze)
  • [Coming soon] (JS, React, Attest tools)

Each is suited for its respective environments. What works in React may not work in Node, as an example.

Using ESLint

If your project is under source control (such as Git) it may already include a copy of this ruleset. If not, require this file in your app with:

npm install --save-dev eslint-config-amaze

Get a linter

Once you have the ruleset locally or installed as a dependency, you’ll need the ESLinter. Depending on which editor you use determines how you install it.

Sublime Text

If you use Sublime do the following:

  • Open your Command Palette and type install
  • When the plugin list appears, type eslint
  • Viola!

Atom

Alternatively, if you use Atom, do the following:

  • Open your Settings/Preferences and navigate to Packages
  • Search for eslint and select the linter-eslint package
  • Viola!

Both of these plugins will check first in the project directory, but if no ESLint configuration file is found it will traverse into more global locations, starting with its install directory (if a dependency). This means that you could optionally save our standardized ESLint configuration ruleset somewhere globally and then point your plugins to its location. This would work for all of your projects without having to have it installed locally. However, any local rulesets will override any global rulesets, unless your editor allows either/or.

Required packages

If you’re using Node (i.e., have a package.json) file you may need to install a few additional packages:

  • eslint-config-standard
  • eslint-plugin-standard
  • eslint-plugin-promise
  • eslint-plugin-node
  • eslint-plugin-import

These should be included with this package.

Configuration file

Once you get the dependencies installed, if you're using this package by itself, you'll need to add the following file to the root of your repository:

{
  "extends": "eslint-config-amaze"
}

The filename needs to be .eslintrc.json.