|
11 | 11 | ], |
12 | 12 | "main": "lib/index.js", |
13 | 13 | "scripts": { |
14 | | - "test": "make test" |
| 14 | + "test": "make test", |
| 15 | + "lint": "eslint \"./{lib,test}/**/*.js\"", |
| 16 | + "format": "prettier-eslint --write --list-different \"./{lib,test}/**/*.{js,json,md}\"", |
| 17 | + "precommit": "lint-staged" |
| 18 | + }, |
| 19 | + "lint-staged": { |
| 20 | + "linters": { |
| 21 | + "*.{js,json,md}": [ |
| 22 | + "prettier-eslint --write", |
| 23 | + "git add" |
| 24 | + ] |
| 25 | + } |
15 | 26 | }, |
16 | 27 | "repository": { |
17 | 28 | "type": "git", |
|
38 | 49 | "@segment/isodate": "^1.0.2", |
39 | 50 | "@segment/isodate-traverse": "^1.0.1", |
40 | 51 | "@segment/prevent-default": "^1.0.0", |
| 52 | + "@segment/send-json": "^3.0.0", |
41 | 53 | "@segment/store": "^1.3.20", |
42 | 54 | "@segment/top-domain": "^3.0.0", |
43 | 55 | "bind-all": "^1.0.0", |
44 | | - "extend": "3.0.1", |
45 | 56 | "component-cookie": "^1.1.2", |
46 | 57 | "component-emitter": "^1.2.1", |
47 | 58 | "component-event": "^0.1.4", |
48 | 59 | "component-querystring": "^2.0.0", |
49 | 60 | "component-type": "^1.2.1", |
50 | 61 | "component-url": "^0.2.1", |
51 | 62 | "debug": "^0.7.4", |
| 63 | + "extend": "3.0.1", |
52 | 64 | "inherits": "^2.0.1", |
53 | 65 | "install": "^0.7.3", |
54 | 66 | "is": "^3.1.0", |
55 | 67 | "json3": "^3.3.2", |
56 | 68 | "new-date": "^1.0.0", |
57 | 69 | "next-tick": "^0.2.2", |
58 | 70 | "segmentio-facade": "^3.0.2", |
59 | | - "uuid": "^2.0.2", |
60 | | - "@segment/send-json": "^3.0.0" |
| 71 | + "uuid": "^2.0.2" |
61 | 72 | }, |
62 | 73 | "devDependencies": { |
63 | 74 | "@segment/analytics.js-integration": "^3.2.1", |
|
66 | 77 | "compat-trigger-event": "^1.0.0", |
67 | 78 | "component-each": "^0.2.6", |
68 | 79 | "eslint": "^2.9.0", |
| 80 | + "eslint-config-prettier": "^2.9.0", |
69 | 81 | "eslint-plugin-mocha": "^2.2.0", |
70 | 82 | "eslint-plugin-require-path-exists": "^1.1.5", |
| 83 | + "husky": "^0.14.3", |
71 | 84 | "jquery": "^3.2.1", |
72 | 85 | "karma": "1.3.0", |
73 | 86 | "karma-browserify": "^5.0.4", |
|
79 | 92 | "karma-sauce-launcher": "^1.0.0", |
80 | 93 | "karma-spec-reporter": "0.0.26", |
81 | 94 | "karma-summary-reporter": "^1.5.0", |
| 95 | + "lint-staged": "^7.2.0", |
82 | 96 | "mocha": "^2.2.5", |
83 | 97 | "phantomjs-prebuilt": "^2.1.7", |
| 98 | + "prettier-eslint-cli": "^4.7.1", |
84 | 99 | "proclaim": "^3.4.1", |
85 | 100 | "sinon": "^1.7.3", |
86 | 101 | "watchify": "^3.7.0" |
|
0 commit comments