mirror of
https://github.com/moodle/moodle.git
synced 2025-08-08 18:36:42 +02:00
MDL-79003 js: Bump stylelint and components
Stylelint 15 deprecates a heap of rules which will be removed in 16. We can't use 16 because it's ESM and requires a big restructure of our build process. We can temporarily silence the deprecations and then when we update our build tooling we can make use of @stylistic/stylelint-plugin to add the rules back. This commit: - bumps stylelint and related dependencies accordingly - fixes issues identified with newer sniffs - temporarily silences deprecation warnings
This commit is contained in:
parent
d851f109ef
commit
484da7c0e8
6 changed files with 858 additions and 1612 deletions
|
@ -29,6 +29,7 @@ module.exports = grunt => {
|
|||
// Use a fully-qualified path.
|
||||
src: files,
|
||||
options: {
|
||||
quietDeprecationWarnings: true,
|
||||
configOverrides: {
|
||||
rules: {
|
||||
// These rules have to be disabled in .stylelintrc for scss compat.
|
||||
|
@ -45,7 +46,10 @@ module.exports = grunt => {
|
|||
return {
|
||||
stylelint: {
|
||||
scss: {
|
||||
options: {syntax: 'scss'},
|
||||
options: {
|
||||
quietDeprecationWarnings: true,
|
||||
customSyntax: 'postcss-scss',
|
||||
},
|
||||
src: files,
|
||||
},
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue