New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

eslint-config-janiskra

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-config-janiskra

My custom eslint rules

  • 2.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
11
decreased by-38.89%
Maintainers
1
Weekly downloads
 
Created
Source

eslint-config-janiskra

My custom eslint rules, extending the eslint-config-airbnb.

Rules

"rules": {
    "async-await/space-after-async": ["error", "always"],
    "async-await/space-after-await": ["error", "always"],
    "comma-dangle": ["error", "never"],
    "object-curly-spacing": ["error", "always"],
    "object-shorthand": ["error", "never"],
    "space-before-function-paren": ["error", "always"]
}

I use the async-await and no-inferred-method-name plugins for enforcing spaces after the async/await keywords and disallowing anonymous inner functions.

Installation

npm install --save-dev eslint eslint-config-enpit-jet

Usage

There are three versions, base, node and react. For now, the main difference is that the base and nodejs configs extend airbnb/base while the react config extends airbnb (i.e. it uses all the react stuff that you do not need for, say, a nodejs project).

base

.eslintrc:

{
    "extends": "eslint-config-janiskra/base"
}

react

.eslintrc:

{
    "extends": "eslint-config-janiskra/react"
}

node

.eslintrc:

{
    "extends": "eslint-config-janiskra/node"
}

FAQs

Package last updated on 15 Jan 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