Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

eslint-config-amaze

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-config-amaze

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

  • 0.1.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2
Maintainers
1
Weekly downloads
 
Created
Source

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.

FAQs

Package last updated on 28 Nov 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc