|
5 | 5 | "main": "app.js", |
6 | 6 | "license": "AGPL-3.0", |
7 | 7 | "scripts": { |
8 | | - "test": "npm run-script standard && npm run-script jsonlint", |
| 8 | + "test": "npm run-script eslint && npm run-script jsonlint", |
| 9 | + "eslint": "node_modules/.bin/eslint lib public app.js", |
9 | 10 | "jsonlint": "find . -not -path './node_modules/*' -type f -name '*.json' -o -type f -name '*.json.example' | while read json; do echo $json ; jq . $json; done", |
10 | | - "standard": "node ./node_modules/standard/bin/cmd.js", |
| 11 | + "standard": "echo 'standard is no longer being used, use `npm run eslint` instead!' && exit 1", |
11 | 12 | "dev": "webpack --config webpack.dev.js --progress --colors --watch", |
12 | 13 | "build": "webpack --config webpack.prod.js --progress --colors --bail", |
13 | 14 | "postinstall": "bin/heroku", |
|
169 | 170 | "css-loader": "^1.0.0", |
170 | 171 | "doctoc": "^1.3.0", |
171 | 172 | "ejs-loader": "^0.3.1", |
| 173 | + "eslint": "^5.9.0", |
| 174 | + "eslint-config-standard": "^12.0.0", |
| 175 | + "eslint-plugin-import": "^2.14.0", |
| 176 | + "eslint-plugin-node": "^8.0.0", |
| 177 | + "eslint-plugin-promise": "^4.0.1", |
| 178 | + "eslint-plugin-standard": "^4.0.0", |
172 | 179 | "exports-loader": "^0.7.0", |
173 | 180 | "expose-loader": "^0.7.5", |
174 | 181 | "file-loader": "^2.0.0", |
|
180 | 187 | "mini-css-extract-plugin": "^0.4.1", |
181 | 188 | "optimize-css-assets-webpack-plugin": "^5.0.0", |
182 | 189 | "script-loader": "^0.7.2", |
183 | | - "standard": "^9.0.1", |
184 | 190 | "string-loader": "^0.0.1", |
185 | 191 | "style-loader": "^0.21.0", |
186 | 192 | "uglifyjs-webpack-plugin": "^1.2.7", |
|
190 | 196 | "webpack-merge": "^4.1.4", |
191 | 197 | "webpack-parallel-uglify-plugin": "^1.1.0" |
192 | 198 | }, |
193 | | - "standard": { |
194 | | - "globals": [ |
195 | | - "$", |
196 | | - "CodeMirror", |
197 | | - "Cookies", |
198 | | - "moment", |
199 | | - "editor", |
200 | | - "ui", |
201 | | - "Spinner", |
202 | | - "modeType", |
203 | | - "Idle", |
204 | | - "serverurl", |
205 | | - "key", |
206 | | - "gapi", |
207 | | - "Dropbox", |
208 | | - "FilePicker", |
209 | | - "ot", |
210 | | - "MediaUploader", |
211 | | - "hex2rgb", |
212 | | - "num_loaded", |
213 | | - "Visibility", |
214 | | - "inlineAttachment" |
215 | | - ], |
216 | | - "ignore": [ |
217 | | - "lib/ot", |
218 | | - "public/vendor" |
219 | | - ] |
220 | | - }, |
221 | 199 | "optionalDependencies": { |
222 | 200 | "bufferutil": "^4.0.0", |
223 | 201 | "utf-8-validate": "^5.0.1" |
|
0 commit comments