Skip to content
This repository has been archived by the owner on Mar 27, 2018. It is now read-only.

Commit

Permalink
#10: Fixes prettier config
Browse files Browse the repository at this point in the history
  • Loading branch information
kennethaasan committed Mar 8, 2017
1 parent 35796b5 commit 70685e6
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion app/helpers/context_menu.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,6 @@
}
}
},
false,
false
);
})();
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"coverage": "npm test -- -R scripts/istanbul-reporter",
"pree2e": "gulp build-e2e --env=test",
"e2e": "mocha app/e2e.js.autogenerated --require source-map-support/register",
"prettier": "prettier --write --print-width 80 --single-quote --trailing-comma all \"{app,build,config,e2e,scripts,src,tasks}/**/*.js\"",
"prettier": "prettier --write --print-width 80 --single-quote --trailing-comma es5 \"{app,build,config,e2e,scripts,src,tasks}/**/*.js\"",
"precommit": "lint-staged"
},
"lint-staged": {
Expand Down
2 changes: 1 addition & 1 deletion src/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ var appDir = jetpack.cwd(app.getAppPath());
// here files like it is node.js! Welcome to Electron world :)
console.log(
'The author of this app is:',
appDir.read('package.json', 'json').author,
appDir.read('package.json', 'json').author
);

document.addEventListener('DOMContentLoaded', function() {
Expand Down
2 changes: 1 addition & 1 deletion src/background.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ app.on('ready', function() {
});

mainWindow.webContents.setUserAgent(
'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.87 Safari/537.36',
'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.87 Safari/537.36'
);

mainWindow.loadURL('https://teams.microsoft.com/');
Expand Down
4 changes: 2 additions & 2 deletions tasks/build_app.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,13 +47,13 @@ gulp.task('watch', function() {
'src/**/*.js',
batch(function(events, done) {
gulp.start('bundle', beepOnError(done));
}),
})
);
watch(
'src/**/*.less',
batch(function(events, done) {
gulp.start('less', beepOnError(done));
}),
})
);
});

Expand Down
4 changes: 2 additions & 2 deletions tasks/build_tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ gulp.task('build-unit', ['environment'], function() {
return generateEntryFile(
srcDir,
'specs.js.autogenerated',
'*.spec.js',
'*.spec.js'
).then(function(entryFilePath) {
return bundle(entryFilePath, destDir.path('specs.js.autogenerated'), {
rollupPlugins: [
Expand All @@ -53,7 +53,7 @@ gulp.task('build-e2e', ['build'], function() {
return generateEntryFile(
srcDir,
'e2e.js.autogenerated',
'*.e2e.js',
'*.e2e.js'
).then(function(entryFilePath) {
return bundle(entryFilePath, destDir.path('e2e.js.autogenerated'));
});
Expand Down
4 changes: 2 additions & 2 deletions tasks/bundle.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ var generateExternalModulesList = function() {
nodeBuiltInModules,
electronBuiltInModules,
Object.keys(appManifest.dependencies),
Object.keys(appManifest.devDependencies),
Object.keys(appManifest.devDependencies)
);
};

Expand Down Expand Up @@ -77,7 +77,7 @@ module.exports = function(src, dest, opts) {
return Promise.all([
jetpack.writeAsync(
dest,
isolatedCode + '\n//# sourceMappingURL=' + jsFile + '.map',
isolatedCode + '\n//# sourceMappingURL=' + jsFile + '.map'
),
jetpack.writeAsync(dest + '.map', result.map.toString()),
]);
Expand Down

0 comments on commit 70685e6

Please sign in to comment.