File tree Expand file tree Collapse file tree 2 files changed +25
-0
lines changed
converters/lintConfigs/rules Expand file tree Collapse file tree 2 files changed +25
-0
lines changed Original file line number Diff line number Diff line change 1+ /**
2+ * Severity level for an individual TSLint rule in a TSLint configuration file.
3+ *
4+ * @see https://palantir.github.io/tslint/usage/configuration
5+ */
16export type TSLintRuleSeverity = "warning" | "error" | "off" ;
27
8+ /**
9+ * Rich descriptor and options for an individual TSLint rule.
10+ */
311export type TSLintRuleOptions = {
412 ruleArguments : any [ ] ;
513 ruleName : string ;
614 ruleSeverity : TSLintRuleSeverity ;
715} ;
816
17+ /**
18+ * Possible reported severities for an ESLint rule's configuration.
19+ *
20+ * @see https://eslint.org/docs/user-guide/configuring#configuring-rules
21+ */
922export type ESLintRuleSeverity = "warn" | "error" | "off" ;
1023
24+ /**
25+ * Permitted severities for an ESLint rule's configuration.
26+ *
27+ * @see https://eslint.org/docs/user-guide/configuring#configuring-rules
28+ */
1129export type RawESLintRuleSeverity = ESLintRuleSeverity | 0 | 1 | 2 ;
1230
31+ /**
32+ * Output descriptor and options for a converted ESLint rule.
33+ */
1334export type ESLintRuleOptions = {
1435 notices ?: any [ ] ;
1536 ruleArguments ?: any [ ] ;
1637 ruleName : string ;
1738 ruleSeverity : ESLintRuleSeverity ;
1839} ;
1940
41+ /**
42+ * Output descriptor and options for a converted ESLint rule, including arguments.
43+ */
2044export type ESLintRuleOptionsWithArguments = ESLintRuleOptions & {
2145 ruleArguments : any [ ] ;
2246} ;
Original file line number Diff line number Diff line change @@ -4,4 +4,5 @@ export { findOriginalConfigurationsStandalone as findOriginalConfigurations } fr
44export { findReportedConfigurationStandalone as findReportedConfiguration } from "./api/findReportedConfigurationStandalone" ;
55export { formatOutput } from "./converters/lintConfigs/formatting/formatOutput" ;
66export { joinConfigConversionResults } from "./converters/lintConfigs/joinConfigConversionResults" ;
7+ export * from "./converters/lintConfigs/rules/types" ;
78export * from "./types" ;
You can’t perform that action at this time.
0 commit comments