@lshay/eslint-config

0.3.5 • Public • Published

@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,
		},
	},
)

Readme

Keywords

none

Package Sidebar

Install

npm i @lshay/eslint-config

Weekly Downloads

2

Version

0.3.5

License

MIT

Unpacked Size

29.7 kB

Total Files

14

Last publish

Collaborators

  • lukeshay