mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-26 23:52:06 +00:00
lint: force dot-notation where applicable (#3677)
This commit is contained in:
parent
b4ab2778cb
commit
427e836688
@ -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, {
|
||||
|
@ -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
|
||||
}
|
||||
|
@ -45,7 +45,7 @@ const generator = new Generator(nuxt, builder)
|
||||
|
||||
const generateOptions = {
|
||||
init: true,
|
||||
build: argv['build']
|
||||
build: argv.build
|
||||
}
|
||||
|
||||
generator
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user