|
8 | 8 | ],
|
9 | 9 | "main": "lib/index.js",
|
10 | 10 | "scripts": {
|
11 |
| - "test": "make test" |
| 11 | + "test": "make test", |
| 12 | + "lint": "eslint \"./{lib,test}/**/*.js\"", |
| 13 | + "format": "prettier-eslint --write --list-different \"./{lib,test}/**/*.{js,json,md}\"", |
| 14 | + "precommit": "lint-staged" |
| 15 | + }, |
| 16 | + "lint-staged": { |
| 17 | + "linters": { |
| 18 | + "*.{js,json,md}": [ |
| 19 | + "prettier-eslint --write", |
| 20 | + "git add" |
| 21 | + ] |
| 22 | + } |
12 | 23 | },
|
13 | 24 | "repository": {
|
14 | 25 | "type": "git",
|
|
41 | 52 | "browserify-istanbul": "^2.0.0",
|
42 | 53 | "codecov": "^3.0.2",
|
43 | 54 | "component-each": "^0.2.6",
|
44 |
| - "eslint": "^2.9.0", |
45 |
| - "eslint-plugin-mocha": "^2.2.0", |
46 |
| - "eslint-plugin-react": "^4.0.0", |
47 |
| - "eslint-plugin-require-path-exists": "^1.1.5", |
| 55 | + "eslint": "^4.19.1", |
| 56 | + "eslint-config-prettier": "^2.9.0", |
| 57 | + "eslint-plugin-mocha": "^5.0.0", |
| 58 | + "eslint-plugin-react": "^7.9.1", |
| 59 | + "eslint-plugin-require-path-exists": "^1.1.8", |
| 60 | + "husky": "^0.14.3", |
48 | 61 | "istanbul": "^0.4.3",
|
49 | 62 | "karma": "1.3.0",
|
50 | 63 | "karma-browserify": "^5.0.4",
|
|
55 | 68 | "karma-phantomjs-launcher": "^1.0.0",
|
56 | 69 | "karma-sauce-launcher": "^1.0.0",
|
57 | 70 | "karma-spec-reporter": "0.0.26",
|
| 71 | + "lint-staged": "^7.2.0", |
58 | 72 | "mocha": "^2.2.5",
|
59 | 73 | "phantomjs-prebuilt": "^2.1.7",
|
| 74 | + "prettier-eslint-cli": "^4.7.1", |
60 | 75 | "watchify": "^3.7.0"
|
61 | 76 | }
|
62 | 77 | }
|
0 commit comments