lint: Use Prettier for JavaScript files.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg
2020-07-14 14:34:29 -07:00
committed by Tim Abbott
parent b65d2e063d
commit ed183fb95f
3 changed files with 20 additions and 2 deletions

View File

@@ -1,3 +1,19 @@
module.exports = {
bracketSpacing: false,
tabWidth: 4,
trailingComma: "all",
overrides: [
{
files: ["frontend_tests/casper_tests/*.js", "frontend_tests/casper_lib/*.js"],
options: {
trailingComma: "es5",
},
},
{
files: ["**.yml", "**.yaml"],
options: {
tabWidth: 2,
},
},
],
};