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

@chtijs/eslint-config

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@chtijs/eslint-config

Write consistency JavaScript without losing your brain

  • 1.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

eslint-config

Write consistency JavaScript without losing your brain

npm

Installation

npm install @chtijs/eslint-config --save-dev

Usage

In your .eslintrc:

{
  "extends": "@chtijs"
}

Overview

Extends the default eslint config, parses with Babel, and adds the import plugin. Includes these hot rules:

  • Two spaces for indentation.
  • Single quotes.
  • More rigit JSDoc enforcement.
  • Allow functions to be defined after they're first referenced. (Yay hoisting!)
  • if/else go on separate lines.
  • Consistent return values optional.
  • Prefer const, then let, but never var.
  • Capitalize the first word in a comment.
  • Put spaces around inline objects.
  • Always use === and !==.
  • Class methods must use this (otherwise they can be static).

Local Development

git clone https://github.com/chtijs/eslint-config
cd eslint-config

License

MIT © Hacked from Geoff Kimball

Keywords

FAQs

Package last updated on 28 Mar 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