File tree 5 files changed +15
-10
lines changed
5 files changed +15
-10
lines changed Original file line number Diff line number Diff line change @@ -12,6 +12,11 @@ rules:
12
12
- error
13
13
- argsIgnorePattern : ^_
14
14
prefer-const : error
15
+ spaced-comment :
16
+ - error
17
+ - always
18
+ - block :
19
+ balanced : true
15
20
overrides :
16
21
# TypeScript rules.
17
22
- files :
Original file line number Diff line number Diff line change @@ -64,7 +64,7 @@ export class PublicAPI {
64
64
65
65
if ( prev !== undefined && prev !== null ) {
66
66
if ( prev instanceof PublicAPI ) {
67
- /// We're upgrading from a previous API to a new one.
67
+ // We're upgrading from a previous API to a new one.
68
68
this . sources = prev . sources ;
69
69
this . config = prev . config ;
70
70
this . invoked = prev . invoked ;
@@ -76,10 +76,10 @@ export class PublicAPI {
76
76
prev . constructor === Object &&
77
77
prev [ "config" ] instanceof Object
78
78
) {
79
- /// We're the first, install user configuration
79
+ // We're the first, install user configuration.
80
80
this . config = prev [ "config" ] ;
81
81
} else {
82
- /// We're the first, but conflicting with someone else.
82
+ // We're the first, but conflicting with someone else.
83
83
this . conflict = prev ;
84
84
}
85
85
}
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ let version_seal = {};
25
25
26
26
if ( process . env . ENABLE_VERSION_SEAL === "true" ) {
27
27
if ( fs . existsSync ( "version_seal.json" ) ) {
28
- //Using the version seal stored previously.
28
+ // Using the version seal stored previously.
29
29
version_seal = JSON . parse ( fs . readFileSync ( "version_seal.json" ) ) ;
30
30
31
31
version_number = version_seal . version_number ;
Original file line number Diff line number Diff line change @@ -23,17 +23,17 @@ async function sign(
23
23
downloadDir : tempDir ,
24
24
} ) ;
25
25
26
- //Since sign-addon doesn't support source upload, let's make the request
27
- //ourselves. We aren't actually using any API methods on AMOClient, just
28
- //the authentication mechanism, so this should be safe.
26
+ // Since sign-addon doesn't support source upload, let's make the request
27
+ // ourselves. We aren't actually using any API methods on AMOClient, just
28
+ // the authentication mechanism, so this should be safe.
29
29
const client = new AMOClient ( {
30
30
apiKey,
31
31
apiSecret,
32
32
apiUrlPrefix : "https://addons.mozilla.org/api/v5" ,
33
33
downloadDir : tempDir ,
34
34
} ) ;
35
35
36
- //NOTE: The extension ID is already wrapped in curly braces in GitHub
36
+ // NOTE: The extension ID is already wrapped in curly braces in GitHub.
37
37
var sourceCodeUpload = client . patch ( {
38
38
url : `/addons/addon/${ encodeURIComponent (
39
39
extensionId
Original file line number Diff line number Diff line change @@ -288,6 +288,6 @@ exports.config = {
288
288
* @param {String } oldSessionId session ID of the old session
289
289
* @param {String } newSessionId session ID of the new session
290
290
*/
291
- //onReload: function(oldSessionId, newSessionId) {
292
- //}
291
+ // onReload: function(oldSessionId, newSessionId) {
292
+ // }
293
293
} ;
You can’t perform that action at this time.
0 commit comments