Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@secretlint/secretlint-rule-anthropic

secretlint2kMIT11.2.4TypeScript support: included

A secretlint rule for detecting Anthropic Claude API keys

secretlint, rule, anthropic, claude, api-key, security

readme

@secretlint/secretlint-rule-anthropic

A rule for detecting Anthropic Claude API keys in your code.

Install

Install with npm:

npm install @secretlint/secretlint-rule-anthropic

Usage

Via .secretlintrc.json(Recommended)

{
    "rules": [
        {
            "id": "@secretlint/secretlint-rule-anthropic"
        }
    ]
}

MessageIDs

ANTHROPIC_API_KEY

Anthropic Claude API key is detected.

NG examples:

sk-ant-api03-R2D2C3P0BEEP_BOOP_BUZZ_WHIRR_CLICK_SPIN_TURN_JUMP_SKIP_HOP_DANCE_SING_PLAY_WORK_LEARN_GROW_LOVE_LIVEigAA

Options

Changelog

See Releases page.

Running tests

No Test to avoid Dependency cycles.

Contributing

Pull requests and stars are always welcome.

For bugs and feature requests, please create an issue.

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request :D

License

MIT © azu