Socket
Book a DemoInstallSign in
Socket

eslint-config-ohar

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-config-ohar

JavaScript Ohar Style - ESLint Shareable Config

0.2.2
latest
Source
npmnpm
Version published
Weekly downloads
7
Maintainers
1
Weekly downloads
 
Created
Source

eslint-config-ohar

An ESLint Shareable Config for JavaScript Standard Style

Based on eslint-config-standard with some minor improvements.

Why fork eslint-config-standard?

Standard is not bad, but there were some problems here.

  • Not possible to align code by colon to form text-based vertical columns
  • Trailing commas disabled. Nik Graf wrote an article about why it should be not enabled, but even forced to,

Install

NPM

npm install -D eslint-config-ohar

Yarn

yarn add -D eslint-config-ohar

Usage

Shareable configs are designed to work with the extends feature of .eslintrc files. You can learn more about Shareable Configs on the official ESLint website.

To use the JavaScript Standard Style shareable config, first run this:

NPM

npm install -D eslint-config-ohar eslint-plugin-standard eslint-plugin-promise eslint-plugin-import eslint-plugin-node

Yarn

yarn add -D eslint-config-ohar eslint-plugin-standard eslint-plugin-promise eslint-plugin-import eslint-plugin-node

Then, add this to your .eslintrc file:

{
  "extends": "standard"
}

Note: We omitted the eslint-config- prefix since it is automatically assumed by ESLint.

You can override settings from the shareable config by adding them directly into your .eslintrc file.

Looking for something easier than this?

The easiest way to use JavaScript Standard Style to check your code is to use the standard package. This comes with a global Node command line program (standard) that you can run or add to your npm test script to quickly check your style.

Learn more

For the full listing of rules, editor plugins, FAQs, and more, visit the main JavaScript Standard Style repo.

License

MIT. Copyright (c) Feross Aboukhadijeh, Pavel Lysenko.

Keywords

JavaScript Standard Style

FAQs

Package last updated on 25 Jan 2019

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

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.