Skip to content

Dcard/eslint-config-dcard

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

eslint-config-dcard

ESLint config for Dcard projects

Installation

# Install peer dependencies
yarn add @next/eslint-plugin-next @typescript-eslint/eslint-plugin @typescript-eslint/parser eslint eslint-plugin-import eslint-plugin-jest eslint-plugin-jsx-a11y eslint-plugin-node eslint-plugin-react eslint-plugin-react-hooks eslint-plugin-unicorn -D
# Install eslint-config-dcard
yarn add eslint-config-dcard -D

Usage

In .eslintrc.cjs

module.exports = {
  extends: 'dcard/base',

  // Extends config for specific files
  overrides: [
    {
      files: ['*.tsx'],
      extends: ['dcard/react'],
    },
    {
      files: ['*.test.tsx'],
      extends: ['dcard/jest'],
    },
    // ...
  ]
}

Supported Configurations

  • dcard/base
  • dcard/react
  • dcard/jest
  • dcard/next

License

MIT

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •