npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

eslint-config-vkbansal

v6.0.0-alpha.6

Published

Shareable eslint config

Downloads

540

Readme

ESLint Shareable Config

An ESLint Shareable Config for my projects. It uses typescript-eslint as its parser.

Install

yarn add eslint-config-vkbansal

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.

Then, add this to your .eslintrc file:

{
    "extends": [
        "vkbansal",
        "vkbansal/typescript"
    ],
  " parserOptions": {
        "project": "tsconfig.json"
    }
}

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.

React/JSX

This package also includes a shareable config to be used with React or JSX. Just add this to your .eslintrc file:

{
    "extends": [
        "vkbansal",
        "vkbansal/typescript"
        "vkbansal/react"
    ],
    "parserOptions": {
         "project": "tsconfig.json"
    }
}

Differences from eslint-config-airbnb

| Config | airbnb-base (11.1.1) | vkbansal (5.0.0) | | ------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------- | --------------------------------------- | | indent | 2 spaces | 4 spaces | | eqeqeq | ignore for null | always | | no-eq-null | off | error | | no-implicit-coercion | off | error | | no-warning-comments | off | warn | | require-await | off | error | | wrap-iife | outside, functionPrototypeMethods: false | inside, functionPrototypeMethods: false | | yoda | off | error | | comma-dangle | always-multiline | never | | no-constant-condition | warn | error | | no-extra-parens | off | error | | no-constant-condition | warn | error | | max-len | 100 | 120 | | no-continue | error | off | | no-nested-ternary | error | off | | no-plusplus | error | off | | no-restricted-syntax | ForInStatement, ForOfStatement, LabeledStatement, WithStatement | LabeledStatement, WithStatement | | nonblock-statement-body-position | off | error | | template-tag-spacing | off | error | | wrap-regex | off | error | | prefer-const | error | off | | no-native-reassign (deprecated) | off | N/A | | no-negated-in-lhs (deprecated) | off | N/A | | no-spaced-func (deprecated) | error | N/A | | prefer-reflect (deprecated) | off | N/A | | import/imports-first (deprecated) | off | N/A |

React

| Config | airbnb (14.1.0) | vkbansal (5.0.0) | | --------------------------------------------------------------------------------------------------------------------------------------- | ------------------------ | ---------------------- | | forbid-prop-types | any, array, object | none | | jsx-closing-bracket-location | line-aligned | after-props | | jsx-handler-names | off | error | | jsx-indent-props | 2 | 4 | | jsx-indent | 2 | 4 | | jsx-indent-key | off | error | | no-direct-mutation-state | off | error | | sort-props | no handler-names | handler-names included | | jsx-filename-extension | .jsx | .js |

Import

| Config | airbnb (14.1.0) | vkbansal (5.0.0) | | ------------------------------------------------------------------------------------------------------------ | --------------- | ---------------- | | named | off | error | | default | off | error | | namespace | off | error | | no-commonjs | off | error | | no-nodejs-modules | off | error | | order | off | error |

License

MIT. Copyright (c) Vivek Kumar Bansal.