jaoafa/jao-ui

Stylelint14の対応

Closed this issue · 3 comments

Stylelintのバージョン14への移行対応を行う。
https://stylelint.io/migration-guide/to-14/

SCSSを扱うには stylelint-config-standard-scss が必要。
現在入っている stylelint-config-standardstylelint-config-standard-scss に含まれているようなので削除。

Vueで使用するには postcss-html が必要。
パッケージのページに postcss-scss を入れるようにとあるのでこれも追加する。

If you want support SCSS/SASS/LESS/SugarSS syntax, you need to install the corresponding module.
SCSS: postcss-scss

クラス名に kebab-case を強要されてBEMが使えないので selector-class-pattern を設定する。
また、 rgba() でカンマを削除するようにエラーが出るが、ビルド時におこられるので color-function-notationlegacy にする。