Skip to content

Commit

Permalink
8696kuryg Demo Typescript app with linting (#1)
Browse files Browse the repository at this point in the history
* Add demo TS app

* Add lint action

* Update ts-lint.yml

* Update ts-lint.yml

* Update ts-lint.yml

* Intentionally break lint

* Update node version for action

* Update ts-lint.yml

* Update ts-lint.yml

* Change when actions run

* Update README.md
  • Loading branch information
matcor-bodc authored Nov 12, 2024
1 parent 7b31603 commit 4957cf0
Show file tree
Hide file tree
Showing 20 changed files with 4,913 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/ts-lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Typescript Lint

on:
push:
branches:
- main
pull_request:

jobs:
eslint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install modules
working-directory: ./typescript-demo
run: npm install
- name: Run ESLint
working-directory: ./typescript-demo
run: npm run lint
3 changes: 3 additions & 0 deletions typescript-demo/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"extends": ["next/core-web-vitals", "next/typescript"]
}
40 changes: 40 additions & 0 deletions typescript-demo/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# dependencies
/node_modules
/.pnp
.pnp.*
.yarn/*
!.yarn/patches
!.yarn/plugins
!.yarn/releases
!.yarn/versions

# testing
/coverage

# next.js
/.next/
/out/

# production
/build

# misc
.DS_Store
*.pem

# debug
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# env files (can opt-in for committing if needed)
.env*

# vercel
.vercel

# typescript
*.tsbuildinfo
next-env.d.ts
35 changes: 35 additions & 0 deletions typescript-demo/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
This is a [Next.js](https://nextjs.org) project bootstrapped with [`create-next-app`](https://nextjs.org/docs/app/api-reference/cli/create-next-app).

## Getting Started


First, install dependencies:

```bash
npm run install
```

Then run the development server:

```bash
npm run dev
```

Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.

You can start editing the page by modifying `app/page.tsx`. The page auto-updates as you edit the file.

This project uses [`next/font`](https://nextjs.org/docs/app/building-your-application/optimizing/fonts) to automatically optimize and load [Geist](https://vercel.com/font), a new font family for Vercel.

## Linting

To lint the code base, after doing `npm install` use the command `npm run lint`.

## Learn More

To learn more about Next.js, take a look at the following resources:

- [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API.
- [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial.

You can check out [the Next.js GitHub repository](https://github.com/vercel/next.js) - your feedback and contributions are welcome!
7 changes: 7 additions & 0 deletions typescript-demo/next.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import type { NextConfig } from "next";

const nextConfig: NextConfig = {
/* config options here */
};

export default nextConfig;
Loading

0 comments on commit 4957cf0

Please sign in to comment.