diff --git a/examples/test-data.ts b/examples/test-data.ts index c69c7c8..7c8afb5 100644 --- a/examples/test-data.ts +++ b/examples/test-data.ts @@ -5,595 +5,595 @@ import { Interval } from '../src'; // from https://datamarket.com/data/set/232f/chemical-concentration-readings#!ds=232f&display=line const UNPARSED_DATA = [{ - timestamp: "1975-01-01T00:00:00", + timestamp: '1975-01-01T00:00:00', value: 17.0 }, { - timestamp: "1975-01-01T02:00:00", + timestamp: '1975-01-01T02:00:00', value: 16.6 }, { - timestamp: "1975-01-01T04:00:00", + timestamp: '1975-01-01T04:00:00', value: 16.3 }, { - timestamp: "1975-01-01T06:00:00", + timestamp: '1975-01-01T06:00:00', value: 16.1 }, { - timestamp: "1975-01-01T08:00:00", + timestamp: '1975-01-01T08:00:00', value: 17.1 }, { - timestamp: "1975-01-01T10:00:00", + timestamp: '1975-01-01T10:00:00', value: 16.9 }, { - timestamp: "1975-01-01T12:00:00", + timestamp: '1975-01-01T12:00:00', value: 16.8 }, { - timestamp: "1975-01-01T14:00:00", + timestamp: '1975-01-01T14:00:00', value: 17.4 }, { - timestamp: "1975-01-01T16:00:00", + timestamp: '1975-01-01T16:00:00', value: 17.1 }, { - timestamp: "1975-01-01T18:00:00", + timestamp: '1975-01-01T18:00:00', value: 17.0 }, { - timestamp: "1975-01-01T20:00:00", + timestamp: '1975-01-01T20:00:00', value: 16.7 }, { - timestamp: "1975-01-01T22:00:00", + timestamp: '1975-01-01T22:00:00', value: 17.4 }, { - timestamp: "1975-01-02T00:00:00", + timestamp: '1975-01-02T00:00:00', value: 17.2 }, { - timestamp: "1975-01-02T02:00:00", + timestamp: '1975-01-02T02:00:00', value: 17.4 }, { - timestamp: "1975-01-02T04:00:00", + timestamp: '1975-01-02T04:00:00', value: 17.4 }, { - timestamp: "1975-01-02T06:00:00", + timestamp: '1975-01-02T06:00:00', value: 17.0 }, { - timestamp: "1975-01-02T08:00:00", + timestamp: '1975-01-02T08:00:00', value: 17.3 }, { - timestamp: "1975-01-02T10:00:00", + timestamp: '1975-01-02T10:00:00', value: 17.2 }, { - timestamp: "1975-01-02T12:00:00", + timestamp: '1975-01-02T12:00:00', value: 17.4 }, { - timestamp: "1975-01-02T14:00:00", + timestamp: '1975-01-02T14:00:00', value: 16.8 }, { - timestamp: "1975-01-02T16:00:00", + timestamp: '1975-01-02T16:00:00', value: 17.1 }, { - timestamp: "1975-01-02T18:00:00", + timestamp: '1975-01-02T18:00:00', value: 17.4 }, { - timestamp: "1975-01-02T20:00:00", + timestamp: '1975-01-02T20:00:00', value: 17.4 }, { - timestamp: "1975-01-02T22:00:00", + timestamp: '1975-01-02T22:00:00', value: 17.5 }, { - timestamp: "1975-01-03T00:00:00", + timestamp: '1975-01-03T00:00:00', value: 17.4 }, { - timestamp: "1975-01-03T02:00:00", + timestamp: '1975-01-03T02:00:00', value: 17.6 }, { - timestamp: "1975-01-03T04:00:00", + timestamp: '1975-01-03T04:00:00', value: 17.4 }, { - timestamp: "1975-01-03T06:00:00", + timestamp: '1975-01-03T06:00:00', value: 17.3 }, { - timestamp: "1975-01-03T08:00:00", + timestamp: '1975-01-03T08:00:00', value: 17.0 }, { - timestamp: "1975-01-03T10:00:00", + timestamp: '1975-01-03T10:00:00', value: 17.8 }, { - timestamp: "1975-01-03T12:00:00", + timestamp: '1975-01-03T12:00:00', value: 17.5 }, { - timestamp: "1975-01-03T14:00:00", + timestamp: '1975-01-03T14:00:00', value: 18.1 }, { - timestamp: "1975-01-03T16:00:00", + timestamp: '1975-01-03T16:00:00', value: 17.5 }, { - timestamp: "1975-01-03T18:00:00", + timestamp: '1975-01-03T18:00:00', value: 17.4 }, { - timestamp: "1975-01-03T20:00:00", + timestamp: '1975-01-03T20:00:00', value: 17.4 }, { - timestamp: "1975-01-03T22:00:00", + timestamp: '1975-01-03T22:00:00', value: 17.1 }, { - timestamp: "1975-01-04T00:00:00", + timestamp: '1975-01-04T00:00:00', value: 17.6 }, { - timestamp: "1975-01-04T02:00:00", + timestamp: '1975-01-04T02:00:00', value: 17.7 }, { - timestamp: "1975-01-04T04:00:00", + timestamp: '1975-01-04T04:00:00', value: 17.4 }, { - timestamp: "1975-01-04T06:00:00", + timestamp: '1975-01-04T06:00:00', value: 17.8 }, { - timestamp: "1975-01-04T08:00:00", + timestamp: '1975-01-04T08:00:00', value: 17.6 }, { - timestamp: "1975-01-04T10:00:00", + timestamp: '1975-01-04T10:00:00', value: 17.5 }, { - timestamp: "1975-01-04T12:00:00", + timestamp: '1975-01-04T12:00:00', value: 16.5 }, { - timestamp: "1975-01-04T14:00:00", + timestamp: '1975-01-04T14:00:00', value: 17.8 }, { - timestamp: "1975-01-04T16:00:00", + timestamp: '1975-01-04T16:00:00', value: 17.3 }, { - timestamp: "1975-01-04T18:00:00", + timestamp: '1975-01-04T18:00:00', value: 17.3 }, { - timestamp: "1975-01-04T20:00:00", + timestamp: '1975-01-04T20:00:00', value: 17.1 }, { - timestamp: "1975-01-04T22:00:00", + timestamp: '1975-01-04T22:00:00', value: 17.4 }, { - timestamp: "1975-01-05T00:00:00", + timestamp: '1975-01-05T00:00:00', value: 16.9 }, { - timestamp: "1975-01-05T02:00:00", + timestamp: '1975-01-05T02:00:00', value: 17.3 }, { - timestamp: "1975-01-05T04:00:00", + timestamp: '1975-01-05T04:00:00', value: 17.6 }, { - timestamp: "1975-01-05T06:00:00", + timestamp: '1975-01-05T06:00:00', value: 16.9 }, { - timestamp: "1975-01-05T08:00:00", + timestamp: '1975-01-05T08:00:00', value: 16.7 }, { - timestamp: "1975-01-05T10:00:00", + timestamp: '1975-01-05T10:00:00', value: 16.8 }, { - timestamp: "1975-01-05T12:00:00", + timestamp: '1975-01-05T12:00:00', value: 16.8 }, { - timestamp: "1975-01-05T14:00:00", + timestamp: '1975-01-05T14:00:00', value: 17.2 }, { - timestamp: "1975-01-05T16:00:00", + timestamp: '1975-01-05T16:00:00', value: 16.8 }, { - timestamp: "1975-01-05T18:00:00", + timestamp: '1975-01-05T18:00:00', value: 17.6 }, { - timestamp: "1975-01-05T20:00:00", + timestamp: '1975-01-05T20:00:00', value: 17.2 }, { - timestamp: "1975-01-05T22:00:00", + timestamp: '1975-01-05T22:00:00', value: 16.6 }, { - timestamp: "1975-01-06T00:00:00", + timestamp: '1975-01-06T00:00:00', value: 17.1 }, { - timestamp: "1975-01-06T02:00:00", + timestamp: '1975-01-06T02:00:00', value: 16.9 }, { - timestamp: "1975-01-06T04:00:00", + timestamp: '1975-01-06T04:00:00', value: 16.6 }, { - timestamp: "1975-01-06T06:00:00", + timestamp: '1975-01-06T06:00:00', value: 18.0 }, { - timestamp: "1975-01-06T08:00:00", + timestamp: '1975-01-06T08:00:00', value: 17.2 }, { - timestamp: "1975-01-06T10:00:00", + timestamp: '1975-01-06T10:00:00', value: 17.3 }, { - timestamp: "1975-01-06T12:00:00", + timestamp: '1975-01-06T12:00:00', value: 17.0 }, { - timestamp: "1975-01-06T14:00:00", + timestamp: '1975-01-06T14:00:00', value: 16.9 }, { - timestamp: "1975-01-06T16:00:00", + timestamp: '1975-01-06T16:00:00', value: 17.3 }, { - timestamp: "1975-01-06T18:00:00", + timestamp: '1975-01-06T18:00:00', value: 16.8 }, { - timestamp: "1975-01-06T20:00:00", + timestamp: '1975-01-06T20:00:00', value: 17.3 }, { - timestamp: "1975-01-06T22:00:00", + timestamp: '1975-01-06T22:00:00', value: 17.4 }, { - timestamp: "1975-01-07T00:00:00", + timestamp: '1975-01-07T00:00:00', value: 17.7 }, { - timestamp: "1975-01-07T02:00:00", + timestamp: '1975-01-07T02:00:00', value: 16.8 }, { - timestamp: "1975-01-07T04:00:00", + timestamp: '1975-01-07T04:00:00', value: 16.9 }, { - timestamp: "1975-01-07T06:00:00", + timestamp: '1975-01-07T06:00:00', value: 17.0 }, { - timestamp: "1975-01-07T08:00:00", + timestamp: '1975-01-07T08:00:00', value: 16.9 }, { - timestamp: "1975-01-07T10:00:00", + timestamp: '1975-01-07T10:00:00', value: 17.0 }, { - timestamp: "1975-01-07T12:00:00", + timestamp: '1975-01-07T12:00:00', value: 16.6 }, { - timestamp: "1975-01-07T14:00:00", + timestamp: '1975-01-07T14:00:00', value: 16.7 }, { - timestamp: "1975-01-07T16:00:00", + timestamp: '1975-01-07T16:00:00', value: 16.8 }, { - timestamp: "1975-01-07T18:00:00", + timestamp: '1975-01-07T18:00:00', value: 16.7 }, { - timestamp: "1975-01-07T20:00:00", + timestamp: '1975-01-07T20:00:00', value: 16.4 }, { - timestamp: "1975-01-07T22:00:00", + timestamp: '1975-01-07T22:00:00', value: 16.5 }, { - timestamp: "1975-01-08T00:00:00", + timestamp: '1975-01-08T00:00:00', value: 16.4 }, { - timestamp: "1975-01-08T02:00:00", + timestamp: '1975-01-08T02:00:00', value: 16.6 }, { - timestamp: "1975-01-08T04:00:00", + timestamp: '1975-01-08T04:00:00', value: 16.5 }, { - timestamp: "1975-01-08T06:00:00", + timestamp: '1975-01-08T06:00:00', value: 16.7 }, { - timestamp: "1975-01-08T08:00:00", + timestamp: '1975-01-08T08:00:00', value: 16.4 }, { - timestamp: "1975-01-08T10:00:00", + timestamp: '1975-01-08T10:00:00', value: 16.4 }, { - timestamp: "1975-01-08T12:00:00", + timestamp: '1975-01-08T12:00:00', value: 16.2 }, { - timestamp: "1975-01-08T14:00:00", + timestamp: '1975-01-08T14:00:00', value: 16.4 }, { - timestamp: "1975-01-08T16:00:00", + timestamp: '1975-01-08T16:00:00', value: 16.3 }, { - timestamp: "1975-01-08T18:00:00", + timestamp: '1975-01-08T18:00:00', value: 16.4 }, { - timestamp: "1975-01-08T20:00:00", + timestamp: '1975-01-08T20:00:00', value: 17.0 }, { - timestamp: "1975-01-08T22:00:00", + timestamp: '1975-01-08T22:00:00', value: 16.9 }, { - timestamp: "1975-01-09T00:00:00", + timestamp: '1975-01-09T00:00:00', value: 17.1 }, { - timestamp: "1975-01-09T02:00:00", + timestamp: '1975-01-09T02:00:00', value: 17.1 }, { - timestamp: "1975-01-09T04:00:00", + timestamp: '1975-01-09T04:00:00', value: 16.7 }, { - timestamp: "1975-01-09T06:00:00", + timestamp: '1975-01-09T06:00:00', value: 16.9 }, { - timestamp: "1975-01-09T08:00:00", + timestamp: '1975-01-09T08:00:00', value: 16.5 }, { - timestamp: "1975-01-09T10:00:00", + timestamp: '1975-01-09T10:00:00', value: 17.2 }, { - timestamp: "1975-01-09T12:00:00", + timestamp: '1975-01-09T12:00:00', value: 16.4 }, { - timestamp: "1975-01-09T14:00:00", + timestamp: '1975-01-09T14:00:00', value: 17.0 }, { - timestamp: "1975-01-09T16:00:00", + timestamp: '1975-01-09T16:00:00', value: 17.0 }, { - timestamp: "1975-01-09T18:00:00", + timestamp: '1975-01-09T18:00:00', value: 16.7 }, { - timestamp: "1975-01-09T20:00:00", + timestamp: '1975-01-09T20:00:00', value: 16.2 }, { - timestamp: "1975-01-09T22:00:00", + timestamp: '1975-01-09T22:00:00', value: 16.6 }, { - timestamp: "1975-01-10T00:00:00", + timestamp: '1975-01-10T00:00:00', value: 16.9 }, { - timestamp: "1975-01-10T02:00:00", + timestamp: '1975-01-10T02:00:00', value: 16.5 }, { - timestamp: "1975-01-10T04:00:00", + timestamp: '1975-01-10T04:00:00', value: 16.6 }, { - timestamp: "1975-01-10T06:00:00", + timestamp: '1975-01-10T06:00:00', value: 16.6 }, { - timestamp: "1975-01-10T08:00:00", + timestamp: '1975-01-10T08:00:00', value: 17.0 }, { - timestamp: "1975-01-10T10:00:00", + timestamp: '1975-01-10T10:00:00', value: 17.1 }, { - timestamp: "1975-01-10T12:00:00", + timestamp: '1975-01-10T12:00:00', value: 17.1 }, { - timestamp: "1975-01-10T14:00:00", + timestamp: '1975-01-10T14:00:00', value: 16.7 }, { - timestamp: "1975-01-10T16:00:00", + timestamp: '1975-01-10T16:00:00', value: 16.8 }, { - timestamp: "1975-01-10T18:00:00", + timestamp: '1975-01-10T18:00:00', value: 16.3 }, { - timestamp: "1975-01-10T20:00:00", + timestamp: '1975-01-10T20:00:00', value: 16.6 }, { - timestamp: "1975-01-10T22:00:00", + timestamp: '1975-01-10T22:00:00', value: 16.8 }, { - timestamp: "1975-01-11T00:00:00", + timestamp: '1975-01-11T00:00:00', value: 16.9 }, { - timestamp: "1975-01-11T02:00:00", + timestamp: '1975-01-11T02:00:00', value: 17.1 }, { - timestamp: "1975-01-11T04:00:00", + timestamp: '1975-01-11T04:00:00', value: 16.8 }, { - timestamp: "1975-01-11T06:00:00", + timestamp: '1975-01-11T06:00:00', value: 17.0 }, { - timestamp: "1975-01-11T08:00:00", + timestamp: '1975-01-11T08:00:00', value: 17.2 }, { - timestamp: "1975-01-11T10:00:00", + timestamp: '1975-01-11T10:00:00', value: 17.3 }, { - timestamp: "1975-01-11T12:00:00", + timestamp: '1975-01-11T12:00:00', value: 17.2 }, { - timestamp: "1975-01-11T14:00:00", + timestamp: '1975-01-11T14:00:00', value: 17.3 }, { - timestamp: "1975-01-11T16:00:00", + timestamp: '1975-01-11T16:00:00', value: 17.2 }, { - timestamp: "1975-01-11T18:00:00", + timestamp: '1975-01-11T18:00:00', value: 17.2 }, { - timestamp: "1975-01-11T20:00:00", + timestamp: '1975-01-11T20:00:00', value: 17.5 }, { - timestamp: "1975-01-11T22:00:00", + timestamp: '1975-01-11T22:00:00', value: 16.9 }, { - timestamp: "1975-01-12T00:00:00", + timestamp: '1975-01-12T00:00:00', value: 16.9 }, { - timestamp: "1975-01-12T02:00:00", + timestamp: '1975-01-12T02:00:00', value: 16.9 }, { - timestamp: "1975-01-12T04:00:00", + timestamp: '1975-01-12T04:00:00', value: 17.0 }, { - timestamp: "1975-01-12T06:00:00", + timestamp: '1975-01-12T06:00:00', value: 16.5 }, { - timestamp: "1975-01-12T08:00:00", + timestamp: '1975-01-12T08:00:00', value: 16.7 }, { - timestamp: "1975-01-12T10:00:00", + timestamp: '1975-01-12T10:00:00', value: 16.8 }, { - timestamp: "1975-01-12T12:00:00", + timestamp: '1975-01-12T12:00:00', value: 16.7 }, { - timestamp: "1975-01-12T14:00:00", + timestamp: '1975-01-12T14:00:00', value: 16.7 }, { - timestamp: "1975-01-12T16:00:00", + timestamp: '1975-01-12T16:00:00', value: 16.6 }, { - timestamp: "1975-01-12T18:00:00", + timestamp: '1975-01-12T18:00:00', value: 16.5 }, { - timestamp: "1975-01-12T20:00:00", + timestamp: '1975-01-12T20:00:00', value: 17.0 }, { - timestamp: "1975-01-12T22:00:00", + timestamp: '1975-01-12T22:00:00', value: 16.7 }, { - timestamp: "1975-01-13T00:00:00", + timestamp: '1975-01-13T00:00:00', value: 16.7 }, { - timestamp: "1975-01-13T02:00:00", + timestamp: '1975-01-13T02:00:00', value: 16.9 }, { - timestamp: "1975-01-13T04:00:00", + timestamp: '1975-01-13T04:00:00', value: 17.4 }, { - timestamp: "1975-01-13T06:00:00", + timestamp: '1975-01-13T06:00:00', value: 17.1 }, { - timestamp: "1975-01-13T08:00:00", + timestamp: '1975-01-13T08:00:00', value: 17.0 }, { - timestamp: "1975-01-13T10:00:00", + timestamp: '1975-01-13T10:00:00', value: 16.8 }, { - timestamp: "1975-01-13T12:00:00", + timestamp: '1975-01-13T12:00:00', value: 17.2 }, { - timestamp: "1975-01-13T14:00:00", + timestamp: '1975-01-13T14:00:00', value: 17.2 }, { - timestamp: "1975-01-13T16:00:00", + timestamp: '1975-01-13T16:00:00', value: 17.4 }, { - timestamp: "1975-01-13T18:00:00", + timestamp: '1975-01-13T18:00:00', value: 17.2 }, { - timestamp: "1975-01-13T20:00:00", + timestamp: '1975-01-13T20:00:00', value: 16.9 }, { - timestamp: "1975-01-13T22:00:00", + timestamp: '1975-01-13T22:00:00', value: 16.8 }, { - timestamp: "1975-01-14T00:00:00", + timestamp: '1975-01-14T00:00:00', value: 17.0 }, { - timestamp: "1975-01-14T02:00:00", + timestamp: '1975-01-14T02:00:00', value: 17.4 }, { - timestamp: "1975-01-14T04:00:00", + timestamp: '1975-01-14T04:00:00', value: 17.2 }, { - timestamp: "1975-01-14T06:00:00", + timestamp: '1975-01-14T06:00:00', value: 17.2 }, { - timestamp: "1975-01-14T08:00:00", + timestamp: '1975-01-14T08:00:00', value: 17.1 }, { - timestamp: "1975-01-14T10:00:00", + timestamp: '1975-01-14T10:00:00', value: 17.1 }, { - timestamp: "1975-01-14T12:00:00", + timestamp: '1975-01-14T12:00:00', value: 17.1 }, { - timestamp: "1975-01-14T14:00:00", + timestamp: '1975-01-14T14:00:00', value: 17.4 }, { - timestamp: "1975-01-14T16:00:00", + timestamp: '1975-01-14T16:00:00', value: 17.2 }, { - timestamp: "1975-01-14T18:00:00", + timestamp: '1975-01-14T18:00:00', value: 16.9 }, { - timestamp: "1975-01-14T20:00:00", + timestamp: '1975-01-14T20:00:00', value: 16.9 }, { - timestamp: "1975-01-14T22:00:00", + timestamp: '1975-01-14T22:00:00', value: 17.0 }, { - timestamp: "1975-01-15T00:00:00", + timestamp: '1975-01-15T00:00:00', value: 16.7 }, { - timestamp: "1975-01-15T02:00:00", + timestamp: '1975-01-15T02:00:00', value: 16.9 }, { - timestamp: "1975-01-15T04:00:00", + timestamp: '1975-01-15T04:00:00', value: 17.3 }, { - timestamp: "1975-01-15T06:00:00", + timestamp: '1975-01-15T06:00:00', value: 17.8 }, { - timestamp: "1975-01-15T08:00:00", + timestamp: '1975-01-15T08:00:00', value: 17.8 }, { - timestamp: "1975-01-15T10:00:00", + timestamp: '1975-01-15T10:00:00', value: 17.6 }, { - timestamp: "1975-01-15T12:00:00", + timestamp: '1975-01-15T12:00:00', value: 17.5 }, { - timestamp: "1975-01-15T14:00:00", + timestamp: '1975-01-15T14:00:00', value: 17.0 }, { - timestamp: "1975-01-15T16:00:00", + timestamp: '1975-01-15T16:00:00', value: 16.9 }, { - timestamp: "1975-01-15T18:00:00", + timestamp: '1975-01-15T18:00:00', value: 17.1 }, { - timestamp: "1975-01-15T20:00:00", + timestamp: '1975-01-15T20:00:00', value: 17.2 }, { - timestamp: "1975-01-15T22:00:00", + timestamp: '1975-01-15T22:00:00', value: 17.4 }, { - timestamp: "1975-01-16T00:00:00", + timestamp: '1975-01-16T00:00:00', value: 17.5 }, { - timestamp: "1975-01-16T02:00:00", + timestamp: '1975-01-16T02:00:00', value: 17.9 }, { - timestamp: "1975-01-16T04:00:00", + timestamp: '1975-01-16T04:00:00', value: 17.0 }, { - timestamp: "1975-01-16T06:00:00", + timestamp: '1975-01-16T06:00:00', value: 17.0 }, { - timestamp: "1975-01-16T08:00:00", + timestamp: '1975-01-16T08:00:00', value: 17.0 }, { - timestamp: "1975-01-16T10:00:00", + timestamp: '1975-01-16T10:00:00', value: 17.2 }, { - timestamp: "1975-01-16T12:00:00", + timestamp: '1975-01-16T12:00:00', value: 17.3 }, { - timestamp: "1975-01-16T14:00:00", + timestamp: '1975-01-16T14:00:00', value: 17.4 }, { - timestamp: "1975-01-16T16:00:00", + timestamp: '1975-01-16T16:00:00', value: 17.4 }, { - timestamp: "1975-01-16T18:00:00", + timestamp: '1975-01-16T18:00:00', value: 17.0 }, { - timestamp: "1975-01-16T20:00:00", + timestamp: '1975-01-16T20:00:00', value: 18.0 }, { - timestamp: "1975-01-16T22:00:00", + timestamp: '1975-01-16T22:00:00', value: 18.2 }, { - timestamp: "1975-01-17T00:00:00", + timestamp: '1975-01-17T00:00:00', value: 17.6 }, { - timestamp: "1975-01-17T02:00:00", + timestamp: '1975-01-17T02:00:00', value: 17.8 }, { - timestamp: "1975-01-17T04:00:00", + timestamp: '1975-01-17T04:00:00', value: 17.7 }, { - timestamp: "1975-01-17T06:00:00", + timestamp: '1975-01-17T06:00:00', value: 17.2 }, { - timestamp: "1975-01-17T08:00:00", + timestamp: '1975-01-17T08:00:00', value: 17.4 }]; diff --git a/package.json b/package.json index 781d282..a539e49 100644 --- a/package.json +++ b/package.json @@ -13,7 +13,7 @@ }, "scripts": { "start": "webpack-dev-server --config webpack.config.hot.js --inline --content-base examples/build/ --host 0.0.0.0 --port 8085 --hot true", - "test": "mocha 'test/**/*.ts'", + "test": "mocha 'test/**/*.ts' && tslint --project tsconfig.json", "prepublish": "tsc --project tsconfig-build.json && lessc --source-map styles/index.less react-layered-chart.css" }, "devDependencies": { @@ -52,6 +52,7 @@ "style-loader": "^0.13.1", "ts-loader": "^1.3.3", "ts-node": "^2.0.0", + "tslint": "^4.3.1", "typescript": "^2.1.4", "webpack": "^1.12.11", "webpack-dev-server": "^1.14.1", diff --git a/src/connected/dataUtils.ts b/src/connected/dataUtils.ts index d56448a..29df4d4 100644 --- a/src/connected/dataUtils.ts +++ b/src/connected/dataUtils.ts @@ -7,14 +7,12 @@ export function createStaticDataLoader( dataBySeriesId: TBySeriesId, yDomainBySeriesId: TBySeriesId ): DataLoader { - return () => { - return _.mapValues(dataBySeriesId, (data, seriesId) => - new Promise((resolve, reject) => { - resolve({ - data, - yDomain: yDomainBySeriesId[seriesId] - }); - }) - ) - }; + return () => _.mapValues(dataBySeriesId, (data, seriesId) => + new Promise((resolve, reject) => { + resolve({ + data, + yDomain: yDomainBySeriesId[seriesId] + }); + }) + ); } diff --git a/src/connected/flux/reducerUtils.ts b/src/connected/flux/reducerUtils.ts index f42f057..57cfd23 100644 --- a/src/connected/flux/reducerUtils.ts +++ b/src/connected/flux/reducerUtils.ts @@ -4,7 +4,7 @@ import { TBySeriesId } from '../interfaces'; export function objectWithKeys(keys: string[], value: T): { [key: string]: T } { const object: { [key: string]: T } = {}; - keys.forEach(k => { object[k] = value }); + keys.forEach(k => { object[k] = value; }); return object; } @@ -14,6 +14,6 @@ export function replaceValuesWithConstant(anyBySeriesId: TBySeriesId, va export function objectWithKeysFromObject(anyBySeriesId: TBySeriesId, keys: string[], defaultValue: T): TBySeriesId { const object: { [key: string]: T } = {}; - keys.forEach(k => { object[k] = anyBySeriesId[k] !== undefined ? anyBySeriesId[k] : defaultValue }); + keys.forEach(k => { object[k] = anyBySeriesId[k] !== undefined ? anyBySeriesId[k] : defaultValue; }); return object; } diff --git a/src/connected/layers/connectedDataLayers.tsx b/src/connected/layers/connectedDataLayers.tsx index 7e5f2ba..b7d301e 100644 --- a/src/connected/layers/connectedDataLayers.tsx +++ b/src/connected/layers/connectedDataLayers.tsx @@ -16,6 +16,7 @@ import { SeriesId } from '../interfaces'; import { wrapDataLayerWithConnect, SeriesIdProp } from './wrapDataLayerWithConnect'; +// tslint:disable-next-line:class-name export interface _CommonConnectedBarLayerProps { color?: Color; } @@ -23,6 +24,7 @@ export type ConnectedBarLayerProps = _CommonConnectedBarLayerProps & SeriesIdPro export const ConnectedBarLayer = wrapDataLayerWithConnect<_CommonConnectedBarLayerProps, BarLayerProps>(BarLayer); +// tslint:disable-next-line:class-name export interface _CommonConnectedBucketedLineLayerProps { yScale?: ScaleFunction; color?: Color; @@ -32,6 +34,7 @@ export type ConnectedBucketedLineLayerProps = _CommonConnectedBucketedLineLayerP export const ConnectedBucketedLineLayer = wrapDataLayerWithConnect<_CommonConnectedBucketedLineLayerProps, BucketedLineLayerProps>(BucketedLineLayer); +// tslint:disable-next-line:class-name export interface _CommonConnectedPointLayerProps { yScale?: ScaleFunction; color?: Color; @@ -42,6 +45,7 @@ export type ConnectedPointLayerProps = _CommonConnectedPointLayerProps & SeriesI export const ConnectedPointLayer = wrapDataLayerWithConnect<_CommonConnectedPointLayerProps, PointLayerProps>(PointLayer); +// tslint:disable-next-line:class-name export interface _CommonConnectedSimpleLineLayerProps { yScale?: ScaleFunction; color?: Color; diff --git a/src/core/decorators/mixinToDecorator.ts b/src/core/decorators/mixinToDecorator.ts index c477192..23ae7c2 100644 --- a/src/core/decorators/mixinToDecorator.ts +++ b/src/core/decorators/mixinToDecorator.ts @@ -14,5 +14,5 @@ export default function(mixin: React.Mixin): ClassDecorator { return returnValue; }; }); - } + }; } diff --git a/src/core/intervalUtils.ts b/src/core/intervalUtils.ts index 8b4f1bd..9dab2e7 100644 --- a/src/core/intervalUtils.ts +++ b/src/core/intervalUtils.ts @@ -74,7 +74,7 @@ export function niceInterval(interval: Interval): Interval { return { min: nicedInterval[0], max: nicedInterval[1] - } + }; } export function mergeIntervals(intervals: Interval[], defaultInterval?: Interval): Interval { diff --git a/src/core/renderUtils.ts b/src/core/renderUtils.ts index bff074e..7c764f4 100644 --- a/src/core/renderUtils.ts +++ b/src/core/renderUtils.ts @@ -76,7 +76,7 @@ export function getIndexBoundsForSpanData(data: T[], xValueBounds: Interval, } else { return minXValueAccessor(value as T); } - } + }; } const lowerBoundAccessor = _.isString(maxXValueAccessor) diff --git a/test/compoundActions-test.ts b/test/compoundActions-test.ts index 5331806..5de049b 100644 --- a/test/compoundActions-test.ts +++ b/test/compoundActions-test.ts @@ -140,7 +140,7 @@ describe('(compound actions)', () => { }); describe('setDataLoaderAndLoad', () => { - const LOADER: DataLoader =(() => {}) as any; + const LOADER: DataLoader = (() => {}) as any; it('should request a data load for all existing series', () => { store.dispatch(setDataLoaderAndLoad(LOADER)); diff --git a/tslint.json b/tslint.json new file mode 100644 index 0000000..0057754 --- /dev/null +++ b/tslint.json @@ -0,0 +1,104 @@ +{ + "jsRules": { + "class-name": true, + "comment-format": [ + true, + "check-space" + ], + "indent": [ + true, + "spaces" + ], + "no-duplicate-variable": true, + "no-eval": true, + "no-trailing-whitespace": true, + "no-unsafe-finally": true, + "one-line": [ + true, + "check-open-brace", + "check-whitespace" + ], + "quotemark": [ + true, + "single" + ], + "semicolon": [ + true, + "always" + ], + "triple-equals": [ + true, + "allow-null-check" + ], + "variable-name": [ + true, + "ban-keywords" + ], + "whitespace": [ + true, + "check-branch", + "check-decl", + "check-operator", + "check-separator", + "check-type" + ] + }, + "rules": { + "class-name": true, + "comment-format": [ + true, + "check-space" + ], + "indent": [ + true, + "spaces" + ], + "curly": true, + "no-eval": true, + "no-internal-module": true, + "no-trailing-whitespace": true, + "no-unsafe-finally": true, + "no-var-keyword": true, + "one-line": [ + true, + "check-open-brace", + "check-whitespace" + ], + "quotemark": [ + true, + "single" + ], + "semicolon": [ + true, + "always", + "ignore-interfaces", + "ignore-bound-class-methods" + ], + "triple-equals": [ + true, + "allow-null-check" + ], + "typedef-whitespace": [ + true, + { + "call-signature": "nospace", + "index-signature": "nospace", + "parameter": "nospace", + "property-declaration": "nospace", + "variable-declaration": "nospace" + } + ], + "variable-name": [ + true, + "ban-keywords" + ], + "whitespace": [ + true, + "check-branch", + "check-decl", + "check-operator", + "check-separator", + "check-type" + ] + } +} diff --git a/yarn.lock b/yarn.lock index 848e8b7..b897a6c 100644 --- a/yarn.lock +++ b/yarn.lock @@ -127,6 +127,12 @@ amdefine@>=0.0.4: version "1.0.1" resolved "https://registry.yarnpkg.com/amdefine/-/amdefine-1.0.1.tgz#4a5282ac164729e93619bcfd3ad151f817ce91f5" +ansi-align@^1.1.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/ansi-align/-/ansi-align-1.1.0.tgz#2f0c1658829739add5ebb15e6b0c6e3423f016ba" + dependencies: + string-width "^1.0.1" + ansi-regex@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-2.0.0.tgz#c5061b6e0ef8a81775e50f5d66151bf6bf371107" @@ -254,6 +260,14 @@ aws4@^1.2.1: version "1.5.0" resolved "https://registry.yarnpkg.com/aws4/-/aws4-1.5.0.tgz#0a29ffb79c31c9e712eeb087e8e7a64b4a56d755" +babel-code-frame@^6.20.0: + version "6.20.0" + resolved "https://registry.yarnpkg.com/babel-code-frame/-/babel-code-frame-6.20.0.tgz#b968f839090f9a8bc6d41938fb96cb84f7387b26" + dependencies: + chalk "^1.1.0" + esutils "^2.0.2" + js-tokens "^2.0.0" + balanced-match@^0.4.1, balanced-match@^0.4.2: version "0.4.2" resolved "https://registry.yarnpkg.com/balanced-match/-/balanced-match-0.4.2.tgz#cb3f3e3c732dc0f01ee70b403f302e61d7709838" @@ -300,6 +314,20 @@ boom@2.x.x: dependencies: hoek "2.x.x" +boxen@^0.6.0: + version "0.6.0" + resolved "https://registry.yarnpkg.com/boxen/-/boxen-0.6.0.tgz#8364d4248ac34ff0ef1b2f2bf49a6c60ce0d81b6" + dependencies: + ansi-align "^1.1.0" + camelcase "^2.1.0" + chalk "^1.1.1" + cli-boxes "^1.0.0" + filled-array "^1.0.0" + object-assign "^4.0.1" + repeating "^2.0.0" + string-width "^1.0.1" + widest-line "^1.0.0" + brace-expansion@^1.0.0: version "1.1.6" resolved "https://registry.yarnpkg.com/brace-expansion/-/brace-expansion-1.1.6.tgz#7197d7eaa9b87e648390ea61fc66c84427420df9" @@ -364,6 +392,10 @@ camelcase@^1.0.2: version "1.2.1" resolved "https://registry.yarnpkg.com/camelcase/-/camelcase-1.2.1.tgz#9bb5304d2e0b56698b2c758b08a3eaa9daa58a39" +camelcase@^2.1.0: + version "2.1.1" + resolved "https://registry.yarnpkg.com/camelcase/-/camelcase-2.1.1.tgz#7c1d16d679a1bbe59ca02cacecfb011e201f5a1f" + caniuse-api@^1.5.2: version "1.5.2" resolved "https://registry.yarnpkg.com/caniuse-api/-/caniuse-api-1.5.2.tgz#8f393c682f661c0a997b77bba6e826483fb3600e" @@ -378,6 +410,10 @@ caniuse-db@^1.0.30000346, caniuse-db@^1.0.30000604: version "1.0.30000607" resolved "https://registry.yarnpkg.com/caniuse-db/-/caniuse-db-1.0.30000607.tgz#f9d5b542f30d064c305544ff8938b217c67b88e9" +capture-stack-trace@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/capture-stack-trace/-/capture-stack-trace-1.0.0.tgz#4a6fa07399c26bba47f0b2496b4d0fb408c5550d" + cardinal@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/cardinal/-/cardinal-1.0.0.tgz#50e21c1b0aa37729f9377def196b5a9cec932ee9" @@ -404,7 +440,7 @@ chai@^3.5.0: deep-eql "^0.1.3" type-detect "^1.0.0" -chalk@^1.1.1, chalk@^1.1.3: +chalk@^1.0.0, chalk@^1.1.0, chalk@^1.1.1, chalk@^1.1.3: version "1.1.3" resolved "https://registry.yarnpkg.com/chalk/-/chalk-1.1.3.tgz#a8115c55e4a702fe4d150abd3872822a7e09fc98" dependencies: @@ -446,6 +482,10 @@ clean-css@3.4.x: commander "2.8.x" source-map "0.4.x" +cli-boxes@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/cli-boxes/-/cli-boxes-1.0.0.tgz#4fa917c3e59c94a004cd61f8ee509da651687143" + cli-table@^0.3.1: version "0.3.1" resolved "https://registry.yarnpkg.com/cli-table/-/cli-table-0.3.1.tgz#f53b05266a8b1a0b934b3d0821e6e2dc5914ae23" @@ -517,7 +557,7 @@ colors@1.0.3: version "1.0.3" resolved "https://registry.yarnpkg.com/colors/-/colors-1.0.3.tgz#0433f44d809680fdeb60ed260f1b0c262e82a40b" -colors@^1.0.3, colors@~1.1.2: +colors@^1.0.3, colors@^1.1.2, colors@~1.1.2: version "1.1.2" resolved "https://registry.yarnpkg.com/colors/-/colors-1.1.2.tgz#168a4701756b6a7f51a12ce0c97bfa28c084ed63" @@ -568,6 +608,20 @@ concat-map@0.0.1: version "0.0.1" resolved "https://registry.yarnpkg.com/concat-map/-/concat-map-0.0.1.tgz#d8a96bd77fd68df7793a73036a3ba0d5405d477b" +configstore@^2.0.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/configstore/-/configstore-2.1.0.tgz#737a3a7036e9886102aa6099e47bb33ab1aba1a1" + dependencies: + dot-prop "^3.0.0" + graceful-fs "^4.1.2" + mkdirp "^0.5.0" + object-assign "^4.0.1" + os-tmpdir "^1.0.0" + osenv "^0.1.0" + uuid "^2.0.1" + write-file-atomic "^1.1.2" + xdg-basedir "^2.0.0" + connect-history-api-fallback@^1.3.0: version "1.3.0" resolved "https://registry.yarnpkg.com/connect-history-api-fallback/-/connect-history-api-fallback-1.3.0.tgz#e51d17f8f0ef0db90a64fdb47de3051556e9f169" @@ -610,6 +664,12 @@ core-util-is@~1.0.0: version "1.0.2" resolved "https://registry.yarnpkg.com/core-util-is/-/core-util-is-1.0.2.tgz#b5fd54220aa2bc5ab57aab7140c940754503c1a7" +create-error-class@^3.0.1: + version "3.0.2" + resolved "https://registry.yarnpkg.com/create-error-class/-/create-error-class-3.0.2.tgz#06be7abef947a3f14a30fd610671d401bca8b7b6" + dependencies: + capture-stack-trace "^1.0.0" + cryptiles@2.x.x: version "2.0.5" resolved "https://registry.yarnpkg.com/cryptiles/-/cryptiles-2.0.5.tgz#3bdfecdc608147c1c67202fa291e7dca59eaa3b8" @@ -827,7 +887,7 @@ diff@1.4.0: version "1.4.0" resolved "https://registry.yarnpkg.com/diff/-/diff-1.4.0.tgz#7f28d2eb9ee7b15a97efd89ce63dcfdaa3ccbabf" -diff@^3.1.0: +diff@^3.0.1, diff@^3.1.0: version "3.2.0" resolved "https://registry.yarnpkg.com/diff/-/diff-3.2.0.tgz#c9ce393a4b7cbd0b058a725c93df299027868ff9" @@ -875,6 +935,18 @@ domutils@1.5.1: dom-serializer "0" domelementtype "1" +dot-prop@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/dot-prop/-/dot-prop-3.0.0.tgz#1b708af094a49c9a0e7dbcad790aba539dac1177" + dependencies: + is-obj "^1.0.0" + +duplexer2@^0.1.4: + version "0.1.4" + resolved "https://registry.yarnpkg.com/duplexer2/-/duplexer2-0.1.4.tgz#8b12dab878c0d69e3e7891051662a32fc6bddcc1" + dependencies: + readable-stream "^2.0.2" + ecc-jsbn@~0.1.1: version "0.1.1" resolved "https://registry.yarnpkg.com/ecc-jsbn/-/ecc-jsbn-0.1.1.tgz#0fc73a9ed5f0d53c38193398523ef7e543777505" @@ -948,6 +1020,10 @@ esprima@~3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/esprima/-/esprima-3.0.0.tgz#53cf247acda77313e551c3aa2e73342d3fb4f7d9" +esutils@^2.0.2: + version "2.0.2" + resolved "https://registry.yarnpkg.com/esutils/-/esutils-2.0.2.tgz#0abf4f1caa5bcb1f7a9d8acc6dea4faaa04bac9b" + etag@~1.7.0: version "1.7.0" resolved "https://registry.yarnpkg.com/etag/-/etag-1.7.0.tgz#03d30b5f67dd6e632d2945d30d6652731a34d5d8" @@ -1065,6 +1141,10 @@ fill-range@^2.1.0: repeat-element "^1.1.2" repeat-string "^1.5.2" +filled-array@^1.0.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/filled-array/-/filled-array-1.1.0.tgz#c3c4f6c663b923459a9aa29912d2d031f1507f84" + finalhandler@0.5.0: version "0.5.0" resolved "https://registry.yarnpkg.com/finalhandler/-/finalhandler-0.5.0.tgz#e9508abece9b6dba871a6942a1d7911b91911ac7" @@ -1075,6 +1155,12 @@ finalhandler@0.5.0: statuses "~1.3.0" unpipe "~1.0.0" +findup-sync@~0.3.0: + version "0.3.0" + resolved "https://registry.yarnpkg.com/findup-sync/-/findup-sync-0.3.0.tgz#37930aa5d816b777c03445e1966cc6790a4c0b16" + dependencies: + glob "~5.0.0" + flatten@^1.0.2: version "1.0.2" resolved "https://registry.yarnpkg.com/flatten/-/flatten-1.0.2.tgz#dae46a9d78fbe25292258cc1e780a41d95c03782" @@ -1197,7 +1283,7 @@ glob@3.2.11: inherits "2" minimatch "0.3" -glob@^7.0.0, glob@^7.0.5: +glob@^7.0.0, glob@^7.0.5, glob@^7.1.1: version "7.1.1" resolved "https://registry.yarnpkg.com/glob/-/glob-7.1.1.tgz#805211df04faaf1c63a3600306cdf5ade50b2ec8" dependencies: @@ -1208,7 +1294,37 @@ glob@^7.0.0, glob@^7.0.5: once "^1.3.0" path-is-absolute "^1.0.0" -graceful-fs@^4.1.2: +glob@~5.0.0: + version "5.0.15" + resolved "https://registry.yarnpkg.com/glob/-/glob-5.0.15.tgz#1bc936b9e02f4a603fcc222ecf7633d30b8b93b1" + dependencies: + inflight "^1.0.4" + inherits "2" + minimatch "2 || 3" + once "^1.3.0" + path-is-absolute "^1.0.0" + +got@^5.0.0: + version "5.7.1" + resolved "https://registry.yarnpkg.com/got/-/got-5.7.1.tgz#5f81635a61e4a6589f180569ea4e381680a51f35" + dependencies: + create-error-class "^3.0.1" + duplexer2 "^0.1.4" + is-redirect "^1.0.0" + is-retry-allowed "^1.0.0" + is-stream "^1.0.0" + lowercase-keys "^1.0.0" + node-status-codes "^1.0.0" + object-assign "^4.0.1" + parse-json "^2.1.0" + pinkie-promise "^2.0.0" + read-all-stream "^3.0.0" + readable-stream "^2.0.5" + timed-out "^3.0.0" + unzip-response "^1.0.2" + url-parse-lax "^1.0.0" + +graceful-fs@^4.1.11, graceful-fs@^4.1.2: version "4.1.11" resolved "https://registry.yarnpkg.com/graceful-fs/-/graceful-fs-4.1.11.tgz#0e8bdfe4d1ddb8854d64e04ea7c00e2a026e5658" @@ -1369,6 +1485,10 @@ immutability-helper@^2.0.0: dependencies: invariant "^2.2.0" +imurmurhash@^0.1.4: + version "0.1.4" + resolved "https://registry.yarnpkg.com/imurmurhash/-/imurmurhash-0.1.4.tgz#9218b9b2b928a238b13dc4fb6b6d576f231453ea" + indexes-of@^1.0.1: version "1.0.1" resolved "https://registry.yarnpkg.com/indexes-of/-/indexes-of-1.0.1.tgz#f30f716c8e2bd346c7b67d3df3915566a7c05607" @@ -1384,11 +1504,11 @@ inflight@^1.0.4: once "^1.3.0" wrappy "1" -inherits@2, inherits@2.0.1, inherits@^2.0.1: +inherits@2, inherits@2.0.1, inherits@^2.0.1, inherits@~2.0.1: version "2.0.1" resolved "https://registry.yarnpkg.com/inherits/-/inherits-2.0.1.tgz#b17d08d326b4423e568eff719f91b0b1cbdf69f1" -inherits@2.0.3, inherits@~2.0.0, inherits@~2.0.1: +inherits@2.0.3, inherits@~2.0.0: version "2.0.3" resolved "https://registry.yarnpkg.com/inherits/-/inherits-2.0.3.tgz#633c2c83e3da42a502f52466022480f4208261de" @@ -1454,6 +1574,12 @@ is-extglob@^2.1.0: version "2.1.1" resolved "https://registry.yarnpkg.com/is-extglob/-/is-extglob-2.1.1.tgz#a88c02535791f02ed37c76a1b9ea9773c833f8c2" +is-finite@^1.0.0: + version "1.0.2" + resolved "https://registry.yarnpkg.com/is-finite/-/is-finite-1.0.2.tgz#cc6677695602be550ef11e8b4aa6305342b6d0aa" + dependencies: + number-is-nan "^1.0.0" + is-fullwidth-code-point@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/is-fullwidth-code-point/-/is-fullwidth-code-point-1.0.0.tgz#ef9e31386f031a7f0d643af82fde50c457ef00cb" @@ -1481,12 +1607,20 @@ is-my-json-valid@^2.12.4: jsonpointer "^4.0.0" xtend "^4.0.0" +is-npm@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/is-npm/-/is-npm-1.0.0.tgz#f2fb63a65e4905b406c86072765a1a4dc793b9f4" + is-number@^2.0.2, is-number@^2.1.0: version "2.1.0" resolved "https://registry.yarnpkg.com/is-number/-/is-number-2.1.0.tgz#01fcbbb393463a548f2f466cce16dece49db908f" dependencies: kind-of "^3.0.2" +is-obj@^1.0.0: + version "1.0.1" + resolved "https://registry.yarnpkg.com/is-obj/-/is-obj-1.0.1.tgz#3e4729ac1f5fde025cd7d83a896dab9f4f67db0f" + is-plain-obj@^1.0.0: version "1.1.0" resolved "https://registry.yarnpkg.com/is-plain-obj/-/is-plain-obj-1.1.0.tgz#71a50c8429dfca773c92a390a4a03b39fcd51d3e" @@ -1503,7 +1637,15 @@ is-property@^1.0.0: version "1.0.2" resolved "https://registry.yarnpkg.com/is-property/-/is-property-1.0.2.tgz#57fe1c4e48474edd65b09911f26b1cd4095dda84" -is-stream@^1.0.1: +is-redirect@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/is-redirect/-/is-redirect-1.0.0.tgz#1d03dded53bd8db0f30c26e4f95d36fc7c87dc24" + +is-retry-allowed@^1.0.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/is-retry-allowed/-/is-retry-allowed-1.1.0.tgz#11a060568b67339444033d0125a61a20d564fb34" + +is-stream@^1.0.0, is-stream@^1.0.1: version "1.1.0" resolved "https://registry.yarnpkg.com/is-stream/-/is-stream-1.1.0.tgz#12d4a3dd4e68e0b79ceb8dbc84173ae80d91ca44" @@ -1620,10 +1762,20 @@ kind-of@^3.0.2: dependencies: is-buffer "^1.0.2" +latest-version@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/latest-version/-/latest-version-2.0.0.tgz#56f8d6139620847b8017f8f1f4d78e211324168b" + dependencies: + package-json "^2.0.0" + lazy-cache@^1.0.3: version "1.0.4" resolved "https://registry.yarnpkg.com/lazy-cache/-/lazy-cache-1.0.4.tgz#a1d78fc3a50474cb80845d3b3b6e1da49a446e8e" +lazy-req@^1.1.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/lazy-req/-/lazy-req-1.1.0.tgz#bdaebead30f8d824039ce0ce149d4daa07ba1fac" + less-loader@^2.2.3: version "2.2.3" resolved "https://registry.yarnpkg.com/less-loader/-/less-loader-2.2.3.tgz#b6d8f8139c8493df09d992a93a00734b08f84528" @@ -1788,6 +1940,10 @@ lower-case@^1.1.1: version "1.1.3" resolved "https://registry.yarnpkg.com/lower-case/-/lower-case-1.1.3.tgz#c92393d976793eee5ba4edb583cf8eae35bd9bfb" +lowercase-keys@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/lowercase-keys/-/lowercase-keys-1.0.0.tgz#4e3366b39e7f5457e35f1324bdf6f88d0bfc7306" + lru-cache@2: version "2.7.3" resolved "https://registry.yarnpkg.com/lru-cache/-/lru-cache-2.7.3.tgz#6d4524e8b955f95d4f5b58851ce21dd72fb4e952" @@ -1889,7 +2045,7 @@ minimatch@0.3: lru-cache "2" sigmund "~1.0.0" -minimatch@^3.0.0, minimatch@^3.0.2: +"minimatch@2 || 3", minimatch@^3.0.0, minimatch@^3.0.2: version "3.0.3" resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-3.0.3.tgz#2a4e4090b96b2db06a9d7df01055a62a77c9b774" dependencies: @@ -2035,6 +2191,10 @@ node-pre-gyp@^0.6.29: tar "~2.2.1" tar-pack "~3.3.0" +node-status-codes@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/node-status-codes/-/node-status-codes-1.0.0.tgz#5ae5541d024645d32a58fcddc9ceecea7ae3ac2f" + nopt@~3.0.6: version "3.0.6" resolved "https://registry.yarnpkg.com/nopt/-/nopt-3.0.6.tgz#c6465dbf08abcd4db359317f79ac68a646b28ff9" @@ -2139,12 +2299,36 @@ os-browserify@^0.2.0: version "0.2.1" resolved "https://registry.yarnpkg.com/os-browserify/-/os-browserify-0.2.1.tgz#63fc4ccee5d2d7763d26bbf8601078e6c2e0044f" +os-homedir@^1.0.0: + version "1.0.2" + resolved "https://registry.yarnpkg.com/os-homedir/-/os-homedir-1.0.2.tgz#ffbc4988336e0e833de0c168c7ef152121aa7fb3" + +os-tmpdir@^1.0.0: + version "1.0.2" + resolved "https://registry.yarnpkg.com/os-tmpdir/-/os-tmpdir-1.0.2.tgz#bbe67406c79aa85c5cfec766fe5734555dfa1274" + +osenv@^0.1.0: + version "0.1.4" + resolved "https://registry.yarnpkg.com/osenv/-/osenv-0.1.4.tgz#42fe6d5953df06c8064be6f176c3d05aaaa34644" + dependencies: + os-homedir "^1.0.0" + os-tmpdir "^1.0.0" + osx-notifier@^0.2.1: version "0.2.2" resolved "https://registry.yarnpkg.com/osx-notifier/-/osx-notifier-0.2.2.tgz#9460ffd5dacd84d7c9abddab303a2c1d5229a181" dependencies: optimist "*" +package-json@^2.0.0: + version "2.4.0" + resolved "https://registry.yarnpkg.com/package-json/-/package-json-2.4.0.tgz#0d15bd67d1cbbddbb2ca222ff2edb86bcb31a8bb" + dependencies: + got "^5.0.0" + registry-auth-token "^3.0.1" + registry-url "^3.0.3" + semver "^5.1.0" + pako@~0.2.0: version "0.2.9" resolved "https://registry.yarnpkg.com/pako/-/pako-0.2.9.tgz#f3f7522f4ef782348da8161bad9ecfd51bf83a75" @@ -2164,7 +2348,7 @@ parse-glob@^3.0.4: is-extglob "^1.0.0" is-glob "^2.0.0" -parse-json@^2.2.0: +parse-json@^2.1.0, parse-json@^2.2.0: version "2.2.0" resolved "https://registry.yarnpkg.com/parse-json/-/parse-json-2.2.0.tgz#f480f40434ef80741f8469099f8dea18f55a4dc9" dependencies: @@ -2442,7 +2626,7 @@ postcss@^5.0.10, postcss@^5.0.11, postcss@^5.0.12, postcss@^5.0.13, postcss@^5.0 source-map "^0.5.6" supports-color "^3.1.2" -prepend-http@^1.0.0: +prepend-http@^1.0.0, prepend-http@^1.0.1: version "1.0.4" resolved "https://registry.yarnpkg.com/prepend-http/-/prepend-http-1.0.4.tgz#d4f4562b0ce3696e41ac52d0e002e57a635dc6dc" @@ -2544,7 +2728,7 @@ range-parser@^1.0.3, range-parser@~1.2.0: version "1.2.0" resolved "https://registry.yarnpkg.com/range-parser/-/range-parser-1.2.0.tgz#f49be6b487894ddc40dcc94a322f611092e00d5e" -rc@~1.1.6: +rc@^1.0.1, rc@^1.1.6, rc@~1.1.6: version "1.1.6" resolved "https://registry.yarnpkg.com/rc/-/rc-1.1.6.tgz#43651b76b6ae53b5c802f1151fa3fc3b059969c9" dependencies: @@ -2600,6 +2784,13 @@ react@^15.4.2: loose-envify "^1.1.0" object-assign "^4.1.0" +read-all-stream@^3.0.0: + version "3.1.0" + resolved "https://registry.yarnpkg.com/read-all-stream/-/read-all-stream-3.1.0.tgz#35c3e177f2078ef789ee4bfafa4373074eaef4fa" + dependencies: + pinkie-promise "^2.0.0" + readable-stream "^2.0.0" + readable-stream@1.0: version "1.0.34" resolved "https://registry.yarnpkg.com/readable-stream/-/readable-stream-1.0.34.tgz#125820e34bc842d2f2aaafafe4c2916ee32c157c" @@ -2609,7 +2800,7 @@ readable-stream@1.0: isarray "0.0.1" string_decoder "~0.10.x" -"readable-stream@^2.0.0 || ^1.1.13", readable-stream@^2.0.1, readable-stream@^2.0.2, readable-stream@^2.0.5, readable-stream@^2.1.0: +readable-stream@^2.0.0, "readable-stream@^2.0.0 || ^1.1.13", readable-stream@^2.0.1, readable-stream@^2.0.2, readable-stream@^2.0.5, readable-stream@^2.1.0: version "2.2.2" resolved "https://registry.yarnpkg.com/readable-stream/-/readable-stream-2.2.2.tgz#a9e6fec3c7dda85f8bb1b3ba7028604556fc825e" dependencies: @@ -2710,6 +2901,18 @@ regexpu-core@^1.0.0: regjsgen "^0.2.0" regjsparser "^0.1.4" +registry-auth-token@^3.0.1: + version "3.1.0" + resolved "https://registry.yarnpkg.com/registry-auth-token/-/registry-auth-token-3.1.0.tgz#997c08256e0c7999837b90e944db39d8a790276b" + dependencies: + rc "^1.1.6" + +registry-url@^3.0.3: + version "3.1.0" + resolved "https://registry.yarnpkg.com/registry-url/-/registry-url-3.1.0.tgz#3d4ef870f73dde1d77f0cf9a381432444e174942" + dependencies: + rc "^1.0.1" + regjsgen@^0.2.0: version "0.2.0" resolved "https://registry.yarnpkg.com/regjsgen/-/regjsgen-0.2.0.tgz#6c016adeac554f75823fe37ac05b92d5a4edb1f7" @@ -2742,6 +2945,12 @@ repeat-string@^1.5.2: version "1.6.1" resolved "https://registry.yarnpkg.com/repeat-string/-/repeat-string-1.6.1.tgz#8dcae470e1c88abc2d600fff4a776286da75e637" +repeating@^2.0.0: + version "2.0.1" + resolved "https://registry.yarnpkg.com/repeating/-/repeating-2.0.1.tgz#5214c53a926d3552707527fbab415dbc08d06dda" + dependencies: + is-finite "^1.0.0" + request@^2.72.0, request@^2.79.0: version "2.79.0" resolved "https://registry.yarnpkg.com/request/-/request-2.79.0.tgz#4dfe5bf6be8b8cdc37fcf93e04b65577722710de" @@ -2775,7 +2984,7 @@ reselect@^2.5.1: version "2.5.4" resolved "https://registry.yarnpkg.com/reselect/-/reselect-2.5.4.tgz#b7d23fdf00b83fa7ad0279546f8dbbbd765c7047" -resolve@^1.1.6: +resolve@^1.1.6, resolve@^1.1.7: version "1.2.0" resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.2.0.tgz#9589c3f2f6149d1417a40becc1663db6ec6bc26c" @@ -2803,7 +3012,13 @@ sax@~1.2.1: version "1.2.1" resolved "https://registry.yarnpkg.com/sax/-/sax-1.2.1.tgz#7b8e656190b228e81a66aea748480d828cd2d37a" -semver@^5.0.1, semver@^5.1.0, semver@~5.3.0: +semver-diff@^2.0.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/semver-diff/-/semver-diff-2.1.0.tgz#4bbb8437c8d37e4b0cf1a68fd726ec6d645d6d36" + dependencies: + semver "^5.0.3" + +semver@^5.0.1, semver@^5.0.3, semver@^5.1.0, semver@~5.3.0: version "5.3.0" resolved "https://registry.yarnpkg.com/semver/-/semver-5.3.0.tgz#9b2ce5d3de02d17c6012ad326aa6b4d0cf54f94f" @@ -2895,6 +3110,10 @@ sinon@^1.17.4: samsam "1.1.2" util ">=0.10.3 <1" +slide@^1.1.5: + version "1.1.6" + resolved "https://registry.yarnpkg.com/slide/-/slide-1.1.6.tgz#56eb027d65b4d2dce6cb2e2d32c4d4afc9e1d707" + sntp@1.x.x: version "1.0.9" resolved "https://registry.yarnpkg.com/sntp/-/sntp-1.0.9.tgz#6541184cc90aeea6c6e7b35e2659082443c66198" @@ -2959,7 +3178,7 @@ source-map@~0.1.33: dependencies: amdefine ">=0.0.4" -sprintf-js@~1.0.2: +sprintf-js@^1.0.3, sprintf-js@~1.0.2: version "1.0.3" resolved "https://registry.yarnpkg.com/sprintf-js/-/sprintf-js-1.0.3.tgz#04e6926f662895354f3dd015203633b857297e2c" @@ -3116,6 +3335,10 @@ tar@~2.2.1: fstream "^1.0.2" inherits "2" +timed-out@^3.0.0: + version "3.1.3" + resolved "https://registry.yarnpkg.com/timed-out/-/timed-out-3.1.3.tgz#95860bfcc5c76c277f8f8326fd0f5b2e20eba217" + timers-browserify@^2.0.2: version "2.0.2" resolved "https://registry.yarnpkg.com/timers-browserify/-/timers-browserify-2.0.2.tgz#ab4883cf597dcd50af211349a00fbca56ac86b86" @@ -3176,6 +3399,20 @@ tsconfig@^5.0.2: strip-bom "^2.0.0" strip-json-comments "^2.0.0" +tslint@^4.3.1: + version "4.3.1" + resolved "https://registry.yarnpkg.com/tslint/-/tslint-4.3.1.tgz#28f679c53ca4b273688bcb6fcf0dde7ff1bb2169" + dependencies: + babel-code-frame "^6.20.0" + colors "^1.1.2" + diff "^3.0.1" + findup-sync "~0.3.0" + glob "^7.1.1" + optimist "~0.6.0" + resolve "^1.1.7" + underscore.string "^3.3.4" + update-notifier "^1.0.2" + tty-browserify@0.0.0: version "0.0.0" resolved "https://registry.yarnpkg.com/tty-browserify/-/tty-browserify-0.0.0.tgz#a157ba402da24e9bf957f9aa69d524eed42901a6" @@ -3228,6 +3465,13 @@ uid-number@~0.0.6: version "0.0.6" resolved "https://registry.yarnpkg.com/uid-number/-/uid-number-0.0.6.tgz#0ea10e8035e8eb5b8e4449f06da1c730663baa81" +underscore.string@^3.3.4: + version "3.3.4" + resolved "https://registry.yarnpkg.com/underscore.string/-/underscore.string-3.3.4.tgz#2c2a3f9f83e64762fdc45e6ceac65142864213db" + dependencies: + sprintf-js "^1.0.3" + util-deprecate "^1.0.2" + uniq@^1.0.1: version "1.0.1" resolved "https://registry.yarnpkg.com/uniq/-/uniq-1.0.1.tgz#b31c5ae8254844a3a8281541ce2b04b865a734ff" @@ -3246,10 +3490,33 @@ unpipe@~1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/unpipe/-/unpipe-1.0.0.tgz#b2bf4ee8514aae6165b4817829d21b2ef49904ec" +unzip-response@^1.0.2: + version "1.0.2" + resolved "https://registry.yarnpkg.com/unzip-response/-/unzip-response-1.0.2.tgz#b984f0877fc0a89c2c773cc1ef7b5b232b5b06fe" + +update-notifier@^1.0.2: + version "1.0.3" + resolved "https://registry.yarnpkg.com/update-notifier/-/update-notifier-1.0.3.tgz#8f92c515482bd6831b7c93013e70f87552c7cf5a" + dependencies: + boxen "^0.6.0" + chalk "^1.0.0" + configstore "^2.0.0" + is-npm "^1.0.0" + latest-version "^2.0.0" + lazy-req "^1.1.0" + semver-diff "^2.0.0" + xdg-basedir "^2.0.0" + upper-case@^1.1.1: version "1.1.3" resolved "https://registry.yarnpkg.com/upper-case/-/upper-case-1.1.3.tgz#f6b4501c2ec4cdd26ba78be7222961de77621598" +url-parse-lax@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/url-parse-lax/-/url-parse-lax-1.0.0.tgz#7af8f303645e9bd79a272e7a14ac68bc0609da73" + dependencies: + prepend-http "^1.0.1" + url-parse@1.0.x: version "1.0.5" resolved "https://registry.yarnpkg.com/url-parse/-/url-parse-1.0.5.tgz#0854860422afdcfefeb6c965c662d4800169927b" @@ -3275,7 +3542,7 @@ user-home@^1.1.1: version "1.1.1" resolved "https://registry.yarnpkg.com/user-home/-/user-home-1.1.1.tgz#2b5be23a32b63a7c9deb8d0f28d485724a3df190" -util-deprecate@~1.0.1: +util-deprecate@^1.0.2, util-deprecate@~1.0.1: version "1.0.2" resolved "https://registry.yarnpkg.com/util-deprecate/-/util-deprecate-1.0.2.tgz#450d4dc9fa70de732762fbd2d4a28981419a0ccf" @@ -3297,7 +3564,7 @@ utils-merge@1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/utils-merge/-/utils-merge-1.0.0.tgz#0294fb922bb9375153541c4f7096231f287c8af8" -uuid@^2.0.2: +uuid@^2.0.1, uuid@^2.0.2: version "2.0.3" resolved "https://registry.yarnpkg.com/uuid/-/uuid-2.0.3.tgz#67e2e863797215530dff318e5bf9dcebfd47b21a" @@ -3431,6 +3698,12 @@ wide-align@^1.1.0: dependencies: string-width "^1.0.1" +widest-line@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/widest-line/-/widest-line-1.0.0.tgz#0c09c85c2a94683d0d7eaf8ee097d564bf0e105c" + dependencies: + string-width "^1.0.1" + window-size@0.1.0: version "0.1.0" resolved "https://registry.yarnpkg.com/window-size/-/window-size-0.1.0.tgz#5438cd2ea93b202efa3a19fe8887aee7c94f9c9d" @@ -3447,6 +3720,20 @@ wrappy@1: version "1.0.2" resolved "https://registry.yarnpkg.com/wrappy/-/wrappy-1.0.2.tgz#b5243d8f3ec1aa35f1364605bc0d1036e30ab69f" +write-file-atomic@^1.1.2: + version "1.3.1" + resolved "https://registry.yarnpkg.com/write-file-atomic/-/write-file-atomic-1.3.1.tgz#7d45ba32316328dd1ec7d90f60ebc0d845bb759a" + dependencies: + graceful-fs "^4.1.11" + imurmurhash "^0.1.4" + slide "^1.1.5" + +xdg-basedir@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/xdg-basedir/-/xdg-basedir-2.0.0.tgz#edbc903cc385fc04523d966a335504b5504d1bd2" + dependencies: + os-homedir "^1.0.0" + xml-char-classes@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/xml-char-classes/-/xml-char-classes-1.0.0.tgz#64657848a20ffc5df583a42ad8a277b4512bbc4d"