eslint-config-vvdev

1.0.3 • Public • Published

eslint-config-vvdev

Installation

Install eslint:

yarn add --D eslint

Add scripts in package.json

"lint": "node_modules/.bin/eslint ./${SOURCES} --ext .js,.jsx",
"lintfix": "node_modules/.bin/eslint ./${SOURCES} --ext .js,.jsx --fix"

where ${SOURCES} is root of linted code

Create file .eslintrc with next content:

{
  "extends": "vvdev"
}

Be default used react-native eslint config. To use another config you can specify environment:

"extends": "vvdev/react-native", // react-native
"extends": "vvdev/react", // react js
"extends": "vvdev/node", // node-js

Usage

Use one of the next commands

yarn run lint

Auto check before commit

See husky

TODO:

  • [] sonarjs plugin
  • [] Include React JS config

/eslint-config-vvdev/

    Package Sidebar

    Install

    npm i eslint-config-vvdev

    Weekly Downloads

    138

    Version

    1.0.3

    License

    ISC

    Unpacked Size

    33.3 kB

    Total Files

    19

    Last publish

    Collaborators

    • ownikss