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 +36
-1
lines changed Expand file tree Collapse file tree 3 files changed +36
-1
lines changed Original file line number Diff line number Diff line change @@ -97,6 +97,7 @@ module.exports = defineConfig({
97
97
'greasemonkey' ,
98
98
'jsdoc' ,
99
99
'jsx' ,
100
+ 'linebreak' ,
100
101
'loc' ,
101
102
'multiline' ,
102
103
'nashorn' ,
@@ -108,6 +109,7 @@ module.exports = defineConfig({
108
109
'sharedmemory' ,
109
110
'tsconfig' ,
110
111
'typedarrays' ,
112
+ 'unix' ,
111
113
'webextensions' ,
112
114
'webworker' ,
113
115
'wellknown' ,
Original file line number Diff line number Diff line change 1
1
import type { CommaDangleRule } from './comma-dangle' ;
2
2
import type { CurlyRule } from './curly' ;
3
+ import type { LinebreakStyleRule } from './linebreak-style' ;
3
4
import type { NoDebuggerRule } from './no-debugger' ;
4
5
import type { QuotesRule } from './quotes' ;
5
6
import type { SemiRule } from './semi' ;
6
7
7
8
/**
8
9
* All eslint rules.
9
10
*/
10
- export type EslintRules = CommaDangleRule & CurlyRule & NoDebuggerRule & QuotesRule & SemiRule ;
11
+ export type EslintRules = CommaDangleRule & CurlyRule & LinebreakStyleRule & NoDebuggerRule & QuotesRule & SemiRule ;
Original file line number Diff line number Diff line change
1
+ import type { RuleConfig } from '../rule-config' ;
2
+
3
+ /**
4
+ * Option.
5
+ */
6
+ export type LinebreakStyleOption = 'unix' | 'windows' ;
7
+
8
+ /**
9
+ * Options.
10
+ */
11
+ export type LinebreakStyleOptions = [ LinebreakStyleOption ?] ;
12
+
13
+ /**
14
+ * Enforce consistent linebreak style.
15
+ *
16
+ * @see [linebreak-style](https://eslint.org/docs/rules/linebreak-style)
17
+ */
18
+ export type LinebreakStyleRuleConfig = RuleConfig < LinebreakStyleOptions > ;
19
+
20
+ /**
21
+ * Enforce consistent linebreak style.
22
+ *
23
+ * @see [linebreak-style](https://eslint.org/docs/rules/linebreak-style)
24
+ */
25
+ export interface LinebreakStyleRule {
26
+ /**
27
+ * Enforce consistent linebreak style.
28
+ *
29
+ * @see [linebreak-style](https://eslint.org/docs/rules/linebreak-style)
30
+ */
31
+ 'linebreak-style' : LinebreakStyleRuleConfig ;
32
+ }
You can’t perform that action at this time.
0 commit comments