@rabbithouse/eslint-config
v6.0.39
Published
Essential ESLint presets.
Downloads
74
Readme
eslint-config
Essential ESLint presets.
Install
pnpm add -D @rabbithouse/eslint-config
.
Presets
react-app
: React, TypesSript, Web.node
: TypesSript, Node.js.
Usage
Go to local .eslintrc.js
:
/**
* @type {import("eslint").Linter.Config}
*/
module.exports = {
extends: ['@rabbithouse/eslint-config/node'],
// if TypeScript is used,
// add `tsconfigRootDir` like this to local config.
parserOptions: { tsconfigRootDir: __dirname },
}