We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
gajus
Learn more about funding links in repositories.
Report abuse
1 parent 0722187 commit d2c2411Copy full SHA for d2c2411
src/rules/semi.js
@@ -54,6 +54,7 @@ const create = (context) => {
54
};
55
56
return {
57
+ OpaqueType: checkForSemicolon,
58
TypeAlias: checkForSemicolon
59
60
tests/rules/assertions/semi.js
@@ -29,6 +29,16 @@ export default {
29
],
30
options: ['never'],
31
output: 'type FooType = {}'
32
+ },
33
+ {
34
+ code: 'opaque type FooType = {}',
35
+ errors: [
36
37
+ message: 'Missing semicolon.'
38
+ }
39
+ ],
40
+ options: [],
41
+ output: 'opaque type FooType = {};'
42
}
43
44
misconfigured: [
@@ -89,6 +99,9 @@ export default {
89
99
onlyFilesWithFlowAnnotation: true
90
100
91
101
102
103
104
+ code: 'opaque type FooType = {};'
92
105
93
106
]
94
107
0 commit comments