eslint and replace "var" with "const"
This commit is contained in:
parent
0a0971da1d
commit
4a7f28fd64
8 changed files with 39 additions and 39 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue