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

  • 1.4.0
  • 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.

Usage

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

base

.eslintrc:

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

react

.eslintrc:

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

FAQs

Package last updated on 13 Sep 2016

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