Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
Neo-Ciber94 committed Oct 16, 2023
1 parent b51fecd commit a5a9b5d
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 35 deletions.
25 changes: 6 additions & 19 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,43 +4,30 @@
"es2021": true,
"node": true
},
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended"
],
"extends": ["eslint:recommended", "plugin:@typescript-eslint/recommended"],
"overrides": [
{
"env": {
"node": true
},
"files": [
".eslintrc.{js,cjs}"
],
"files": [".eslintrc.{js,cjs}"],
"parserOptions": {
"sourceType": "script"
}
}
],
"ignorePatterns": [
"*.test.ts",
"**/dist"
],
"ignorePatterns": ["*.test.ts", "**/dist"],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module",
"project": [
"./package/tsconfig.json",
"./tsconfig.json"
]
"project": ["./package/tsconfig.json", "./tsconfig.json"]
},
"plugins": [
"@typescript-eslint"
],
"plugins": ["@typescript-eslint"],
"rules": {
"require-await": "off",
"@typescript-eslint/require-await": "error",
"@typescript-eslint/no-floating-promises": "error",
"@typescript-eslint/consistent-type-imports": "error"
}
}
}
27 changes: 13 additions & 14 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,28 +1,27 @@

name: CI

on:
workflow_dispatch:
push:
branches: [ "*" ]
branches: ["*"]
pull_request:
branches: [ "*" ]
branches: ["*"]

jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: pnpm/action-setup@v2
with:
version: 8
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: pnpm/action-setup@v2
with:
version: 8

- name: Install dependencies
run: pnpm install
- name: Install dependencies
run: pnpm install

- name: Check types
run: pnpm typecheck
- name: Check types
run: pnpm typecheck

- name: Linting
run: pnpm lint
- name: Linting
run: pnpm lint
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const generateImage = createTask("/api/generate-image").withAction(
}

return { url };
},
}
);

export type GenerateImage = typeof generateImage;
Expand Down
2 changes: 1 addition & 1 deletion package/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,4 +58,4 @@
"README.md",
"./package.json"
]
}
}

0 comments on commit a5a9b5d

Please sign in to comment.