1
0
mirror of https://github.com/bitwarden/browser synced 2026-02-06 03:33:30 +00:00

Lint fixes

This commit is contained in:
Jeffrey Holland
2025-08-15 16:53:39 +02:00
parent 58e093f417
commit 22d2432b32
7 changed files with 4 additions and 14 deletions

View File

@@ -25,7 +25,6 @@ It is designed with accessibility and responsive design in mind.
## Installation and Setup
1. Ensure you have the necessary dependencies installed:
- `lit`: Used to render the component.
- `@emotion/css`: Used for styling the component.

View File

@@ -25,7 +25,6 @@ handling, and a disabled state. The component is optimized for accessibility and
## Installation and Setup
1. Ensure you have the necessary dependencies installed:
- `lit`: Used to render the component.
- `@emotion/css`: Used for styling the component.

View File

@@ -22,7 +22,6 @@ a close icon for visual clarity. The component is designed to be intuitive and a
## Installation and Setup
1. Ensure you have the necessary dependencies installed:
- `lit`: Used to render the component.
- `@emotion/css`: Used for styling the component.

View File

@@ -25,7 +25,6 @@ or settings where inline editing is required.
## Installation and Setup
1. Ensure you have the necessary dependencies installed:
- `lit`: Used to render the component.
- `@emotion/css`: Used for styling the component.

View File

@@ -50,8 +50,8 @@ describe("LocalBackedSessionStorage", () => {
const result = await sut.get("test");
// FIXME: Remove when updating file. Eslint update
// eslint-disable-next-line @typescript-eslint/no-unused-expressions
expect(encryptService.decryptString).toHaveBeenCalledWith(encrypted, sessionKey),
expect(result).toEqual("decrypted");
(expect(encryptService.decryptString).toHaveBeenCalledWith(encrypted, sessionKey),
expect(result).toEqual("decrypted"));
});
it("caches the decrypted value when one is stored in local storage", async () => {
@@ -69,8 +69,8 @@ describe("LocalBackedSessionStorage", () => {
const result = await sut.get("test");
// FIXME: Remove when updating file. Eslint update
// eslint-disable-next-line @typescript-eslint/no-unused-expressions
expect(encryptService.decryptString).toHaveBeenCalledWith(encrypted, sessionKey),
expect(result).toEqual("decrypted");
(expect(encryptService.decryptString).toHaveBeenCalledWith(encrypted, sessionKey),
expect(result).toEqual("decrypted"));
});
it("caches the decrypted value when one is stored in local storage", async () => {

View File

@@ -19,7 +19,6 @@ import { IconModule } from "@bitwarden/components";
## Developer Instructions
1. **Download the SVG** and import it as an `.svg` initially into the IDE of your choice.
- The SVG should be formatted using either a built-in formatter or an external tool like
[SVG Formatter Beautifier](https://codebeautify.org/svg-formatter-beautifier) to make applying
classes easier.
@@ -35,7 +34,6 @@ import { IconModule } from "@bitwarden/components";
```
5. **Replace any hardcoded strokes or fills** with the appropriate Tailwind class.
- **Note:** Stroke is used when styling the outline of an SVG path, while fill is used when
styling the inside of an SVG path.
@@ -75,14 +73,11 @@ import { IconModule } from "@bitwarden/components";
6. **Remove any hardcoded width or height attributes** if your SVG has a configured
[viewBox](https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/viewBox) attribute in order
to allow the SVG to scale to fit its container.
- **Note:** Scaling is required for any SVG used as an
[AnonLayout](?path=/docs/auth-anon-layout--docs) `pageIcon`.
7. **Import your SVG const** anywhere you want to use the SVG.
- **Angular Component Example:**
- **TypeScript:**
```typescript

View File

@@ -153,7 +153,6 @@ what would be helpful to you if you were consuming this component for the first
2. (For team-owned components) Check if your file path is already included in the
`.storybook/main.ts` config -- if not, add it
3. Write the docs `*.mdx` page
- What is the component intended to be used for?
- How to import and use it? What inputs and slots are available?
- Are there other usage guidelines, such as pointing out similar components and when to use each?