0.4.0 • Published 5 months ago

@osufrlive/eslint-config v0.4.0

Weekly downloads
-
License
-
Repository
-
Last release
5 months ago

@osufrlive/eslint-config

ESLint config for osu!frlive projects.

Usage

Tested on npm 7+. Peer dependencies behavior change often in between major releases.

  • Install as a development dependency:
npm i -D @osufrlive/eslint-config
  • Paste in eslint.config.js:
module.exports = (async function config() {
    const osufrlive = await import("@osufrlive/eslint-config");
    return [
        ...await osufrlive.default,
    ];
})();
  • Add the following script to package.json:
"lint": "eslint src/"

Upgrading

If upgrading from 0.3:

  • Remove .eslintrc.js, add .eslint.config.js and update script
  • Bet on issues count
  • Fix them?

If upgrading from 0.0.x:

  • Remove any peer dependencies introduced by the package
  • Remove the package
  • Reinstall the package
  • Update eslint.config.js (see above)