0.5.2 • Published 6 months ago
@osufrlive/eslint-config
Licence
—
Version
0.5.2
Deps
0
Size
4 kB
Vulns
0
Weekly
0
@osufrlive/eslint-config
ESLint config for osu!frlive projects.
Usage
Tested on npm 7+. Peer dependencies behavior has changed regularly in the past.
- 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.config,
];
})();
- Add the following script to
package.json:
"lint": "eslint src/"
Upgrading
If upgrading from 0.4:
- Config export is now named
configinstead ofdefault
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)