Skip to content

Commit

Permalink
🤖 Merge PR #69608 [eslint-plugin-security] add types for eslint-plugi…
Browse files Browse the repository at this point in the history
…n-security by @rhysd
  • Loading branch information
rhysd committed May 16, 2024
1 parent f2054d0 commit 1bba575
Show file tree
Hide file tree
Showing 5 changed files with 56 additions and 0 deletions.
5 changes: 5 additions & 0 deletions types/eslint-plugin-security/.npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
*
!**/*.d.ts
!**/*.d.cts
!**/*.d.mts
!**/*.d.*.ts
5 changes: 5 additions & 0 deletions types/eslint-plugin-security/eslint-plugin-security-tests.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import type { Linter, Rule } from "eslint";
import { configs, rules } from "eslint-plugin-security";

const config: Linter.FlatConfig = configs.recommended;
const rule: Rule.RuleModule = rules["detect-unsafe-regex"];
7 changes: 7 additions & 0 deletions types/eslint-plugin-security/index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import { Linter, Rule } from "eslint";

export const configs: {
recommended: Linter.FlatConfig;
};

export const rules: Record<string, Rule.RuleModule>;
20 changes: 20 additions & 0 deletions types/eslint-plugin-security/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"private": true,
"name": "@types/eslint-plugin-security",
"version": "3.0.9999",
"projects": [
"https://github.com/eslint-community/eslint-plugin-security#readme"
],
"dependencies": {
"@types/eslint": "*"
},
"devDependencies": {
"@types/eslint-plugin-security": "workspace:."
},
"owners": [
{
"name": "rhysd",
"githubUsername": "rhysd"
}
]
}
19 changes: 19 additions & 0 deletions types/eslint-plugin-security/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"compilerOptions": {
"module": "node16",
"lib": [
"es6"
],
"noImplicitAny": true,
"noImplicitThis": true,
"strictFunctionTypes": true,
"strictNullChecks": true,
"types": [],
"noEmit": true,
"forceConsistentCasingInFileNames": true
},
"files": [
"index.d.ts",
"eslint-plugin-security-tests.ts"
]
}

0 comments on commit 1bba575

Please sign in to comment.