Skip to content

Commit 486be5d

Browse files
committed
fix singleQuote lint
1 parent 8c86cf7 commit 486be5d

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

Diff for: lib/base-path-plugin.js

+10-10
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const path = require("path");
1+
const path = require('path');
22

33
/**
44
* BasePathPlugin class.
@@ -14,19 +14,19 @@ class BasePathPlugin {
1414
this.serverless = serverless;
1515
this.options = options;
1616
this.basePath =
17-
typeof this.serverless.service.custom.functionsBasePath === "string"
17+
typeof this.serverless.service.custom.functionsBasePath === 'string'
1818
? this.serverless.service.custom.functionsBasePath
19-
: "";
19+
: '';
2020

2121
this.hooks = {
22-
"before:run:run": this.rewriteHandlersPath.bind(this),
23-
"before:offline:start": this.rewriteHandlersPath.bind(this),
24-
"before:offline:start:init": this.rewriteHandlersPath.bind(this),
25-
"before:package:initialize": this.rewriteHandlersPath.bind(this),
26-
"before:deploy:function:packageFunction": this.rewriteHandlersPath.bind(
22+
'before:run:run': this.rewriteHandlersPath.bind(this),
23+
'before:offline:start': this.rewriteHandlersPath.bind(this),
24+
'before:offline:start:init': this.rewriteHandlersPath.bind(this),
25+
'before:package:initialize': this.rewriteHandlersPath.bind(this),
26+
'before:deploy:function:packageFunction': this.rewriteHandlersPath.bind(
2727
this
2828
),
29-
"before:invoke:local:invoke": this.rewriteHandlersPath.bind(this)
29+
'before:invoke:local:invoke': this.rewriteHandlersPath.bind(this)
3030
};
3131
}
3232

@@ -50,7 +50,7 @@ class BasePathPlugin {
5050
);
5151
}
5252

53-
if (typeof handlerPath !== "string") {
53+
if (typeof handlerPath !== 'string') {
5454
throw new Error(
5555
`handler path must be a string for function "${functionName}"`
5656
);

0 commit comments

Comments
 (0)