eslint-config-voodoocreation
An opinionated ESlint config with TypeScript support.
Usage
With React support
1. Install peer dependencies
npm install --save-dev \
@typescript-eslint/eslint-plugin \
eslint \
eslint-plugin-import \
eslint-plugin-jest \
eslint-plugin-jsx-a11y \
eslint-plugin-prefer-arrow \
eslint-plugin-react \
eslint-plugin-react-hooks \
prettier
2. Define your ESLint config
{
"extends": ["voodoocreation"],
"parserOptions": {
"project": "tsconfig.json"
}
}
Without React support
1. Install peer dependencies
npm install --save-dev \
@typescript-eslint/eslint-plugin \
eslint \
eslint-plugin-import \
eslint-plugin-jest \
eslint-plugin-prefer-arrow \
prettier
2. Define your ESLint config
{
"extends": ["voodoocreation/base"],
"parserOptions": {
"project": "tsconfig.json"
}
}