@empiricalrun/eslint-config
v0.4.3
Published
Collection of eslint configs for:
Downloads
4,246
Readme
@empiricalrun/eslint-config
Collection of eslint configs for:
- Playwright tests
- NodeJS libraries
- NextJS app
Installation
npm install @empiricalrun/eslint-config --save-dev
# or
yarn add @empiricalrun/eslint-config --dev
# or
pnpm add @empiricalrun/eslint-config --dev
Usage
Create a .eslintrc.js
file in the root of your project and add the following:
// for playwright tests
module.exports = {
extends: ["@empiricalrun/eslint-config/playwright.js"],
};
// for nextjs app
module.exports = {
extends: ["@empiricalrun/eslint-config/next.js"],
};
// for NodeJS libraries
module.exports = {
extends: ["@empiricalrun/eslint-config/library.js"],
};