@qcolate/eslint-config
v1.4.5
Published
Qcolate Eslint Config
Downloads
330
Readme
Qcolate Eslint Config
Installation
yarn add -D eslint @qcolate/eslint-config
Usage
install config and deps
# React
yarn add -D eslint @qcolate/eslint-config \
eslint-config-airbnb \
eslint-config-airbnb-base \
eslint-config-airbnb-typescript \
eslint-config-prettier \
eslint-import-resolver-typescript \
eslint-loader \
eslint-plugin-import \
eslint-plugin-jest \
eslint-plugin-jsx-a11y \
eslint-plugin-prettier \
eslint-plugin-react \
eslint-plugin-react-hooks \
@typescript-eslint/eslint-plugin \
@typescript-eslint/parser \
prettier
# Node
yarn add -D eslint @qcolate/eslint-config \
eslint-config-airbnb-base \
eslint-config-airbnb-typescript \
eslint-config-prettier \
eslint-import-resolver-typescript \
eslint-loader \
eslint-plugin-import \
eslint-plugin-prettier \
@typescript-eslint/eslint-plugin \
@typescript-eslint/parser \
prettier
Create an .eslintrc.js in the root directory of your project, then copy the following content into it:
// .eslintrc.js
module.exports = {
extends: ['@qcolate/eslint-config'], // for React [default]
extends: ['@qcolate/eslint-config/nest'], // for Nest.js
};
License
MIT © Qcolate