eslint and replace "var" with "const"

This commit is contained in:
Sergio Crisostomo 2017-09-29 09:45:50 +02:00
parent 0a0971da1d
commit 4a7f28fd64
8 changed files with 39 additions and 39 deletions

View file

@ -1,8 +1,8 @@
const readDir = require('fs').readdirSync
const files = readDir('./src/locale/lang')
const entry = {}
const readDir = require('fs').readdirSync;
const files = readDir('./src/locale/lang');
const entry = {};
files.forEach(file => {
const name = file.split('.')[0]
entry[name] = './src/locale/lang/' + file
})
module.exports = entry
const name = file.split('.')[0];
entry[name] = './src/locale/lang/' + file;
});
module.exports = entry;