Skip to content

sensitive

Check for sensitive files in published package and dist

PropertyValue
Rule IDfiles/sensitive
Categoryfiles
Severity🔴 error
FixableNo

What it Checks

Detects .env, credentials, private keys, and other sensitive files that would be published to npm.

Configuration

Disable this rule:

bash
tspub check --ignore-rules "files/sensitive"

Or in tspub.config.ts:

typescript
export default {
  check: {
    severityOverrides: {
      "files/sensitive": "off",  // or "warning", "error", "info"
    },
  },
};

Released under the MIT License.