Commit 020684e2 authored by Will Binns-Smith's avatar Will Binns-Smith

Format css with Biome

This formats our css files with Biome. It continues to exempt examples and create-next-app templates. These will be addressed up the stack.
parent bd2cd68c
......@@ -10,6 +10,8 @@
*.d.mts
*.json
*.jsonc
*.css
*.scss
# Temporarily continue to format files here until they're covered by Biome
!examples/**/*
......
......@@ -8,6 +8,12 @@
"[json]": {
"editor.defaultFormatter": "biomejs.biome"
},
"[css]": {
"editor.defaultFormatter": "biomejs.biome"
},
"[scss]": {
"editor.defaultFormatter": "biomejs.biome"
},
// Formatting using Rust-Analyzer for Rust.
"[rust]": {
"editor.defaultFormatter": "rust-lang.rust-analyzer"
......
......@@ -15,7 +15,9 @@
"**/*.cjs",
"**/*.d.mts",
"**/*.json",
"**/*.jsonc"
"**/*.jsonc",
"**/*.css",
"**/*.scss"
],
"ignoreUnknown": false,
"ignore": [
......@@ -92,6 +94,8 @@
"turbopack/crates/turbopack-tests/tests/**/static",
"turbopack/crates/turbopack/tests/node-file-trace/integration",
// invalid css
"test/integration/css-features/fixtures/inline-comments/pages/global.css",
// does not parse with the top-level return
"turbopack/crates/turbopack-tests/tests/snapshot/comptime/early-return/input/module.js",
// intentionally does not parse as esm
......@@ -116,6 +120,14 @@
"indentStyle": "space",
"formatWithErrors": true
},
"css": {
"parser": {
"cssModules": true
},
"formatter": {
"quoteStyle": "single"
}
},
"javascript": {
"formatter": {
"quoteStyle": "single",
......
......@@ -2,10 +2,10 @@ module.exports = {
'*.{js,jsx,mjs,ts,tsx,mts,mdx}': [
'cross-env ESLINT_USE_FLAT_CONFIG=false eslint --config .eslintrc.json --no-eslintrc --fix',
],
'*.{md,mdx,css,html,yml,yaml,scss}': [
'*.{md,mdx,html,yml,yaml}': [
'prettier --with-node-modules --ignore-path .prettierignore --write',
],
'*.{js,jsx,ts,tsx,cjs,mjs,d.mts,json,jsonc}': [
'*.{js,jsx,ts,tsx,cjs,mjs,d.mts,json,jsonc,css,scss}': [
'biome format --write --no-errors-on-unmatched',
],
'*.rs': ['cargo fmt --'],
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment