Preferred config for ESLint, TypeScript, React, and Prettier.
Assumes you already have these installed in your project:
eslint
prettier
typescript
# The config module
npm i -D eslint-config-abettermap
# And the deps
npm i -D \
@typescript-eslint/eslint-plugin \
eslint-plugin-import \
eslint-plugin-jsx-a11y \
eslint-plugin-prettier \
eslint-plugin-react \
eslint-plugin-react-hooks
If using yarn
, swap out npm i
with yarn add
.
In your .eslintrc.js file:
module.exports = {
extends: 'abettermap',
// ...the rest of your config
}