Commit c57c2452bad881fe6db18b5cb722f7a16caa8a10
1 parent
8630dd7617
Exists in
master
ESLINT command-group
Showing 1 changed file with 5 additions and 6 deletions Side-by-side Diff
lib/command-group.js
1 | -"use strict"; | |
2 | - | |
3 | 1 | const defaultCommand = require('./default-command'); |
4 | 2 | |
5 | 3 | const commands = { |
6 | 4 | }; |
7 | 5 | |
8 | -for (let [key, value] of Object.entries(defaultCommand)) { | |
9 | - value.forEach(function(element) { | |
6 | +// eslint-disable-next-line no-restricted-syntax | |
7 | +for (const [key, value] of Object.entries(defaultCommand)) { | |
8 | + value.forEach((element) => { | |
10 | 9 | commands[element.toLowerCase()] = key.toLowerCase(); |
11 | - }) | |
10 | + }); | |
12 | 11 | } |
13 | 12 | |
14 | -module.exports = commands; | |
15 | 13 | \ No newline at end of file |
14 | +module.exports = commands; |