diff --git a/docs/CONTRIBUTING.md b/docs/CONTRIBUTING.md index b68cd24e5e8..c64ee516fe9 100644 --- a/docs/CONTRIBUTING.md +++ b/docs/CONTRIBUTING.md @@ -6,8 +6,6 @@ You can contribute by [opening an issue](https://github.com/linode/manager/issue ## Opening an issue -testing - Feel free to open an issue to report a bug or request a feature. ## Submitting a pull request diff --git a/packages/manager/package.json b/packages/manager/package.json index 402059b3f71..c77a6856aff 100644 --- a/packages/manager/package.json +++ b/packages/manager/package.json @@ -95,7 +95,7 @@ "lint": "eslint . --ext .js,.ts,.tsx", "build": "vite build", "build:analyze": "bunx vite-bundle-visualizer", - "precommit": "lint-staged", + "precommit": "lint-staged && yarn typecheck", "test": "vitest run", "test:debug": "node --inspect-brk scripts/test.js --runInBand", "storybook": "NODE_OPTIONS='--max-old-space-size=4096' storybook dev -p 6006", @@ -112,12 +112,7 @@ "coverage:summary": "vitest run --coverage.enabled --reporter=junit --coverage.reporter=json-summary" }, "lint-staged": { - "*.{ts,tsx,js}": [ - "eslint --ext .js,.ts,.tsx --fix" - ], - "*.{ts,tsx}": [ - "yarn typecheck" - ] + "*.{ts,tsx,js}": "eslint --ext .js,.ts,.tsx --fix" }, "devDependencies": { "@linode/eslint-plugin-cloud-manager": "^0.0.5", diff --git a/packages/manager/src/Root.tsx b/packages/manager/src/Root.tsx index 563f51f3b23..3df94224ecb 100644 --- a/packages/manager/src/Root.tsx +++ b/packages/manager/src/Root.tsx @@ -16,7 +16,10 @@ import { useNotificationContext, } from 'src/features/NotificationCenter/NotificationCenterContext'; import { TopMenu } from 'src/features/TopMenu/TopMenu'; -import { useMutatePreferences, usePreferences } from 'src/queries/profile/preferences'; +import { + useMutatePreferences, + usePreferences, +} from 'src/queries/profile/preferences'; import { ENABLE_MAINTENANCE_MODE } from './constants'; import { complianceUpdateContext } from './context/complianceUpdateContext';