Skip to content

Commit

Permalink
Adjust trailing commas
Browse files Browse the repository at this point in the history
  • Loading branch information
arielsalminen committed Feb 23, 2018
1 parent 95da738 commit d1322db
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .prettierrc
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"printWidth": 120,
"singleQuote": false,
"trailingComma": "all",
"trailingComma": "es5",
"bracketSpacing": true,
"jsxBracketSameLine": false,
"semi": false,
Expand Down
6 changes: 3 additions & 3 deletions build/build-system.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ rm(path.join(config.system.assetsRoot, config.system.assetsSubDirectory), err =>
children: false,
chunks: false,
chunkModules: false,
}) + "\n\n",
}) + "\n\n"
)

if (stats.hasErrors()) {
Expand All @@ -38,8 +38,8 @@ rm(path.join(config.system.assetsRoot, config.system.assetsSubDirectory), err =>
console.log(
chalk.yellow(
" Tip: You can now publish your library as a private NPM module.\n" +
" Users can import it as an ES6 module: import DesignSystem from 'system'\n",
),
" Users can import it as an ES6 module: import DesignSystem from 'system'\n"
)
)
})
})
6 changes: 3 additions & 3 deletions build/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ rm(path.join(config.build.assetsRoot, config.build.assetsSubDirectory), err => {
children: false,
chunks: false,
chunkModules: false,
}) + "\n\n",
}) + "\n\n"
)

if (stats.hasErrors()) {
Expand All @@ -38,8 +38,8 @@ rm(path.join(config.build.assetsRoot, config.build.assetsSubDirectory), err => {
console.log(
chalk.yellow(
" Tip: built files are meant to be served over an HTTP server.\n" +
" Opening index.html over file:// won't work.\n",
),
" Opening index.html over file:// won't work.\n"
)
)
})
})
2 changes: 1 addition & 1 deletion build/check-versions.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ module.exports = function() {
const mod = versionRequirements[i]
if (!semver.satisfies(mod.currentVersion, mod.versionRequirement)) {
warnings.push(
mod.name + ": " + chalk.red(mod.currentVersion) + " should be " + chalk.green(mod.versionRequirement),
mod.name + ": " + chalk.red(mod.currentVersion) + " should be " + chalk.green(mod.versionRequirement)
)
}
}
Expand Down
2 changes: 1 addition & 1 deletion build/webpack.dev.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ module.exports = new Promise((resolve, reject) => {
// should the console be cleared between each compilation?
// default is true
clearConsole: true,
}),
})
)

resolve(devWebpackConfig)
Expand Down
2 changes: 1 addition & 1 deletion build/webpack.prod.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ if (config.build.productionGzip) {
test: new RegExp("\\.(" + config.build.productionGzipExtensions.join("|") + ")$"),
threshold: 10240,
minRatio: 0.8,
}),
})
)
}

Expand Down
2 changes: 1 addition & 1 deletion build/webpack.system.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ if (config.system.productionGzip) {
test: new RegExp("\\.(" + config.system.productionGzipExtensions.join("|") + ")$"),
threshold: 10240,
minRatio: 0.8,
}),
})
)
}

Expand Down

0 comments on commit d1322db

Please sign in to comment.