Skip to content

Commit

Permalink
double quotes
Browse files Browse the repository at this point in the history
  • Loading branch information
icambron committed Sep 28, 2018
1 parent 2827a7e commit c7c05a5
Show file tree
Hide file tree
Showing 74 changed files with 3,220 additions and 2,931 deletions.
1 change: 1 addition & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ module.exports = {
rules: {
radix: 'off',
'prettier/prettier': ['error', prettierOptions],
'linebreak-style': 'off',
// the prettier config override for this is broken
curly: 'off',
// turn this on when https://github.com/eslint/eslint/issues/4680 is done
Expand Down
2 changes: 1 addition & 1 deletion .prettier.js
Original file line number Diff line number Diff line change
@@ -1 +1 @@
module.exports = { singleQuote: true, printWidth: 100 };
module.exports = { printWidth: 100 };
40 changes: 20 additions & 20 deletions benchmarks/datetime.js
Original file line number Diff line number Diff line change
@@ -1,47 +1,47 @@
/* eslint import/no-extraneous-dependencies: off */
/* eslint no-console: off */
import Benchmark from 'benchmark';
import DateTime from '../src/datetime';
import Benchmark from "benchmark";
import DateTime from "../src/datetime";

const suite = new Benchmark.Suite();

const dt = DateTime.local();

suite
.add('DateTime.local', () => {
.add("DateTime.local", () => {
DateTime.local();
})
.add('DateTime.fromObject with locale', () => {
DateTime.fromObject({ locale: 'fr' });
.add("DateTime.fromObject with locale", () => {
DateTime.fromObject({ locale: "fr" });
})
.add('DateTime.local with numbers', () => {
.add("DateTime.local with numbers", () => {
DateTime.local(2017, 5, 15);
})
.add('DateTime.fromString', () => {
DateTime.fromString('1982/05/25 09:10:11.445', 'yyyy/MM/dd HH:mm:ss.SSS');
.add("DateTime.fromString", () => {
DateTime.fromString("1982/05/25 09:10:11.445", "yyyy/MM/dd HH:mm:ss.SSS");
})
.add('DateTime.fromString with zone', () => {
DateTime.fromString('1982/05/25 09:10:11.445', 'yyyy/MM/dd HH:mm:ss.SSS', {
zone: 'America/Los_Angeles'
.add("DateTime.fromString with zone", () => {
DateTime.fromString("1982/05/25 09:10:11.445", "yyyy/MM/dd HH:mm:ss.SSS", {
zone: "America/Los_Angeles"
});
})
.add('DateTime#setZone', () => {
dt.setZone('America/Los_Angeles');
.add("DateTime#setZone", () => {
dt.setZone("America/Los_Angeles");
})
.add('DateTime#toFormat', () => {
dt.toFormat('yyyy-MM-dd');
.add("DateTime#toFormat", () => {
dt.toFormat("yyyy-MM-dd");
})
.add('DateTime#add', () => {
.add("DateTime#add", () => {
dt.plus({ milliseconds: 3434 });
})
.add('DateTime#toISO', () => {
.add("DateTime#toISO", () => {
dt.toISO();
})
.on('cycle', event => {
.on("cycle", event => {
console.log(String(event.target));
})
// eslint-disable-next-line func-names
.on('complete', function() {
console.log('Fastest is ' + this.filter('fastest').map('name'));
.on("complete", function() {
console.log("Fastest is " + this.filter("fastest").map("name"));
})
.run();
Loading

0 comments on commit c7c05a5

Please sign in to comment.