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
+ */
1
6
export type TSLintRuleSeverity = "warning" | "error" | "off" ;
2
7
8
+ /**
9
+ * Rich descriptor and options for an individual TSLint rule.
10
+ */
3
11
export type TSLintRuleOptions = {
4
12
ruleArguments : any [ ] ;
5
13
ruleName : string ;
6
14
ruleSeverity : TSLintRuleSeverity ;
7
15
} ;
8
16
17
+ /**
18
+ * Possible reported severities for an ESLint rule's configuration.
19
+ *
20
+ * @see https://eslint.org/docs/user-guide/configuring#configuring-rules
21
+ */
9
22
export type ESLintRuleSeverity = "warn" | "error" | "off" ;
10
23
24
+ /**
25
+ * Permitted severities for an ESLint rule's configuration.
26
+ *
27
+ * @see https://eslint.org/docs/user-guide/configuring#configuring-rules
28
+ */
11
29
export type RawESLintRuleSeverity = ESLintRuleSeverity | 0 | 1 | 2 ;
12
30
31
+ /**
32
+ * Output descriptor and options for a converted ESLint rule.
33
+ */
13
34
export type ESLintRuleOptions = {
14
35
notices ?: any [ ] ;
15
36
ruleArguments ?: any [ ] ;
16
37
ruleName : string ;
17
38
ruleSeverity : ESLintRuleSeverity ;
18
39
} ;
19
40
41
+ /**
42
+ * Output descriptor and options for a converted ESLint rule, including arguments.
43
+ */
20
44
export type ESLintRuleOptionsWithArguments = ESLintRuleOptions & {
21
45
ruleArguments : any [ ] ;
22
46
} ;
Original file line number Diff line number Diff line change @@ -4,4 +4,5 @@ export { findOriginalConfigurationsStandalone as findOriginalConfigurations } fr
4
4
export { findReportedConfigurationStandalone as findReportedConfiguration } from "./api/findReportedConfigurationStandalone" ;
5
5
export { formatOutput } from "./converters/lintConfigs/formatting/formatOutput" ;
6
6
export { joinConfigConversionResults } from "./converters/lintConfigs/joinConfigConversionResults" ;
7
+ export * from "./converters/lintConfigs/rules/types" ;
7
8
export * from "./types" ;
You can’t perform that action at this time.
0 commit comments