Skip to content

chore: replace deprecated eslint core rules with dprint #55

chore: replace deprecated eslint core rules with dprint

chore: replace deprecated eslint core rules with dprint #55

Workflow file for this run

name: lint-ios
on:
pull_request:
branches: [main]
paths:
- "packages/mobile/ios/**"
- "packages/fabricMobile/ios/**"
- "packages/react-native-avoid-softinput/ios/**"
- ".github/workflows/lint-ios.yml"
jobs:
lint-ios:
name: Lint Swift & ObjC
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
- name: SwiftLint
run: |
#!/bin/bash
if ! command -v swiftlint &> /dev/null
then
echo "SwiftLint is not installed. Installing"
brew install swiftlint
fi
swiftlint lint --config ./packages/mobile/ios/.swiftlint.yml --quiet
swiftlint lint --config ./packages/fabricMobile/ios/.swiftlint.yml --quiet
- name: ClangFormat
run: |
#!/bin/bash
if ! command -v clang-format &> /dev/null
then
echo "ClangFormat is not installed. Installing"
brew install clang-format
fi
clang-format --dry-run -i ./packages/react-native-avoid-softinput/ios/*.{h,mm} ./packages/mobile/ios/AvoidSoftinputExample/*.{h,mm} -Werror
clang-format --dry-run -i ./packages/react-native-avoid-softinput/ios/*.{h,mm} ./packages/fabricMobile/ios/FabricAvoidSoftinputExample/*.{h,mm} -Werror