Skip to main content
Introducing packages.sweber.dev
Documentation menuConfiguration

Configuration

Fields of surjection.config.json.

The CLI reads surjection.config.json from the working directory, or the file passed with --config. Flags override the file.

surjection.config.json

{
  "baseUrl": "https://preview.example.ch",
  "urls": ["/", "/shop"],
  "sitemap": "/sitemap.xml",
  "maxPages": 50,
  "standard": "wcag22aa",
  "bestPractice": false,
  "disableRules": [],
  "exclude": ["#cookie-banner-iframe"],
  "failOn": "serious",
  "locale": "de-CH",
  "baseline": "surjection-baseline.json",
  "project": "Muster AG"
}
FieldTypeDefault
urlsstring[]
baseUrlstring
sitemapstring
maxPagesnumber50
standardwcag2a | wcag2aa | wcag21aa | wcag22aawcag22aa
bestPracticebooleanfalse
disableRulesstring[][]
excludestring[][]
failOnminor | moderate | serious | criticalminor
localede | de-CH | fr | it | enen
baselinestringsurjection-baseline.json
projectstring