Skip to content

peggyjs/peggyjs-eslint-config

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Feb 25, 2025
2abbda4 · Feb 25, 2025
Feb 25, 2025
Feb 25, 2025
Feb 25, 2025
Oct 9, 2024
Jun 4, 2021
Feb 7, 2024
Oct 9, 2024
Jul 20, 2022
Oct 9, 2024
Oct 9, 2024
Oct 9, 2024
Oct 9, 2024
Oct 9, 2024
Nov 9, 2024
Oct 9, 2024
Oct 9, 2024
Oct 9, 2024
Oct 9, 2024
Feb 25, 2025
Feb 25, 2025
Oct 9, 2024

Repository files navigation

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