|
10 | 10 | "engines": { |
11 | 11 | "node": ">= 6.0.0" |
12 | 12 | }, |
13 | | - "files": [ |
14 | | - "lib" |
15 | | - ], |
| 13 | + "files": ["lib"], |
16 | 14 | "author": { |
17 | 15 | "name": "Tommy Leunen", |
18 | 16 | "email": "tommy.leunen@gmail.com", |
|
42 | 40 | "devDependencies": { |
43 | 41 | "babel-cli": "^6.26.0", |
44 | 42 | "babel-core": "^6.26.0", |
45 | | - "babel-jest": "^21.2.0", |
| 43 | + "babel-jest": "^22.4.1", |
46 | 44 | "babel-plugin-syntax-dynamic-import": "^6.18.0", |
47 | 45 | "babel-plugin-transform-es2015-modules-commonjs": "^6.26.0", |
48 | 46 | "babel-plugin-transform-object-rest-spread": "^6.26.0", |
49 | 47 | "babel-preset-env": "^1.6.0", |
50 | 48 | "common-tags": "^1.4.0", |
51 | | - "eslint": "^4.9.0", |
52 | | - "eslint-config-airbnb-base": "^11.3.2", |
53 | | - "eslint-plugin-import": "^2.8.0", |
54 | | - "jest": "^21.2.1", |
| 49 | + "eslint": "^4.19.0", |
| 50 | + "eslint-config-airbnb-base": "^12.1.0", |
| 51 | + "eslint-config-prettier": "^2.9.0", |
| 52 | + "eslint-plugin-import": "^2.9.0", |
| 53 | + "husky": "^0.14.3", |
| 54 | + "jest": "^22.4.2", |
| 55 | + "lint-staged": "^7.0.0", |
| 56 | + "prettier-eslint-cli": "^4.7.1", |
55 | 57 | "standard-version": "^4.2.0" |
56 | 58 | }, |
57 | 59 | "scripts": { |
58 | 60 | "lint": "eslint src test", |
59 | 61 | "compile": "babel src --out-dir lib", |
60 | 62 | "pretest": "npm run lint", |
61 | | - "test": "jest --coverage", |
62 | | - "test:suite": "jest", |
| 63 | + "test": "jest", |
| 64 | + "test:coverage": "jest --coverage", |
63 | 65 | "test:watch": "jest --watch", |
64 | 66 | "prepublish": "npm run compile", |
65 | | - "release": "standard-version" |
| 67 | + "release": "standard-version", |
| 68 | + "precommit": "lint-staged" |
| 69 | + }, |
| 70 | + "lint-staged": { |
| 71 | + "*.{json,md}": ["prettier-eslint --write", "git add"], |
| 72 | + "*.{js}": ["prettier-eslint --write", "eslint --fix", "git add"] |
66 | 73 | }, |
67 | 74 | "jest": { |
68 | 75 | "testRegex": "/test/.*\\.test\\.js$", |
69 | | - "collectCoverageFrom": [ |
70 | | - "src/**/*.js", |
71 | | - "!src/log.js" |
72 | | - ] |
73 | | - }, |
74 | | - "greenkeeper": { |
75 | | - "ignore": [ |
76 | | - "babel-jest", |
77 | | - "eslint", |
78 | | - "eslint-plugin-import" |
79 | | - ] |
| 76 | + "collectCoverageFrom": ["src/**/*.js", "!src/log.js"] |
80 | 77 | } |
81 | 78 | } |
0 commit comments