Skip to content

Initialize Config

Once installed, generate your eslint.config.js with the init command.

Terminal window
npx @gesslar/uglier init node

This creates:

import uglify from "@gesslar/uglier"
export default [
...uglify({
with: [
"lints-js",
"lints-jsdoc",
"node",
]
})
]
Terminal window
npx @gesslar/uglier init react
Terminal window
npx @gesslar/uglier init tauri

You can combine multiple targets:

Terminal window
npx @gesslar/uglier init node cjs-override mjs-override

The CLI maps each target to the appropriate config blocks and generates a single, clean config file.