Skip to content

Commit

Permalink
fix: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesgeorge007 committed Dec 22, 2019
1 parent 518b3ef commit 10c29c9
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ require('yargonaut')
.helpStyle('green')
.errorsStyle('red.bold')

const yargs = require('yargs')
require('yargs')
.demandCommand(1, chalk.red('[ERROR] 0 arguments passed. Please specify a command'))
.strict()
.recommendCommands()
Expand Down
3 changes: 2 additions & 1 deletion lib/commands/init.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ const replace = function (file, tpl, replace) {

const PKG = util.pkg()

// eslint-disable-next-line
module.exports = function (path = '', local, theme) {
const msg =
'\n' +
Expand All @@ -28,7 +29,7 @@ module.exports = function (path = '', local, theme) {
path = cwd(path || '.')
const target = file => resolve(path, file)
const readme = exists(cwd('README.md')) || pwd('template/README.md')
const main = pwd('template/index.html')
let main = pwd('template/index.html')

if (local) {
main = pwd('template/index.local.html')
Expand Down
3 changes: 2 additions & 1 deletion tools/locales/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ const fse = require('fs-extra')

class Locales {
constructor() {
// eslint-disable-next-line
this.y18n = Y18n({
directory: path.resolve(__dirname),
updateFiles: false,
Expand All @@ -20,7 +21,7 @@ class Locales {

try {
this._existsLocaleFile(locale)
} catch (e) {
} catch (e) { // eslint-disable-line
return 'en'
}

Expand Down

0 comments on commit 10c29c9

Please sign in to comment.