Skip to content

Commit

Permalink
feat: hooked up eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
petertonysmith94 committed Jan 9, 2024
1 parent 824432c commit d366946
Show file tree
Hide file tree
Showing 4 changed files with 284 additions and 101 deletions.
9 changes: 9 additions & 0 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
/* eslint-env node */
module.exports = {
extends: ['eslint:recommended', 'plugin:@typescript-eslint/recommended'],
parser: '@typescript-eslint/parser',
plugins: ['@typescript-eslint'],
root: true,
env: { browser: true, es2020: true },
ignorePatterns: ['dist', '.eslintrc.cjs', 'config-overrides.js'],
};
5 changes: 4 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: 🏗️ Build
name: 🧹 Lint + 🏗️ Build
on:
push:
branches:
Expand Down Expand Up @@ -31,6 +31,9 @@ jobs:
- name: Install Dependencies 🔧
run: pnpm install

- name: Lint 🧹
run: pnpm lint

- name: Build 🔨
run: pnpm run build

Expand Down
8 changes: 6 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
"react-scripts": "5.0.1",
"styled-components": "^6.0.4",
"ts-md5": "^1.3.1",
"typescript": "^4.9.5",
"web-vitals": "^2.1.4"
},
"devDependencies": {
Expand All @@ -22,13 +21,18 @@
"@types/node": "^16.18.38",
"@types/react": "^18.2.15",
"@types/react-dom": "^18.2.7",
"@typescript-eslint/eslint-plugin": "^6.18.1",
"@typescript-eslint/parser": "^6.18.1",
"eslint": "^8.56.0",
"gh-pages": "^5.0.0",
"react-app-rewired": "^2.2.1"
"react-app-rewired": "^2.2.1",
"typescript": "^4.9.5"
},
"scripts": {
"start": "react-app-rewired start",
"build": "react-app-rewired build",
"test": "react-app-rewired test",
"lint": "eslint . --ext .ts,.tsx",
"eject": "react-scripts eject",
"deploy": "gh-pages -d build"
},
Expand Down
Loading

0 comments on commit d366946

Please sign in to comment.