Initialize your config
Once installed, generate your eslint.config.js with the init command.
For a Node.js project
npx @gesslar/uglier init node
This creates:
import uglify from "@gesslar/uglier"
export default [
...uglify({
with: [
"lints-js",
"lints-jsdoc",
"node",
]
})
]
For a React project
npx @gesslar/uglier init react
For a Tauri app
npx @gesslar/uglier init tauri
Multiple targets
You can combine multiple targets:
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.