chore: linter fixes

This commit is contained in:
Shariq Ansari 2022-09-28 15:30:59 +05:30
parent 44e9f6b9ab
commit 2c9a447f83
3 changed files with 6 additions and 6 deletions

View file

@ -257,8 +257,8 @@ function get_build_options(files, outdir, plugins, entry_names) {
nodePaths: NODE_PATHS,
define: {
"process.env.NODE_ENV": JSON.stringify(PRODUCTION ? "production" : "development"),
"__VUE_OPTIONS_API__": JSON.stringify(true),
"__VUE_PROD_DEVTOOLS__": JSON.stringify(false),
__VUE_OPTIONS_API__: JSON.stringify(true),
__VUE_PROD_DEVTOOLS__: JSON.stringify(false),
},
plugins: plugins,
watch: get_watch_config(),
@ -388,8 +388,8 @@ async function write_assets_json(metafile) {
if (input.includes(".vue?type=style")) {
// remove hash from css file name
let key = path.basename(asset_path);
key = key.split('.css')[0];
key = key.substring(0, key.lastIndexOf(".")) + '.css';
key = key.split(".css")[0];
key = key.substring(0, key.lastIndexOf(".")) + ".css";
out[key] = asset_path;
}
}

View file

@ -18,7 +18,7 @@ module.exports = {
let modified = include_css + out.text;
out.contents = Buffer.from(modified);
}
if (!fs.existsSync(dir)){
if (!fs.existsSync(dir)) {
fs.mkdirSync(dir);
}
fs.writeFile(out.path, out.contents, (err) => {

View file

@ -26,7 +26,7 @@ export default class QuickListWidget extends Widget {
setup_add_new_button() {
this.add_new_button = $(
`<div class="add-new btn btn-xs pull-right"
`<div class="add-new btn btn-xs pull-right"
title="${__("Add New")} ${__(this.document_type)}
">
${frappe.utils.icon("add", "sm")}