API Reference
uglify(options?)
Section titled “uglify(options?)”The default export. Takes an options object and returns an array of ESLint flat config objects.
Signature
Section titled “Signature”export default function uglify(options?: UglierOptions): Array<FlatConfig>Parameters
Section titled “Parameters”options.with
Section titled “options.with”- Type:
Array<ConfigName> - Optional
An array of config block names to include. If provided, only these blocks are used.
options.without
Section titled “options.without”- Type:
Array<ConfigName> - Optional
An array of config block names to exclude. All other available configs are included.
options.options
Section titled “options.options”- Type:
Record<ConfigName, ConfigOptions> - Optional
Per-config customization. Each key is a config name and the value is the options object for that config.
Return value
Section titled “Return value”An array of ESLint flat config objects that can be spread into your eslint.config.js export.
Example
Section titled “Example”import uglify from "@gesslar/uglier"
export default [ ...uglify({ with: ["lints-js", "node"], options: { "lints-js": {indent: 4}, }, })]availableConfigs
Section titled “availableConfigs”A named export containing the list of all available config block names.
Signature
Section titled “Signature”export const availableConfigs: Array<ConfigName>[ "lints-js", "lints-jsdoc", "languageOptions", "node", "web", "react", "tauri", "vscode-extension", "cjs-override", "mjs-override",]