@mskelton/eslint-config
v9.1.0
Published
Simple and sensible ESLint config.
Downloads
7,900
Maintainers
Readme
@mskelton/eslint-config
Simple and sensible ESLint config.
Description
This package contains a simple and sensible ESLint config that you can use to get up and running. It uses the TypeScript ESLint and Prettier.
Installation
npm install -D @mskelton/eslint-config eslint
Usage
In your eslint.config.mjs
file, add the following content including the
configs you want for your project.
import mskelton from "@mskelton/eslint-config"
/** @type {import('eslint').Linter.Config[]} */
export default [
...mskelton.recommended,
mskelton.react,
{
...mskelton.playwright,
files: ["test/**/*.spec.ts"],
},
{
...mskelton.vitest,
files: ["**/__tests__/**/*.{spec,test}.{js,jsx,cjs,mjs,ts,tsx,cts,mts}"],
},
{
...mskelton.jest,
files: ["**/__tests__/**/*.{spec,test}.{js,jsx,cjs,mjs,ts,tsx,cts,mts}"],
},
]