diff --git a/.github/workflows/setup_and_build.yml b/.github/workflows/setup_and_build.yml index 45ec5ba38f..0cb7199f26 100644 --- a/.github/workflows/setup_and_build.yml +++ b/.github/workflows/setup_and_build.yml @@ -30,6 +30,10 @@ jobs: ${{ runner.os }}-yarn- - name: Install dependencies run: yarn install --immutable + - name: Typecheck + run: yarn typecheck + - name: Lint + run: yarn lint - name: Build run: yarn build - name: Upload artifact diff --git a/package.json b/package.json index 4effdc3664..90ffcdcc6b 100644 --- a/package.json +++ b/package.json @@ -42,9 +42,10 @@ "@typescript-eslint/parser": "^5.48.2", "eslint": "^8.32.0", "eslint-config-prettier": "^8.6.0", + "eslint-plugin-prettier": "^5.5.6", "husky": "^8.0.3", "lint-staged": "^13.1.0", - "prettier": "2.8.8", + "prettier": "^3.3.3", "prettier-plugin-tailwindcss": "^0.8.1", "tailwind-scrollbar": "^3.0.0", "typescript": "^4.9.4" diff --git a/src/components/content/BasicResourcesBox/data.ts b/src/components/content/BasicResourcesBox/data.ts index 2f92ba124a..ac2668d786 100644 --- a/src/components/content/BasicResourcesBox/data.ts +++ b/src/components/content/BasicResourcesBox/data.ts @@ -1,22 +1,22 @@ const resources = { - title: 'Basic Resources', - buttons: [ - { - text: 'Installation Instructions', - path: 'docs/installation', - icon: 'fa6-solid:book', - }, - { - text: 'Documentation', - path: 'https://docs.podman.io/en/latest/', - icon: 'fa6-solid:book', - }, - { - text: 'Podman Troubleshooting Guide', - path: 'https://github.com/containers/podman/blob/main/troubleshooting.md', - icon: 'fa6-solid:book', - }, - ], - }; + title: 'Basic Resources', + buttons: [ + { + text: 'Installation Instructions', + path: 'docs/installation', + icon: 'fa6-solid:book', + }, + { + text: 'Documentation', + path: 'https://docs.podman.io/en/latest/', + icon: 'fa6-solid:book', + }, + { + text: 'Podman Troubleshooting Guide', + path: 'https://github.com/containers/podman/blob/main/troubleshooting.md', + icon: 'fa6-solid:book', + }, + ], +}; - export { resources }; \ No newline at end of file +export { resources }; diff --git a/src/components/content/BasicResourcesBox/index.tsx b/src/components/content/BasicResourcesBox/index.tsx index a865245b5c..10268b7b30 100644 --- a/src/components/content/BasicResourcesBox/index.tsx +++ b/src/components/content/BasicResourcesBox/index.tsx @@ -15,7 +15,7 @@ const BasicResourcesBox = () => {
  • + className="mx-auto flex h-32 max-w-lg flex-col items-center justify-center gap-4 rounded-md bg-gray-100 p-4 text-center leading-none text-purple-700 no-underline underline-offset-4 transition duration-150 ease-linear hover:bg-purple-700 hover:text-purple-50 hover:no-underline hover:shadow-md dark:bg-gray-700 dark:hover:bg-purple-900 dark:hover:text-white lg:h-auto lg:flex-row xl:justify-start"> {button.text} diff --git a/src/components/content/CodeExampleSection/data.ts b/src/components/content/CodeExampleSection/data.ts index 9e46eeb91d..23599c49d8 100644 --- a/src/components/content/CodeExampleSection/data.ts +++ b/src/components/content/CodeExampleSection/data.ts @@ -1,5 +1,5 @@ const searchExample = { - command: `$ podman search httpd`, + command: '$ podman search httpd', // prettier-ignore code: ` INDEX NAME DESCRIPTION STARS OFFICIAL AUTOMATED @@ -13,10 +13,10 @@ const searchExample = { `, - label: `Podman can search for images on remote registries with some simple keywords.`, + label: 'Podman can search for images on remote registries with some simple keywords.', }; const searchFilterExample = { - command: `$ podman search httpd --filter=is-official`, + command: '$ podman search httpd --filter=is-official', // prettier-ignore code:` INDEX NAME DESCRIPTION STARS OFFICIAL AUTOMATED @@ -37,19 +37,20 @@ const searchFilterExample = { `, - label: `You can also enhance your search with filters.`, - extra: `Downloading (pulling) an image is easy, too.`, + label: 'You can also enhance your search with filters.', + extra: 'Downloading (pulling) an image is easy, too.', }; const imagesExample = { - command: `$ podman images`, + command: '$ podman images', // prettier-ignore code:` REPOSITORY TAG IMAGE ID CREATED SIZE docker.io/library/httpd latest d294bb32c207 12 hours ago 148 MB `, - label: `Podman can search for images on remote registries with some simple keywords.`, - extra: `**Note**: Podman searches in different registries. Therefore it is recommend to use the full image name (docker.io/library/httpd instead of httpd) to ensure that you are using the correct image.`, + label: 'Podman can search for images on remote registries with some simple keywords.', + extra: + '**Note**: Podman searches in different registries. Therefore it is recommend to use the full image name (docker.io/library/httpd instead of httpd) to ensure that you are using the correct image.', }; export { searchExample, searchFilterExample, imagesExample }; diff --git a/src/components/content/FeaturesCarousel/index.tsx b/src/components/content/FeaturesCarousel/index.tsx index 38096ed7d6..b5cb42a7af 100644 --- a/src/components/content/FeaturesCarousel/index.tsx +++ b/src/components/content/FeaturesCarousel/index.tsx @@ -7,8 +7,7 @@ const Tab = (props): JSX.Element => { return (