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

This commit is contained in:
LouisLam 2021-09-16 22:57:34 +08:00
parent 579e07ded4
commit 9b8f01cfc6
3 changed files with 8 additions and 8 deletions

View file

@ -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 = {
} }
} }
] ]
} };

View file

@ -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": {

View file

@ -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,
}) });
} }
}); });
} };