Skip to content

Commit

Permalink
Asad: Eslint workflow added (#21)
Browse files Browse the repository at this point in the history
* lint workflow added

* inline style for checking workflow

* eslint rule removed for workflow check

* worflow fixed

* ignore branches condition removed
  • Loading branch information
Asad520 authored Feb 11, 2024
1 parent 13be30f commit 00b6628
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 2 deletions.
1 change: 0 additions & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,6 @@
],
"react-hooks/exhaustive-deps": "off",
"react-native/no-color-literals": "off",
"react-native/no-inline-styles": "warn",
"react-native/no-raw-text": "off",
"react-native/split-platform-components": "off",
"react/function-component-definition": [
Expand Down
17 changes: 17 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Lint

on:
push:

jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Install dependencies
run: yarn install

- name: Run linting
run: yarn lint
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"start": "react-native start",
"start:clean": "react-native start --reset-cache",
"test": "jest",
"pod": "cd ios; RCT_NEW_ARCH_ENABLED=1 bundle exec pod install --verbose; cd ..",
"pod": "cd ios; bundle install; RCT_NEW_ARCH_ENABLED=1 bundle exec pod install --verbose; cd ..",
"pod:clean": "rm -rf ios/Pods; rm ios/Podfile.lock; yarn pod"
},
"dependencies": {
Expand Down

0 comments on commit 00b6628

Please sign in to comment.