eslint-config-dcard
ESLint config for Dcard projects
Installation
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
yarn add eslint-config-dcard -D
Usage
In .eslintrc.cjs
module.exports = {
extends: 'dcard/base',
overrides: [
{
files: ['*.tsx'],
extends: ['dcard/react'],
},
{
files: ['*.test.tsx'],
extends: ['dcard/jest'],
},
]
}
Supported Configurations
dcard/base
dcard/react
dcard/jest
dcard/next
License
MIT