Skip to main content
Version: 4.x

Configuration | v4.x

qoq.config.js exports one CommonJS or ESM object. Every section is optional. From 4.4 the CLI warns about entries that repeat a default, or ESLint rules the chosen template already declares.

General​

  • srcPath (default ./src) — fallback path for every tool.
  • configPaths — { eslint: '/eslint.config.js', prettier: '/.prettierrc', stylelint: '/stylelint.config.js' }. A leading / means the current working directory.

npm​

Default check through npm outdated; skip with --skip-npm.

{
npm: {
checkOutdatedEvery: 1, // days; 0 checks on every run
},
}

Prettier​

sources (default [srcPath]); respects .prettierignore. Skip with --skip-prettier.

JSCPD​

format, ignore and threshold (default 2), as in the JSCPD options. Skip with --skip-jscpd.

Knip​

entry, project, ignore, ignoreDependencies (default ['@ladamczyk/qoq-*']) and ignoreBinaries, as in the Knip configuration. Skip with --skip-knip.

ESLint​

An array of configuration objects, each optionally naming a template:

{
eslint: [
{ template: 'qoq-eslint-v9-ts', files: ['src/**/*.ts'], ignores: ['**/*.spec.ts'] },
{ template: 'qoq-eslint-v9-ts-vitest', files: ['src/**/*.spec.ts'] },
],
}

Skip with --skip-eslint.

Stylelint​

Optional: template (qoq-stylelint-css or qoq-stylelint-scss) and strict (default false; true fails on warnings). Skip with --skip-stylelint.

Skillslint​

Optional, added in 4.3, backed by @ladamczyk/skillslint: lints Claude Code skill docs with textlint. path defaults to ./skills. Skip with --skip-skillslint.

Structurelint​

Optional, added in 4.5, backed by @ladamczyk/structurelint. Runs before Skillslint.

  • 4.5.0–4.5.1 read rules from structure.config.{ts,js,mjs}; the block takes only path (default .).
  • 4.5.2 reads them from the block itself, mirroring structurelint's own config:
{
structurelint: {
structureRoot: '.',
structure: [{ name: 'src', children: [] }],
},
}

Skip with --skip-structurelint.