Skip to content

bdbaraban/eslint-config

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🧹 @bdbaraban/eslint-config

My ESLint config. Configures:

Installation

npm install --save-dev @bdbaraban/eslint-config
npx install-peerdeps @bdbaraban/eslint-config@latest

Usage

Entry points:

module.exports = {
  extends: [
    '@bdbaraban/eslint-config', // If not using React
    '@bdbaraban/eslint-config/react', // If using React
  ],
};

Rule sets:

module.exports = {
  extends: [
    '@bdbaraban/eslint-config/rules/base', // eslint-config-airbnb-base + eslint-plugin-prettier
    '@bdbaraban/eslint-config/rules/comments', // eslint-plugin-comments
    '@bdbaraban/eslint-config/rules/functional', // eslint-plugin-functional
    '@bdbaraban/eslint-config/rules/react', // eslint-plugin-react + eslint-plugin-react-hooks + eslint-plugin-jsx-a11y
    '@bdbaraban/eslint-config/rules/typescript', // @typescript-eslint/eslint-plugin
  ],
};