since eslint can auto fix semicolon, standardize all end with semicolon

pull/124/head
LouisLam 3 years ago
parent 579e07ded4
commit 9b8f01cfc6

@ -33,7 +33,7 @@ module.exports = {
}, },
], ],
quotes: ["warn", "double"], quotes: ["warn", "double"],
//semi: ['off', 'never'], semi: "warn",
"vue/html-indent": ["warn", 4], // default: 2 "vue/html-indent": ["warn", 4], // default: 2
"vue/max-attributes-per-line": "off", "vue/max-attributes-per-line": "off",
"vue/singleline-html-element-content-newline": "off", "vue/singleline-html-element-content-newline": "off",
@ -92,4 +92,4 @@ module.exports = {
} }
} }
] ]
} };

@ -35,7 +35,7 @@
"test-install-script-ubuntu": "npm run compile-install-script && docker build --progress plain -f test/test_install_script/ubuntu.dockerfile .", "test-install-script-ubuntu": "npm run compile-install-script && docker build --progress plain -f test/test_install_script/ubuntu.dockerfile .",
"test-install-script-ubuntu1604": "npm run compile-install-script && docker build --progress plain -f test/test_install_script/ubuntu1604.dockerfile .", "test-install-script-ubuntu1604": "npm run compile-install-script && docker build --progress plain -f test/test_install_script/ubuntu1604.dockerfile .",
"simple-dns-server": "node extra/simple-dns-server.js", "simple-dns-server": "node extra/simple-dns-server.js",
"update-language-files_old": "cd extra/update-language-files && node index.js %npm_config_base_lang% && eslint ../../src/languages/**.js --fix", "update-language-files-with-base-lang": "cd extra/update-language-files && node index.js %npm_config_base_lang% && eslint ../../src/languages/**.js --fix",
"update-language-files": "cd extra/update-language-files && node index.js && eslint ../../src/languages/**.js --fix" "update-language-files": "cd extra/update-language-files && node index.js && eslint ../../src/languages/**.js --fix"
}, },
"dependencies": { "dependencies": {

@ -33,12 +33,12 @@ module.exports.statusPageSocketHandler = (socket) => {
callback({ callback({
ok: true, ok: true,
incident: incidentBean.toPublicJSON(), incident: incidentBean.toPublicJSON(),
}) });
} catch (error) { } catch (error) {
callback({ callback({
ok: false, ok: false,
msg: error.message, msg: error.message,
}) });
} }
}); });
@ -50,12 +50,12 @@ module.exports.statusPageSocketHandler = (socket) => {
callback({ callback({
ok: true, ok: true,
}) });
} catch (error) { } catch (error) {
callback({ callback({
ok: false, ok: false,
msg: error.message, msg: error.message,
}) });
} }
}); });
} };

Loading…
Cancel
Save