Skip to content

Commit d2757d6

Browse files
committed
Fix lint
1 parent b9ca8ba commit d2757d6

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

packages/app/static/js/prettier/worker-1.15.1.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
/* eslint-env worker */
2-
/* eslint no-var: off, strict: off */
3-
/* eslint-env worker */
4-
/* eslint no-var: off, strict: off */
2+
/* eslint no-var: off, vars-on-top: off, strict: off, no-use-before-define: off */
53
/* globals prettier prettierPlugins */
64

75
var imported = Object.create(null);
@@ -147,7 +145,7 @@ function handleMessage(message) {
147145
delete options.doc;
148146
delete options.output2;
149147

150-
var plugins = [{ parsers: parsers }];
148+
var plugins = [{ parsers }];
151149
options.plugins = plugins;
152150

153151
var response = {
@@ -167,5 +165,6 @@ function formatCode(text, options) {
167165
return prettier.format(text, options);
168166
} catch (e) {
169167
self.postMessage({ error: e.message, text });
168+
return undefined
170169
}
171170
}

0 commit comments

Comments
 (0)