diff --git a/.github/workflows/linter.yml b/.github/workflows/linter.yml new file mode 100644 index 00000000..a4a040ec --- /dev/null +++ b/.github/workflows/linter.yml @@ -0,0 +1,48 @@ +--- +################################# +################################# +## Super Linter GitHub Actions ## +################################# +################################# +name: Lint Code Base + +############################# +# Start the job on all push # +############################# +on: + + pull_request: + branches: [main] + +############### +# Set the Job # +############### +jobs: + build: + # Name the Job + name: Lint Code Base + # Set the agent to run on + runs-on: ubuntu-latest + + ################## + # Load all steps # + ################## + steps: + ########################## + # Checkout the code base # + ########################## + - name: Checkout Code + uses: actions/checkout@v4 + with: + # Full git history is needed to get a proper + # list of changed files within `super-linter` + fetch-depth: 0 + + ################################ + # Run Linter against code base # + ################################ + - name: Lint Code Base + uses: super-linter/super-linter@v6.6.0 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + VALIDATE_JAVASCRIPT_ES: true \ No newline at end of file diff --git a/app/(home)/course/page.tsx b/app/(home)/course/page.tsx index 08b8b3b2..c10fe2ca 100644 --- a/app/(home)/course/page.tsx +++ b/app/(home)/course/page.tsx @@ -4,7 +4,6 @@ import Link, { type LinkProps } from 'next/link'; import Image from 'next/image'; import { buttonVariants } from '@/components/ui/button'; import { cn } from '@/utils/cn'; -import Spot from '@/public/spot.png'; const cardIconVariants = cva( 'mb-2 size-9 rounded-lg border p-1 shadow-sm shadow-primary/50', @@ -24,13 +23,6 @@ export default function DocsPage(): React.ReactElement { />