Skip to content

๐Ÿ•ต๐Ÿผโ€โ™€๏ธ Custom ESLint configuration for projects. It extends popular Airbnb ESLint config and other popular configs in one place

License

Notifications You must be signed in to change notification settings

msobiecki/eslint-config

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

eslint-config

License

Custom ESLint configuration for projects. It extends popular Airbnb ESLint config and other popular configs in one place.

Table of Contents

Installation

npm install --save-dev @msobiecki/eslint-config

Make sure to install the necessary peer dependencies as well:

npm install --save-dev eslint prettier

Usage

To use this ESLint configuration, you need to extend it in your project's .eslintrc file:

base javascript/typescript configuration

{
  "extends": "@msobiecki/eslint-config"
}

react javascript/typescript configuration

{
  "extends": [
    "@msobiecki/eslint-config/react",
    "@msobiecki/eslint-config/react-jsx"
  ]
}

next configuration

{
  "extends": ["@msobiecki/eslint-config/next"]
}

node configuration

{
  "extends": ["@msobiecki/eslint-config/node"]
}

jest configuration

base

{
  "extends": ["@msobiecki/eslint-config/jest"]
}

dom

{
  "extends": [
    "@msobiecki/eslint-config/jest",
    "@msobiecki/eslint-config/jest-dom"
  ]
}

react

{
  "extends": [
    "@msobiecki/eslint-config/jest",
    "@msobiecki/eslint-config/jest-react"
  ]
}

best practice configuration

{
  "extends": ["@msobiecki/eslint-config/best-practice"]
}

If you have an existing ESLint configuration, you can merge it with this configuration using the extends property:

{
  "extends": ["@msobiecki/eslint-config", "your-existing-config"]
}

License

This project is licensed under the MIT License. See the LICENSE file for more details.


Feel free to contribute to this repository by opening issues or submitting pull requests. Happy coding!

About

๐Ÿ•ต๐Ÿผโ€โ™€๏ธ Custom ESLint configuration for projects. It extends popular Airbnb ESLint config and other popular configs in one place

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors 4

  •  
  •  
  •  
  •