Skip to content

T2112: Invalid severity exemption ​

Cause ​

A severity rule in tessera.config.ts is invalid: lowering a rule to warn or off needs a reason, and expires must be a date like 2027-03-01.

Example ​

text
export default {
  "severity": [
    {
      "files": "app/legacy/**",
      "rules": "*",
      "level": "off"
    }
  ]
}

What you see ​

text
ERROR  T2112  tessera.config.ts
  severity[0] (app/legacy/**) sets "off" without a reason. Add a "reason" saying why this path is exempt.
  Run `tessera explain T2112` for details.

Fix ​

Add a reason saying why the path is exempt, and a valid expiry date.

text
severity: [{ files: 'app/legacy/**', rules: '*', level: 'warn', reason: 'old screens', expires: '2027-03-01' }]

All errors and warnings