description: Run simulator code linter and formatter.
---
-Run simulator code linter and formatter with autofixes.
+Run simulator code formatter and linter with autofixes.
Raw output:
!`pnpm format`
-Summarize code linter or formatter failures and propose targeted fixes.
+Summarize code formatter or linter failures and propose targeted fixes.
### Package Management
```bash
-pnpm install # Install dependencies
+pnpm install # Install dependencies
pnpm clean:node_modules # Clean node_modules
```
```bash
pnpm lint # Run linter
-pnpm lint:fix # Fix linting issues
-pnpm format # Format code with Prettier and fix ESLint issues
+pnpm format # Format with Prettier and lint with ESLint with autofixes
```
### UI Development
### 1. Code Quality Checks
-- [ ] Run `pnpm lint` to check for linting issues
-- [ ] Run `pnpm format` to format code and fix auto-fixable issues
+- [ ] Run `pnpm format` to format code, fix autofixable issues and check for remaining linting issues
- [ ] Ensure TypeScript compilation passes (part of build process)
### 2. Testing
pnpm dev
```
-#### Formats files
+#### Formats, lints and fixes files
```shell
pnpm format
"clean:node_modules": "pnpm exec rimraf node_modules",
"lint": "cross-env TIMING=1 eslint --cache .",
"lint:fix": "cross-env TIMING=1 eslint --cache --fix .",
- "format": "prettier --cache --write .",
+ "format": "prettier --cache --write .; eslint --cache --fix .",
"test": "vitest",
"coverage": "vitest run --coverage"
},