This repository was archived by the owner on Mar 7, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +43
-1
lines changed Expand file tree Collapse file tree 3 files changed +43
-1
lines changed Original file line number Diff line number Diff line change @@ -92,6 +92,7 @@ module.exports = defineConfig({
92
92
'globals' ,
93
93
'greasemonkey' ,
94
94
'jsdoc' ,
95
+ 'multiline' ,
95
96
'nashorn' ,
96
97
'phantomjs' ,
97
98
'prototypejs' ,
Original file line number Diff line number Diff line change
1
+ import type { RuleConfig } from '../rule-config' ;
2
+
3
+ /**
4
+ * Values for comma dangle.
5
+ */
6
+ export type CommaDangleOptionValue = 'never' | 'always' | 'always-multiline' | 'only-multiline' | 'ignore' ;
7
+
8
+ /**
9
+ * Options.
10
+ */
11
+ export type CommaDangleOption =
12
+ | CommaDangleOptionValue
13
+ | {
14
+ arrays ?: CommaDangleOptionValue ;
15
+ objects ?: CommaDangleOptionValue ;
16
+ imports ?: CommaDangleOptionValue ;
17
+ exports ?: CommaDangleOptionValue ;
18
+ functions ?: CommaDangleOptionValue ;
19
+ } ;
20
+
21
+ /**
22
+ * Require or disallow trailing commas.
23
+ *
24
+ * @see [comma-dangle](https://eslint.org/docs/rules/comma-dangle)
25
+ */
26
+ export type CommaDangleRuleConfig = RuleConfig < [ CommaDangleOption ?] > ;
27
+
28
+ /**
29
+ * Require or disallow trailing commas.
30
+ *
31
+ * @see [comma-dangle](https://eslint.org/docs/rules/comma-dangle)
32
+ */
33
+ export interface CommaDangleRule {
34
+ /**
35
+ * Require or disallow trailing commas.
36
+ *
37
+ * @see [comma-dangle](https://eslint.org/docs/rules/comma-dangle)
38
+ */
39
+ 'comma-dangle' : CommaDangleRuleConfig ;
40
+ }
Original file line number Diff line number Diff line change
1
+ import type { CommaDangleRule } from './comma-dangle' ;
1
2
import type { NoDebuggerRule } from './no-debugger' ;
2
3
import type { QuotesRule } from './quotes' ;
3
4
import type { SemiRule } from './semi' ;
4
5
5
6
/**
6
7
* All eslint rules.
7
8
*/
8
- export type EslintRules = NoDebuggerRule & QuotesRule & SemiRule ;
9
+ export type EslintRules = CommaDangleRule & NoDebuggerRule & QuotesRule & SemiRule ;
You can’t perform that action at this time.
0 commit comments