summaryrefslogtreecommitdiffstats
path: root/package.json
diff options
context:
space:
mode:
authorsilverwind <me@silverwind.io>2019-11-14 22:39:51 +0100
committerzeripath <art27@cantab.net>2019-11-14 21:39:51 +0000
commit3621944c2d381d159cf2622328927cf282f0b3e0 (patch)
tree17c4b38f851fae79c0084ce47a425b39f99f56c7 /package.json
parent4b5ebb93e48f04227ec18cf042e916df4eafe830 (diff)
downloadgitea-3621944c2d381d159cf2622328927cf282f0b3e0.tar.gz
gitea-3621944c2d381d159cf2622328927cf282f0b3e0.zip
modernize js and use babel (#8973)
* modernize js and use babel - add babel toolchain to transform modern JS to ES5 - extend eslint config for modern rules - fixes linting issues via `eslint --fix` and manual fixes * run 'make css' to satisfy CI * code style tweaks and set js indendation to 2 in .editorconfig * regenerate js
Diffstat (limited to 'package.json')
-rw-r--r--package.json17
1 files changed, 12 insertions, 5 deletions
diff --git a/package.json b/package.json
index 60764c8806..469b5a2ead 100644
--- a/package.json
+++ b/package.json
@@ -5,14 +5,21 @@
"node": ">=8"
},
"devDependencies": {
- "autoprefixer": "9.6.1",
- "eslint": "6.3.0",
+ "@babel/core": "7.7.2",
+ "@babel/preset-env": "7.7.1",
+ "autoprefixer": "9.7.1",
+ "babel-loader": "8.0.6",
+ "core-js": "3.4.1",
+ "eslint": "6.6.0",
+ "eslint-config-airbnb-base": "14.0.0",
+ "eslint-plugin-import": "2.18.2",
"less": "3.10.3",
"less-plugin-clean-css": "1.5.1",
"postcss-cli": "6.1.3",
- "stylelint": "10.1.0",
- "stylelint-config-standard": "18.3.0",
- "updates": "8.5.3",
+ "stylelint": "11.1.1",
+ "stylelint-config-standard": "19.0.0",
+ "terser-webpack-plugin": "2.2.1",
+ "updates": "9.0.1",
"webpack": "4.41.2",
"webpack-cli": "3.3.10"
},