File tree Expand file tree Collapse file tree 3 files changed +23
-7
lines changed
types/eslint-plugin-security Expand file tree Collapse file tree 3 files changed +23
-7
lines changed Original file line number Diff line number Diff line change 11import type { Linter , Rule } from "eslint" ;
2- import { configs , rules } from "eslint-plugin-security" ;
2+ import security from "eslint-plugin-security" ;
33
4- const config : Linter . FlatConfig = configs . recommended ;
5- const rule : Rule . RuleModule = rules [ "detect-unsafe-regex" ] ;
4+ const name : string = security . meta . name ;
5+ const version : string = security . meta . version ;
6+
7+ const rule : Rule . RuleModule = security . rules [ "detect-unsafe-regex" ] ;
8+
9+ const ruleConfig : Linter . Severity = security . rulesConfig [ "detect-unsafe-regex" ] ;
10+
11+ const config : Linter . Config = security . configs . recommended ;
12+ const configLegacy : Linter . LegacyConfig = security . configs [ "recommended-legacy" ] ;
Original file line number Diff line number Diff line change 1- import { Linter , Rule } from "eslint" ;
1+ import type { ESLint , Linter , Rule } from "eslint" ;
22
3- export const configs : {
4- recommended : Linter . FlatConfig ;
5- } ;
3+ export const meta : Required < NonNullable < ESLint . ObjectMetaProperties [ "meta" ] > > ;
64
75export const rules : Record < string , Rule . RuleModule > ;
6+
7+ export const rulesConfig : Record < string , Linter . Severity > ;
8+
9+ export const configs : {
10+ readonly "recommended" : Linter . Config ;
11+ readonly "recommended-legacy" : Linter . LegacyConfig ;
12+ } ;
Original file line number Diff line number Diff line change 1515 {
1616 "name" : " rhysd" ,
1717 "githubUsername" : " rhysd"
18+ },
19+ {
20+ "name" : " Dom Porada" ,
21+ "githubUsername" : " porada"
1822 }
1923 ]
2024}
You can’t perform that action at this time.
0 commit comments