feat(web): run prettier/eslint checks in pipeline

This commit is contained in:
Collin Barrett 2024-06-14 14:11:24 -05:00
parent 2fefd15bb3
commit c4cb6887fd
5 changed files with 15 additions and 5 deletions

View file

@ -42,6 +42,14 @@ jobs:
run: npm ci
working-directory: ./web
- name: Run Prettier
run: npm run prettier:check
working-directory: ./web
- name: Run ESLint
run: npm run eslint:check
working-directory: ./web
- name: Build
run: npm run build
working-directory: ./web

View file

@ -33,7 +33,9 @@
"start": "react-app-rewired start",
"build": "react-app-rewired build",
"test": "react-app-rewired test",
"eject": "react-scripts eject"
"eject": "react-scripts eject",
"prettier:check": "prettier --check 'src/**/*.{js,jsx,ts,tsx}'",
"eslint:check": "eslint 'src/**/*.{js,jsx,ts,tsx}'"
},
"eslintConfig": {
"extends": [
@ -54,4 +56,4 @@
"last 1 safari version"
]
}
}
}

View file

@ -1,4 +1,4 @@
declare module "*.svg" {
declare module "*.svg" {
const content: any;
export default content;
}

View file

@ -1,4 +1,4 @@
export interface List {
export interface List {
id: number;
name: string;
description?: string;

View file

@ -1,4 +1,4 @@
export interface ListDetails {
export interface ListDetails {
id: number;
name: string;
description?: string;