6.0.0-alpha.6 • Published 6 years ago

eslint-config-vkbansal v6.0.0-alpha.6

Weekly downloads
11
License
MIT
Repository
github
Last release
6 years ago

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

Configairbnb-base (11.1.1)vkbansal (5.0.0)
indent2 spaces4 spaces
eqeqeqignore for nullalways
no-eq-nullofferror
no-implicit-coercionofferror
no-warning-commentsoffwarn
require-awaitofferror
wrap-iifeoutside, functionPrototypeMethods: falseinside, functionPrototypeMethods: false
yodaofferror
comma-danglealways-multilinenever
no-constant-conditionwarnerror
no-extra-parensofferror
no-constant-conditionwarnerror
max-len100120
no-continueerroroff
no-nested-ternaryerroroff
no-pluspluserroroff
no-restricted-syntaxForInStatement, ForOfStatement, LabeledStatement, WithStatementLabeledStatement, WithStatement
nonblock-statement-body-positionofferror
template-tag-spacingofferror
wrap-regexofferror
prefer-consterroroff
no-native-reassign (deprecated)offN/A
no-negated-in-lhs (deprecated)offN/A
no-spaced-func (deprecated)errorN/A
prefer-reflect (deprecated)offN/A
import/imports-first (deprecated)offN/A

React

Configairbnb (14.1.0)vkbansal (5.0.0)
forbid-prop-typesany, array, objectnone
jsx-closing-bracket-locationline-alignedafter-props
jsx-handler-namesofferror
jsx-indent-props24
jsx-indent24
jsx-indent-keyofferror
no-direct-mutation-stateofferror
sort-propsno handler-nameshandler-names included
jsx-filename-extension.jsx.js

Import

Configairbnb (14.1.0)vkbansal (5.0.0)
namedofferror
defaultofferror
namespaceofferror
no-commonjsofferror
no-nodejs-modulesofferror
orderofferror

License

MIT. Copyright (c) Vivek Kumar Bansal.

6.0.0-alpha.6

6 years ago

6.0.0-alpha.5

6 years ago

6.0.0-alpha.4

6 years ago

6.0.0-alpha.3

6 years ago

6.0.0-alpha.2

6 years ago

6.0.0-alpha.1

6 years ago

5.2.1

8 years ago

5.2.0

8 years ago

5.1.0

8 years ago

5.0.0

8 years ago

4.5.1

8 years ago

4.5.0

8 years ago

4.4.0

8 years ago

4.3.1

8 years ago

4.3.0

8 years ago

4.2.0

8 years ago

4.1.0

9 years ago

4.0.2

9 years ago

4.0.1

9 years ago

4.0.0

9 years ago

3.2.0

9 years ago

3.1.0

9 years ago

3.0.0

9 years ago

2.1.0

9 years ago

2.0.0

9 years ago

1.0.0

9 years ago

0.4.0

9 years ago

0.3.0

9 years ago

0.2.0

9 years ago

0.1.4

10 years ago

0.1.3

10 years ago

0.1.2

10 years ago

0.1.1

10 years ago

0.1.0

10 years ago