diff options
author | ArthurHoaro <arthur@hoa.ro> | 2020-09-22 17:49:49 +0200 |
---|---|---|
committer | ArthurHoaro <arthur@hoa.ro> | 2020-09-22 17:51:42 +0200 |
commit | 96746d7165f28553b53bd259d03aaf5d63290b7a (patch) | |
tree | d6ff84649d848b051e452ea1c72c7f1c70c74755 /.dev/.stylelintrc.js | |
parent | 0d930454a2892715e691f9c7713e26a3bb4ee96c (diff) | |
download | Shaarli-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/.stylelintrc.js')
-rw-r--r-- | .dev/.stylelintrc.js | 15 |
1 files changed, 15 insertions, 0 deletions
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 @@ | |||
1 | module.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 | } | ||