diff --git a/.eslintrc.js b/.eslintrc.js index dcf0be08..94d87ac5 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -10,6 +10,8 @@ module.exports = { '@typescript-eslint/no-shadow': ['error'], 'no-shadow': 'off', 'no-undef': 'off', + 'react-native/no-inline-styles': 'off', + 'no-console': 'warn', }, }, ], diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 5fbfff48..120e6ade 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,45 +1,45 @@ name: CI on: - push: - branches: - - main + push: + branches: + - main jobs: - install-and-test: - name: Install dependencies - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - name: Install npm dependencies - run: | - npm install + install-and-test: + name: Install dependencies + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Install npm dependencies + run: | + npm install - build-android: - name: Build app - needs: install-and-test - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - name: Install Dependencies - run: | - npm install + build-android: + name: Build app + needs: install-and-test + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Install Dependencies + run: | + npm install - - name: Cache Gradle Wrapper - uses: actions/cache@v2 - with: - path: ~/.gradle/wrapper - key: ${{ runner.os }}-gradle-wrapper-${{ hashFiles('gradle/wrapper/gradle-wrapper.properties') }} + - name: Cache Gradle Wrapper + uses: actions/cache@v2 + with: + path: ~/.gradle/wrapper + key: ${{ runner.os }}-gradle-wrapper-${{ hashFiles('gradle/wrapper/gradle-wrapper.properties') }} - - name: Cache Gradle Dependencies - uses: actions/cache@v2 - with: - path: ~/.gradle/caches - key: ${{ runner.os }}-gradle-caches-${{ hashFiles('gradle/wrapper/gradle-wrapper.properties') }} - restore-keys: | - ${{ runner.os }}-gradle-caches- + - name: Cache Gradle Dependencies + uses: actions/cache@v2 + with: + path: ~/.gradle/caches + key: ${{ runner.os }}-gradle-caches-${{ hashFiles('gradle/wrapper/gradle-wrapper.properties') }} + restore-keys: | + ${{ runner.os }}-gradle-caches- - - name: Make Gradlew Executable - run: cd android && chmod +x ./gradlew + - name: Make Gradlew Executable + run: cd android && chmod +x ./gradlew - - name: Build Android Release - run: | - cd android && ./gradlew assembleRelease --no-daemon + - name: Build Android Release + run: | + cd android && ./gradlew assembleRelease --no-daemon diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 307786db..9e907c0d 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -5,8 +5,8 @@ jobs: name: ESLint runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - name: Install modules - run: npm i - - name: Run ESLint - run: npm run lint + - uses: actions/checkout@v2 + - name: Install modules + run: npm i + - name: Run ESLint + run: npm run lint diff --git a/CODE_OF_CONDUCT.md b/CODE_OF_CONDUCT.md index 2fbacbf5..81b6392d 100644 --- a/CODE_OF_CONDUCT.md +++ b/CODE_OF_CONDUCT.md @@ -17,23 +17,23 @@ diverse, inclusive, and healthy community. Examples of behavior that contributes to a positive environment for our community include: -* Demonstrating empathy and kindness toward other people -* Being respectful of differing opinions, viewpoints, and experiences -* Giving and gracefully accepting constructive feedback -* Accepting responsibility and apologizing to those affected by our mistakes, +- Demonstrating empathy and kindness toward other people +- Being respectful of differing opinions, viewpoints, and experiences +- Giving and gracefully accepting constructive feedback +- Accepting responsibility and apologizing to those affected by our mistakes, and learning from the experience -* Focusing on what is best not just for us as individuals, but for the +- Focusing on what is best not just for us as individuals, but for the overall community Examples of unacceptable behavior include: -* The use of sexualized language or imagery, and sexual attention or +- The use of sexualized language or imagery, and sexual attention or advances of any kind -* Trolling, insulting or derogatory comments, and personal or political attacks -* Public or private harassment -* Publishing others' private information, such as a physical or email +- Trolling, insulting or derogatory comments, and personal or political attacks +- Public or private harassment +- Publishing others' private information, such as a physical or email address, without their explicit permission -* Other conduct which could reasonably be considered inappropriate in a +- Other conduct which could reasonably be considered inappropriate in a professional setting ## Enforcement Responsibilities @@ -106,7 +106,7 @@ Violating these terms may lead to a permanent ban. ### 4. Permanent Ban **Community Impact**: Demonstrating a pattern of violation of community -standards, including sustained inappropriate behavior, harassment of an +standards, including sustained inappropriate behavior, harassment of an individual, or aggression toward or disparagement of classes of individuals. **Consequence**: A permanent ban from any sort of public interaction within diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 8229d280..21fb5806 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -2,7 +2,6 @@ Contributions are welcome and are greatly appreciated! - ## Setting up your environment After forking to your own github org or account, do the following steps to get started: diff --git a/README.md b/README.md index ab1db9db..dfef025c 100644 --- a/README.md +++ b/README.md @@ -30,12 +30,15 @@

## Download + Get the app from our [releases page](https://github.com/rajarsheechatterjee/LNReader/releases). ## Sources + LNReader does not have any affiliation with the content providers available. Source requests should be created at [LNReader/lnreader-sources](https://github.com/LNReader/lnreader-sources). ## License + [MIT ](https://github.com/rajarsheechatterjee/lnreader/blob/main/LICENSE) diff --git a/package.json b/package.json index 165aea88..c9cbbbff 100644 --- a/package.json +++ b/package.json @@ -7,7 +7,7 @@ "ios": "react-native run-ios", "start": "react-native start", "lint": "eslint . --ext .js,.jsx,.ts,.tsx", - "prettier": "prettier --config .prettierrc 'src/**/*.ts' --write" + "prettier": "prettier --write \"./src/**/*.{ts,tsx,css}\"" }, "dependencies": { "@react-native-async-storage/async-storage": "^1.15.11",