mirror of
https://github.com/collinbarrett/FilterLists.git
synced 2026-03-11 09:04:27 +00:00
feat(web): ✨ run prettier/eslint checks in pipeline
This commit is contained in:
parent
2fefd15bb3
commit
c4cb6887fd
5 changed files with 15 additions and 5 deletions
8
.github/workflows/web.yml
vendored
8
.github/workflows/web.yml
vendored
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
declare module "*.svg" {
|
||||
declare module "*.svg" {
|
||||
const content: any;
|
||||
export default content;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
export interface List {
|
||||
export interface List {
|
||||
id: number;
|
||||
name: string;
|
||||
description?: string;
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
export interface ListDetails {
|
||||
export interface ListDetails {
|
||||
id: number;
|
||||
name: string;
|
||||
description?: string;
|
||||
|
|
|
|||
Loading…
Reference in a new issue