aboutsummaryrefslogtreecommitdiffhomepage
path: root/.dev
diff options
context:
space:
mode:
authorArthurHoaro <arthur@hoa.ro>2020-09-22 17:49:49 +0200
committerArthurHoaro <arthur@hoa.ro>2020-09-22 17:51:42 +0200
commit96746d7165f28553b53bd259d03aaf5d63290b7a (patch)
treed6ff84649d848b051e452ea1c72c7f1c70c74755 /.dev
parent0d930454a2892715e691f9c7713e26a3bb4ee96c (diff)
downloadShaarli-96746d7165f28553b53bd259d03aaf5d63290b7a.tar.gz
Shaarli-96746d7165f28553b53bd259d03aaf5d63290b7a.tar.zst
Shaarli-96746d7165f28553b53bd259d03aaf5d63290b7a.zip
Upgrade front end dependencies
Mostly in order to get rid of deprecated deps, and upgrade vulnerable ones. - Upgrade webpack from 3.x to 4.x - Moved babel package to main repo - Replaced deprecated extract-text-webpack-plugin with extract-text-webpack-plugin - Replaced deprecated babel-minify-webpack-plugin with terser-webpack-plugin - Replaced deprecated node-sass with (dart) sass package - Replaced deprecated sass-lint with stylelint (the rules might be a bit different Related to #1531: trivy doesn't raise any more issue
Diffstat (limited to '.dev')
-rw-r--r--.dev/.sasslintrc17
-rw-r--r--.dev/.stylelintrc.js15
2 files changed, 15 insertions, 17 deletions
diff --git a/.dev/.sasslintrc b/.dev/.sasslintrc
deleted file mode 100644
index 47c3145d..00000000
--- a/.dev/.sasslintrc
+++ /dev/null
@@ -1,17 +0,0 @@
1options:
2 max-warnings: 0
3rules:
4 property-sort-order:
5 - 0
6# Sort order rule does not work with CSS variables: https://github.com/sasstools/sass-lint/issues/1161
7# - 1
8# -
9# order: 'concentric'
10 no-important:
11 - 0
12 no-vendor-prefixes:
13 - 0 # this will be fixed with v2: see https://github.com/sasstools/sass-lint/pull/1137
14 nesting-depth:
15 - 1
16 -
17 max-depth: 4
diff --git a/.dev/.stylelintrc.js b/.dev/.stylelintrc.js
new file mode 100644
index 00000000..a754e33b
--- /dev/null
+++ b/.dev/.stylelintrc.js
@@ -0,0 +1,15 @@
1module.exports = {
2 extends: 'stylelint-config-standard',
3 plugins: [
4 "stylelint-scss"
5 ],
6 rules: {
7 "indentation": [2],
8 "number-leading-zero": null,
9 // Replace CSS @ with SASS ones
10 "at-rule-no-unknown": null,
11 "scss/at-rule-no-unknown": true,
12 // not compatible with SASS apparently
13 "no-descending-specificity": null
14 },
15}