diff options
| author | ST-DDT <[email protected]> | 2023-11-07 23:43:58 +0100 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-11-07 22:43:58 +0000 |
| commit | fa26a44789e6cd808cfcf0007d7c4e10b333cef7 (patch) | |
| tree | a9b9bad5523c45f3a79e43f8e899ab3aad25121e | |
| parent | 6f977f6b0122dc1761152d4eb7922fed63dc87c0 (diff) | |
| download | faker-fa26a44789e6cd808cfcf0007d7c4e10b333cef7.tar.xz faker-fa26a44789e6cd808cfcf0007d7c4e10b333cef7.zip | |
infra(typescript-eslint): switch-exhaustiveness-check (#2519)
| -rw-r--r-- | .eslintrc.js | 1 | ||||
| -rw-r--r-- | src/modules/color/index.ts | 3 |
2 files changed, 4 insertions, 0 deletions
diff --git a/.eslintrc.js b/.eslintrc.js index 16d720b9..6636c8f3 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -101,6 +101,7 @@ module.exports = defineConfig({ 'error', { allowNumber: true, allowBoolean: true }, ], + '@typescript-eslint/switch-exhaustiveness-check': 'error', '@typescript-eslint/unbound-method': 'off', '@typescript-eslint/unified-signatures': 'off', // incompatible with our api docs generation diff --git a/src/modules/color/index.ts b/src/modules/color/index.ts index ee626e09..5962ef71 100644 --- a/src/modules/color/index.ts +++ b/src/modules/color/index.ts @@ -64,6 +64,8 @@ function formatHexColor( case 'lower': hexColor = hexColor.toLowerCase(); break; + case 'mixed': + // Do nothing } if (options?.prefix) { @@ -156,6 +158,7 @@ function toColorFormat( return toCSS(values, cssFunction, space); case 'binary': return toBinary(values); + case 'decimal': default: return values; } |
