linting script and workflow

This commit is contained in:
austinkelsay 2025-04-02 17:46:04 -05:00
parent f8878486b6
commit 2745382283
No known key found for this signature in database
GPG Key ID: 5A763922E5BA08EE
4 changed files with 49 additions and 0 deletions

7
.eslintrc.js Normal file
View File

@ -0,0 +1,7 @@
module.exports = {
extends: 'next/core-web-vitals',
rules: {
// Turn off exhaustive-deps rule that's causing most of the warnings
'react-hooks/exhaustive-deps': 'off'
}
}

22
.github/workflows/lint.yml vendored Normal file
View File

@ -0,0 +1,22 @@
name: Lint
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: 18
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Run lint
run: npm run lint

11
.prettierignore Normal file
View File

@ -0,0 +1,11 @@
# Ignore artifacts
.next
build
node_modules
public
.git
.gitignore
package-lock.json
.DS_Store
# Prisma
prisma/migrations

9
.prettierrc Normal file
View File

@ -0,0 +1,9 @@
{
"semi": true,
"singleQuote": true,
"tabWidth": 2,
"trailingComma": "es5",
"printWidth": 100,
"bracketSpacing": true,
"arrowParens": "avoid"
}