Allow empty Stylelint input on precommit #2089
Annotations
14 errors
src/configs/lint-staged/config.spec.ts > lint-staged > with options > should return a config for { useBiome: true }:
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
|
src/configs/lint-staged/config.spec.ts > lint-staged > with options > should return a config for { useBiome: false }:
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
|
src/configs/lint-staged/config.spec.ts > lint-staged > should override the default config:
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
|
ci (20)
Process completed with exit code 1.
|
ci (18)
The job was canceled because "_20" failed.
|
src/configs/lint-staged/config.spec.ts > lint-staged > with options > should return a config for { useBiome: true }:
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
|
src/configs/lint-staged/config.spec.ts > lint-staged > with options > should return a config for { useBiome: false }:
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
|
src/configs/lint-staged/config.spec.ts > lint-staged > should override the default config:
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
|
ci (18)
The operation was canceled.
|
ci (22)
The job was canceled because "_20" failed.
|
src/configs/lint-staged/config.spec.ts > lint-staged > with options > should return a config for { useBiome: true }:
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
|
src/configs/lint-staged/config.spec.ts > lint-staged > with options > should return a config for { useBiome: false }:
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
|
src/configs/lint-staged/config.spec.ts > lint-staged > should override the default config:
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
|
ci (22)
The operation was canceled.
|