Skip to content

Commit

Permalink
Ignore more .tsx and add TSC action
Browse files Browse the repository at this point in the history
  • Loading branch information
rcantin-w committed Oct 3, 2024
1 parent 6122d35 commit 812481f
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,11 +80,11 @@ module.exports = {
{
// we have non-test files in the pipeline/test directory
// this ensures the jest rules only apply to test files
files: ['*test.ts', '*test.tsx'],
files: ['*test.ts'],
extends: ['plugin:jest/recommended'],
},
{
files: ['*.ts', '*.tsx'],
files: ['*.ts'],
parser: '@typescript-eslint/parser',
plugins: [...sharedPlugins, '@typescript-eslint'],
extends: [...sharedExtends, 'plugin:@typescript-eslint/recommended'],
Expand Down
19 changes: 19 additions & 0 deletions .github/workflows/tsc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: 'Typescript'
on:
push:

jobs:
tsc:
name: tsc
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: install Node
# https://github.com/actions/setup-node?tab=readme-ov-file#usage
# The node-version input is optional. If not supplied, the node version from PATH will be used.
# However, it is recommended to always specify Node.js version and don't rely on the system one.
uses: actions/setup-node@v4
with:
node-version: 20
- name: yarn tsc
run: yarn install && yarn tsc

0 comments on commit 812481f

Please sign in to comment.