Skip to content

Commit

Permalink
Add types (#34)
Browse files Browse the repository at this point in the history
- Adds index.d.ts file
  • Loading branch information
mjlehrke authored Nov 5, 2024
1 parent f096a6b commit da1fc61
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
9 changes: 9 additions & 0 deletions index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import type { ESLint, Rule } from 'eslint';

declare const eslintPluginNoSecrets: ESLint.Plugin & {
rules: {
'no-secrets': Rule.RuleModule,
};
};

export = eslintPluginNoSecrets;
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"version": "1.0.2",
"description": "An eslint rule that searches for potential secrets/keys in code",
"main": "index.js",
"types": "index.d.ts",
"scripts": {
"test": "node tests/lib/rules/no-secrets.js && mocha \"staging/**/*.spec.js\"",
"test:staging": "mocha \"staging/**/*.spec.js\""
Expand Down

0 comments on commit da1fc61

Please sign in to comment.