Allow empty Stylelint input on precommit #2089
Annotations
4 errors
Unit test:
src/configs/lint-staged/config.spec.ts#L35
Error: Snapshot `lint-staged > with options > should return a config for { useBiome: true } 1` mismatched
- Expected
+ Received
@@ -5,8 +5,8 @@
"*.(js|jsx|ts|tsx)": [
"foundry run eslint --fix",
],
"*.(ts|tsx)": [Function],
"*.css": [
- "foundry run stylelint --fix",
+ "foundry run stylelint --fix --allow-empty-input",
],
}
❯ src/configs/lint-staged/config.spec.ts:35:22
|
Unit test:
src/configs/lint-staged/config.spec.ts#L35
Error: Snapshot `lint-staged > with options > should return a config for { useBiome: false } 1` mismatched
- Expected
+ Received
@@ -2,8 +2,8 @@
"*.(js|jsx|json|ts|tsx)": [
"foundry run eslint --fix",
],
"*.(ts|tsx)": [Function],
"*.css": [
- "foundry run stylelint --fix",
+ "foundry run stylelint --fix --allow-empty-input",
],
}
❯ src/configs/lint-staged/config.spec.ts:35:22
|
Unit test:
src/configs/lint-staged/config.spec.ts#L45
Error: Snapshot `lint-staged > should override the default config 1` mismatched
- Expected
+ Received
@@ -5,11 +5,11 @@
"*.(js|jsx|json|ts|tsx)": [
"foundry run eslint --fix",
],
"*.(ts|tsx)": [Function],
"*.css": [
- "foundry run stylelint --fix",
+ "foundry run stylelint --fix --allow-empty-input",
],
"*.jsx?": [
"custom command",
],
}
❯ src/configs/lint-staged/config.spec.ts:45:20
|
Unit test
Process completed with exit code 1.
|
Loading