chore(lint): Enable no-unused-expressions disabling use for webpack.
This commit is contained in:
Родитель
e9d4922ef2
Коммит
5d95ebb5f2
|
@ -215,6 +215,7 @@
|
|||
"no-unneeded-ternary": 2,
|
||||
"no-unreachable": 2,
|
||||
"no-unsafe-finally": 2,
|
||||
"no-unused-expressions": 2,
|
||||
"no-unused-labels": 2,
|
||||
"no-unused-vars": [2, {"vars": "all", "args": "none"}],
|
||||
"no-use-before-define": 2,
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
// Instead, import the bundle like this:
|
||||
// require("lib/vendor.bundle");
|
||||
try {
|
||||
platform_exports;
|
||||
platform_exports; // eslint-disable-line no-unused-expressions
|
||||
} catch (e) {
|
||||
throw new Error("You are trying to import the wrong file. Import lib/vendor.bundle.js instead of lib/vendor-src.js");
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче