Personal recommended shareable config for eslint.
- use yarn
yarn add @nghinv/eslint-config --dev
- use npm
npm install -D @nghinv/eslint-config
- use yarn
yarn add @nghinv/[email protected] --dev
- use npm
npm install -D @nghinv/[email protected]
In .eslintrc:
module.exports = {
root: true,
extends: ['@nghinv/eslint-config'],
};
- eslint
- @typescript-eslint/eslint-plugin
- @typescript-eslint/parser
- babel-eslint
- eslint-config-airbnb
- eslint-config-prettier
- eslint-plugin-import
- eslint-plugin-jsx-a11y
- eslint-plugin-prettier
- eslint-plugin-react
- eslint-plugin-react-hooks
- eslint-plugin-react-native
- husky
- prettier
- typescript