a40be5499e
Prettier is a code formatter for javascript/typescript. It's relatively common to see complaints about style in pull requests or inconsistent style getting in to Collabora Online. Also, without a formatter it's harder for editors to automatically format code in sensible and consistent ways Prettier doesn't have many options, but those which it does have I have set to the closest values to current behavior (e.g. single quotes) in order to minimize unnecessary changes This commit doesn't format all existing files. Doing so would cause blames, cherry-picks and diffs to become much less useful. Instead, we use browser/.beforeprettier to list all files that would need to be changed, and this file is ignored. You are encouraged but not required to set your editor's equivalent of 'editor.formatOnSaveMode' to only format changed lines This commit also does format of docstatefunctions.js, previously it did not in to check that an incorrectly-formatted file could fail CI. Now it does to make sure that formatting fixes the issue. This file was chosen because it is very new and very small. Change-Id: Ie6067f34aa658f887e149a08aebd0180b2354005 Signed-off-by: Skyler Grey <skyler.grey@collabora.com>
60 lines
1.5 KiB
JSON
60 lines
1.5 KiB
JSON
{
|
|
"name": "cool",
|
|
"version": "0.8.0-dev",
|
|
"description": "Collabora Online front-end",
|
|
"devDependencies": {
|
|
"@braintree/sanitize-url": "6.0.2",
|
|
"@types/jquery": "^3.5.29",
|
|
"@types/jquery.contextmenu": "^1.7.38",
|
|
"@types/jqueryui": "^1.12.21",
|
|
"@types/mocha": "8.2.0",
|
|
"@types/node": "14.14.25",
|
|
"@types/w2ui": "^1.4.37",
|
|
"@typescript-eslint/eslint-plugin": "^4.21.0",
|
|
"@typescript-eslint/parser": "^4.21.0",
|
|
"autolinker": "3.14.1",
|
|
"browserify": "16.5.1",
|
|
"browserify-css": "0.15.0",
|
|
"canvas": "^2.6.1",
|
|
"d3": "6.7.0",
|
|
"eslint": "7.0.0",
|
|
"eslint-config-prettier": "^9.1.0",
|
|
"fzstd": "0.1.0",
|
|
"hammerjs": "2.0.8",
|
|
"jquery": "3.5.1",
|
|
"jquery-contextmenu": "2.9.2",
|
|
"jquery-mousewheel": "3.1.13",
|
|
"jquery-ui": "1.13.2",
|
|
"jscpd": "3.5.10",
|
|
"l10n-for-node": "0.0.1",
|
|
"mocha": "8.2.1",
|
|
"prettier": "^3.1.1",
|
|
"select2": "4.0.13",
|
|
"shrinkpack": "1.0.0-alpha",
|
|
"smartmenus": "1.0.0",
|
|
"stylelint": "13.7.0",
|
|
"typescript": "4.4.2",
|
|
"uglify-js": "3.17.4",
|
|
"uglifycss": "0.0.29",
|
|
"uglifyify": "5.0.2"
|
|
},
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "https://github.com/CollaboraOnline/online.git"
|
|
},
|
|
"keywords": [
|
|
"office",
|
|
"libreoffice",
|
|
"cool",
|
|
"collabora"
|
|
],
|
|
"license": "BSD-2-Clause",
|
|
"dependencies": {
|
|
"jsdom": "^16.4.0"
|
|
},
|
|
"scripts": {
|
|
"test": "mocha 'mocha_tests/**/*.js'",
|
|
"test-single": "mocha",
|
|
"duplication": "jscpd ./src/ --exitCode 1 --min-lines 18"
|
|
}
|
|
}
|