Skip to content

i-novus-llc/eslint-config

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

@i-novus/eslint-config

Installation

If you are using eslint-loader in your build config don't forget to check the last version it supports. For example, webpack 4 eslint-loader supports eslint up to version 7, so install ^eslint7.0.0:

yarn add -D @i-novus/eslint-config eslint

Usage

  1. Add .eslintrc to the project root. Base config suits for node project usage
{
  "extends": ["@i-novus/eslint-config"]
  // or "extends": ["@i-novus/eslint-config/node"]
}

If you want to use this config in React project, you have to extend it from /react import path

{
  "extends": ["@i-novus/eslint-config/react"]
}
  1. Add script to package.json
{
  "scripts": {
    "lint": "eslint src/ --fix"
  }
}

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published