Skip to content

feat: Move Props into Nitro Modules core via C++ template #4399

feat: Move Props into Nitro Modules core via C++ template

feat: Move Props into Nitro Modules core via C++ template #4399

name: Lint TypeScript
permissions:
contents: read
on:
push:
branches:
- main
paths:
- '.github/workflows/lint-typescript.yml'
- 'config'
- '**/*.ts'
- '**/*.tsx'
- '**/*.js'
- '**/*.jsx'
- '**/*.json'
- '**/*.lockb'
- '**/package.json'
pull_request:
paths:
- '.github/workflows/lint-typescript.yml'
- 'config'
- '**/*.ts'
- '**/*.tsx'
- '**/*.js'
- '**/*.jsx'
- '**/*.json'
- '**/*.lockb'
- '**/package.json'
jobs:
tsc:
name: Compile TypeScript (tsc)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- uses: oven-sh/setup-bun@v2
- name: Install npm dependencies (bun)
run: bun install
- name: Run TypeScript (tsc)
run: bun typecheck
lint:
name: Lint TypeScript (eslint, prettier)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- uses: oven-sh/setup-bun@v2
- name: Install npm dependencies (bun)
run: bun install
- name: Run ESLint CI in example/
working-directory: example
run: bun lint-ci
- name: Run ESLint CI in packages/nitrogen
working-directory: packages/nitrogen
run: bun lint-ci
- name: Run ESLint CI in packages/react-native-nitro-test-external
working-directory: packages/react-native-nitro-test-external
run: bun lint-ci
- name: Run ESLint CI in packages/react-native-nitro-test
working-directory: packages/react-native-nitro-test
run: bun lint-ci
- name: Run ESLint CI in packages/react-native-nitro-modules
working-directory: packages/react-native-nitro-modules
run: bun lint-ci
- name: Run ESLint with auto-fix in example/
working-directory: example
run: bun lint
- name: Run ESLint with auto-fix in packages/nitrogen
working-directory: packages/nitrogen
run: bun lint
- name: Run ESLint with auto-fix in packages/react-native-nitro-test-external
working-directory: packages/react-native-nitro-test-external
run: bun lint
- name: Run ESLint with auto-fix in packages/react-native-nitro-test
working-directory: packages/react-native-nitro-test
run: bun lint
- name: Run ESLint with auto-fix in packages/react-native-nitro-modules
working-directory: packages/react-native-nitro-modules
run: bun lint
- name: Verify no files have changed after auto-fix
run: git diff --exit-code HEAD -- . ':(exclude)bun.lock'