mirror of
https://github.com/zulip/zulip.git
synced 2025-11-02 04:53:36 +00:00
styles: Rename .scss files back to .css.
css-loader@4 broke @import statements referencing files with extensions other than .css, unless those @import statements are compiled away by another loader. Upstream is more interested in arguing that such @import statements are semantically incorrect than applying the one line fix. https://github.com/webpack-contrib/css-loader/issues/1164 Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
committed by
Tim Abbott
parent
7492656b92
commit
a3d26d701e
@@ -45,10 +45,10 @@ def run() -> None:
|
||||
|
||||
by_lang = linter_config.list_files(groups={
|
||||
'backend': ['py', 'sh', 'pp', 'json', 'md', 'txt', 'text', 'yaml', 'rst', 'yml'],
|
||||
'frontend': ['js', 'ts', 'css', 'scss', 'hbs', 'html', 'lock'],
|
||||
'frontend': ['js', 'ts', 'css', 'hbs', 'html', 'lock'],
|
||||
}, exclude=EXCLUDED_FILES)
|
||||
|
||||
linter_config.external_linter('css', ['node', 'node_modules/.bin/stylelint'], ['css', 'scss'],
|
||||
linter_config.external_linter('css', ['node', 'node_modules/.bin/stylelint'], ['css'],
|
||||
fix_arg='--fix',
|
||||
description="Standard CSS style and formatting linter "
|
||||
"(config: stylelint.config.js)")
|
||||
@@ -92,7 +92,7 @@ def run() -> None:
|
||||
description="Sorts Python import statements",
|
||||
check_arg=['--check-only', '--diff'])
|
||||
linter_config.external_linter('prettier', ['node_modules/.bin/prettier', '--check', '--loglevel=warn'],
|
||||
['css', 'js', 'json', 'scss', 'ts', 'yaml', 'yml'],
|
||||
['css', 'js', 'json', 'ts', 'yaml', 'yml'],
|
||||
fix_arg=['--write'],
|
||||
description="Formats CSS, JavaScript, YAML")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user