|
14 | 14 | "node": ">= 6.11.5"
|
15 | 15 | },
|
16 | 16 | "scripts": {
|
17 |
| - "lint": "eslint bin lib test examples client-src", |
18 |
| - "pretty": "prettier --loglevel warn --write \"**/*.{js,css,md,json,yml}\"", |
| 17 | + "lint:prettier": "prettier '{**/*,*}.{js,json,md,yml,css}' --list-different", |
| 18 | + "lint:js": "eslint . --cache", |
| 19 | + "lint": "npm-run-all -l -p 'lint:**'", |
19 | 20 | "commitlint": "commitlint --from=master",
|
20 | 21 | "security": "npm audit",
|
21 | 22 | "test:only": "jest --runInBand",
|
|
74 | 75 | "copy-webpack-plugin": "5.0.3",
|
75 | 76 | "css-loader": "2.1.1",
|
76 | 77 | "eslint": "5.16.0",
|
77 |
| - "eslint-config-prettier": "4.3.0", |
| 78 | + "eslint-config-prettier": "^4.3.0", |
78 | 79 | "eslint-config-webpack": "1.2.5",
|
79 | 80 | "eslint-plugin-import": "2.17.2",
|
80 |
| - "eslint-plugin-prettier": "3.1.0", |
81 | 81 | "execa": "1.0.0",
|
82 | 82 | "file-loader": "3.0.1",
|
83 | 83 | "html-loader": "0.5.5",
|
|
91 | 91 | "lint-staged": "8.1.7",
|
92 | 92 | "marked": "0.6.2",
|
93 | 93 | "memfs": "2.15.2",
|
| 94 | + "npm-run-all": "4.1.5", |
94 | 95 | "nyc": "14.1.1",
|
95 | 96 | "prettier": "1.17.1",
|
96 | 97 | "puppeteer": "1.16.0",
|
|
106 | 107 | "peerDependencies": {
|
107 | 108 | "webpack": "^4.0.0"
|
108 | 109 | },
|
109 |
| - "husky": { |
110 |
| - "hooks": { |
111 |
| - "pre-commit": "lint-staged", |
112 |
| - "commit-msg": "commitlint -E HUSKY_GIT_PARAMS" |
113 |
| - } |
114 |
| - }, |
115 |
| - "lint-staged": { |
116 |
| - "*.js": [ |
117 |
| - "eslint --fix", |
118 |
| - "prettier --write", |
119 |
| - "git add" |
120 |
| - ], |
121 |
| - "*.{css,md,json,yml}": [ |
122 |
| - "prettier --write", |
123 |
| - "git add" |
124 |
| - ] |
125 |
| - }, |
126 | 110 | "author": "Tobias Koppers @sokra",
|
127 | 111 | "bugs": "https://github.com/webpack/webpack-dev-server/issues",
|
128 | 112 | "homepage": "https://github.com/webpack/webpack-dev-server#readme",
|
|
0 commit comments