Skip to main content
Version: 5.x

Configuration | v5.x

qoq.config.js exports one CommonJS or ESM object. Every section is optional.

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.
  • configType — 'CJS' or 'ESM', from 5.0.1. Overrides the format detected from package.json type.

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, plus ignoreFiles, ignoreMembers and ignoreUnresolved from 5.2. See 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'] },
],
}

In 5.x the template's pre-merged baseConfig is merged with your entry. 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.

Structurelint​

Optional, backed by @ladamczyk/structurelint. The block mirrors structurelint's config directly, so no separate structure.config.* file is read:

{
structurelint: {
structureRoot: '.',
structure: [{ name: 'src', children: [] }],
},
}

rules and ignorePatterns are supported too. Skip with --skip-structurelint.

Skillslint​

Optional, backed by @ladamczyk/skillslint. path defaults to ./skills. Skip with --skip-skillslint.