mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-23 00:46:16 -04:00
lint: Fix straightforward ESLint errors
This commit is contained in:
parent
59c03bde20
commit
6f2f20233f
9 changed files with 57 additions and 67 deletions
|
@ -141,7 +141,7 @@ exports.padOptions = {
|
|||
alwaysShowChat: false,
|
||||
chatAndUsers: false,
|
||||
lang: 'en-gb',
|
||||
},
|
||||
};
|
||||
|
||||
/**
|
||||
* Whether certain shortcut keys are enabled for a user in the pad
|
||||
|
@ -169,7 +169,7 @@ exports.padShortcutEnabled = {
|
|||
ctrlHome: true,
|
||||
pageUp: true,
|
||||
pageDown: true,
|
||||
},
|
||||
};
|
||||
|
||||
/**
|
||||
* The toolbar buttons and order.
|
||||
|
@ -466,7 +466,7 @@ exports.getEpVersion = () => require('../../package.json').version;
|
|||
* both "settings.json" and "credentials.json".
|
||||
*/
|
||||
const storeSettings = (settingsObj) => {
|
||||
for (const i in settingsObj) {
|
||||
for (const i of Object.keys(settingsObj || {})) {
|
||||
// test if the setting starts with a lowercase character
|
||||
if (i.charAt(0).search('[a-z]') !== 0) {
|
||||
console.warn(`Settings should start with a lowercase character: '${i}'`);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue