File tree Expand file tree Collapse file tree 2 files changed +9
-18
lines changed Expand file tree Collapse file tree 2 files changed +9
-18
lines changed Original file line number Diff line number Diff line change @@ -95,14 +95,20 @@ export default function lint(
95
95
selfHosted,
96
96
shouldScanFile : ( fileName ) => fileFilter . wantFile ( fileName ) ,
97
97
minManifestVersion : 2 ,
98
- maxManifestVersion : 2 ,
98
+ maxManifestVersion : 3 ,
99
99
// This mimics the first command line argument from yargs, which should be
100
100
// the directory to the extension.
101
101
_ : [ sourceDir ] ,
102
102
} ;
103
103
104
104
if ( firefoxPreview . includes ( 'mv3' ) ) {
105
- config . maxManifestVersion = 3 ;
105
+ log . warn (
106
+ [
107
+ 'Manifest Version 3 is now officially supported and' ,
108
+ '"--firefox-preview=mv3" is no longer needed.' ,
109
+ 'In addition, the "mv3" value will be removed in the future.' ,
110
+ ] . join ( ' ' )
111
+ ) ;
106
112
}
107
113
108
114
log . debug ( `Running addons-linter on ${ sourceDir } ` ) ;
Original file line number Diff line number Diff line change @@ -143,7 +143,7 @@ describe('lint', () => {
143
143
boring : true ,
144
144
selfHosted : true ,
145
145
minManifestVersion : 2 ,
146
- maxManifestVersion : 2 ,
146
+ maxManifestVersion : 3 ,
147
147
} ,
148
148
} ) ;
149
149
} ) ;
@@ -167,19 +167,4 @@ describe('lint', () => {
167
167
sinon . assert . calledWith ( fileFilter . wantFile , 'path/to/file' ) ;
168
168
} ) ;
169
169
} ) ;
170
-
171
- describe ( 'firefox-preview' , ( ) => {
172
- it ( 'enables MV3 support in addons-linter' , async ( ) => {
173
- const { lint, createLinter } = setUp ( ) ;
174
-
175
- await lint ( { firefoxPreview : [ 'mv3' ] } ) ;
176
-
177
- sinon . assert . calledWithMatch ( createLinter , {
178
- config : {
179
- minManifestVersion : 2 ,
180
- maxManifestVersion : 3 ,
181
- } ,
182
- } ) ;
183
- } ) ;
184
- } ) ;
185
170
} ) ;
You can’t perform that action at this time.
0 commit comments