my nvim and vscode are finally using the same settings
This commit is contained in:
parent
58077a5d63
commit
a5e03facbe
11 changed files with 757 additions and 757 deletions
|
@ -13,7 +13,7 @@ module.exports = {
|
||||||
},
|
},
|
||||||
plugins: ["@typescript-eslint"],
|
plugins: ["@typescript-eslint"],
|
||||||
rules: {
|
rules: {
|
||||||
indent: ["error", 2, { SwitchCase: 1 }],
|
indent: ["error", 4, { SwitchCase: 1 }],
|
||||||
"linebreak-style": ["error", "unix"],
|
"linebreak-style": ["error", "unix"],
|
||||||
quotes: ["error", "double"],
|
quotes: ["error", "double"],
|
||||||
semi: ["error", "always"],
|
semi: ["error", "always"],
|
||||||
|
|
|
@ -20,7 +20,7 @@ const fetchUsers = (): Promise<[UserRow]> => {
|
||||||
resolve(rows);
|
resolve(rows);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
}
|
};
|
||||||
|
|
||||||
const fetchSettings: Middleware = async (req, res, next) => {
|
const fetchSettings: Middleware = async (req, res, next) => {
|
||||||
res.locals.users = req.user.username == "admin" ? await fetchUsers() : null;
|
res.locals.users = req.user.username == "admin" ? await fetchUsers() : null;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue