@lshay/eslint-config
v0.3.5
Published
The eslint config I use on my projects. Automatically adds TypeScript, React, and Vitest rules if they are install.
Downloads
5
Readme
@lshay/eslint-config
The eslint config I use on my projects. Automatically adds TypeScript, React, and Vitest rules if they are install.
Getting Started
Install using the package manager of your choice.
npm i -D eslint @lshay/eslint-config
pnpm i -D eslint @lshay/eslint-config
yarn add -D eslint @lshay/eslint-config
Create a file named .eslintrc.cjs
with the following contents.
const { createConfig } = require("@lshay/eslint-config")
module.exports = createConfig(
{
typescript: true,
prettier: true,
node: true,
},
{
extends: ["@lshay/eslint-config"],
parserOptions: {
project: ["./tsconfig.json"],
tsconfigRootDir: __dirname,
},
},
)