Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@peggyjs/eslint-config

peggyjs1kMIT6.0.7

Lint rules for peggyjs projects

peggy, eslint

readme

eslint configuration for Peggy projects

For js-only projects:

File: eslint.config.js (or eslint.config.mjs if you're in a project with type "commonjs"):

import mocha from "@peggyjs/eslint-config/flat/mocha.js";
// Use commonjs if you're in an older project
import module from "@peggyjs/eslint-config/flat/module.js";
import ts from "@peggyjs/eslint-config/flat/ts.js";

export default [
  ...module,
  ...ts,
  ...mocha,
];

If you include the ts config, you'll need to add dependencies:

npm install -D typescript typescript-eslint

If you include the mocha config, you'll need to add dependencies:

npm install -D eslint-plugin-mocha