Skip to content

hildjj/peggyjs-eslint-config

 
 

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

About

eslint configuration for peggyjs projects

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 99.7%
  • TypeScript 0.3%