lint: force dot-notation where applicable (#3677)

This commit is contained in:
Alexander Lichter 2018-08-10 09:19:19 +02:00 committed by Clark Du
parent b4ab2778cb
commit 427e836688
4 changed files with 4 additions and 3 deletions

View File

@ -53,6 +53,7 @@ module.exports = {
"ignoreReadBeforeAssign": false
}],
'dot-notation': 2,
// Do not allow console.logs etc...
'no-console': 2,
'space-before-function-paren': [2, {

View File

@ -41,7 +41,7 @@ exports.loadNuxtConfig = (argv) => {
// Nuxt Mode
options.mode =
(argv['spa'] && 'spa') || (argv['universal'] && 'universal') || options.mode
(argv.spa && 'spa') || (argv.universal && 'universal') || options.mode
return options
}

View File

@ -45,7 +45,7 @@ const generator = new Generator(nuxt, builder)
const generateOptions = {
init: true,
build: argv['build']
build: argv.build
}
generator

View File

@ -166,7 +166,7 @@ Options.from = function (_options) {
}
// Apply mode preset
const modePreset = modes[options.mode || 'universal'] || modes['universal']
const modePreset = modes[options.mode || 'universal'] || modes.universal
_.defaultsDeep(options, modePreset)
// If no server-side rendering, add appear true transition