Skip to content

Commit

Permalink
feature/CU-86bz2cbm9 - Upgrade to Expo SDK 51 (#287)
Browse files Browse the repository at this point in the history
fuck it we ball, * *merges own pull request* *

* this shouldn't be this hard, idk why but the app crashes now, i'll fix it

* update workflow action versions

* THIS SHOULDN'T HAVE BEEN THIS HARD SRSLY

* forgot about unused-imports ^^
  • Loading branch information
toto04 authored Jun 14, 2024
1 parent 6f3435f commit 2727ebc
Show file tree
Hide file tree
Showing 83 changed files with 3,262 additions and 2,515 deletions.
4 changes: 0 additions & 4 deletions .eslintignore

This file was deleted.

103 changes: 0 additions & 103 deletions .eslintrc.cjs

This file was deleted.

2 changes: 1 addition & 1 deletion .github/workflows/check_file_length.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
run: |
sudo apt-get install bash curl git python3 python3-pip
- name: Pull repository
uses: actions/checkout@v2
uses: actions/checkout@v4
- name: Get check_file_length
run: curl -Lo check_file_length.py https://raw.githubusercontent.com/PoliNetworkOrg/CheckFilesLength/master/main.py
- name: Run check_file_length
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/prune-branches.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ jobs:
name: Prune EAS branches
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0 # fetch all branches to get the remote ones
- uses: actions/setup-node@v3
- uses: actions/setup-node@v4
with:
node-version: 16
node-version: 20

- name: Log remote branches
run: git branch -r
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@ jobs:
env:
EXPO_TOKEN: ${{ secrets.EXPO_TOKEN }}
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
if: ${{ env.EXPO_TOKEN != '' }}
- uses: actions/setup-node@v2
- uses: actions/setup-node@v4
if: ${{ env.EXPO_TOKEN != '' }}
with:
node-version: 16
node-version: 20
cache: "yarn"

- name: Setup Expo
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ jobs:
name: Run linters and tsc
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 16
node-version: 20
cache: "yarn"
- run: yarn install --frozen-lockfile --ignore-scripts
- run: yarn install --immutable
- run: yarn run lint
- run: yarn run type-check
10 changes: 5 additions & 5 deletions app.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@
},
"googleServicesFile": "./config/google-services.json",
"package": "org.polinetwork.polifemo",
"softwareKeyboardLayoutMode": "pan",
"useNextNotificationsApi": true
"softwareKeyboardLayoutMode": "pan"
// "useNextNotificationsApi": true
},
"extra": {
"eas": {
Expand All @@ -52,8 +52,8 @@
}
}
],
"expo-localization"
"expo-localization",
"expo-asset"
]
},
"name": "polifemo"
}
}
109 changes: 109 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,109 @@
import eslint from "@eslint/js"
import tseslint from "typescript-eslint"
import unusedImports from "eslint-plugin-unused-imports"

import eslintPluginPrettierRecommended from "eslint-plugin-prettier/recommended"
import reactRecommended from "eslint-plugin-react/configs/recommended.js"
import reactJSXRuntime from "eslint-plugin-react/configs/jsx-runtime.js"

export default tseslint.config(
eslint.configs.recommended,
eslintPluginPrettierRecommended,
reactRecommended,
reactJSXRuntime,
...tseslint.configs.recommended,
{
plugins: { "unused-imports": unusedImports },
ignores: [
"eslint.config.mjs",
"babel.config.js",
"metro.config.js",
"scripts/*",
],
settings: {
react: {
version: "detect",
},
},
languageOptions: {
parserOptions: {
project: "./tsconfig.json",
ecmaFeatures: {
jsx: true,
},
ecmaVersion: "latest",
sourceType: "module",
},
},
rules: {
"prettier/prettier": "error",
"no-extra-parens": ["off"],
"linebreak-style": ["error", "unix"],
quotes: ["error", "double"],

"react/prop-types": ["off"],
"react/no-multi-comp": ["error"],
"react/self-closing-comp": ["error"],

"@typescript-eslint/no-unused-vars": "off",
"@typescript-eslint/unbound-method": "off",
"unused-imports/no-unused-imports": "warn",
"unused-imports/no-unused-vars": [
"warn",
{
vars: "all",
varsIgnorePattern: "^_",
args: "after-used",
argsIgnorePattern: "^_",
},
],

"@typescript-eslint/naming-convention": [
"error",
{
selector: "default",
format: ["camelCase"],
leadingUnderscore: "allow",
trailingUnderscore: "allow",
},
{
selector: "variable",
types: ["function"],
format: ["camelCase", "PascalCase"],
},
{
selector: "variable",
format: ["camelCase", "UPPER_CASE"],
leadingUnderscore: "allow",
trailingUnderscore: "allow",
},
{
selector: "memberLike",
format: ["camelCase", "UPPER_CASE"],
leadingUnderscore: "allow",
trailingUnderscore: "allow",
},
{
selector: "typeLike",
format: ["PascalCase"],
},
{
selector: "enumMember",
format: ["UPPER_CASE"],
},
{
selector: "import",
format: [],
},
],

"@typescript-eslint/restrict-plus-operands": "off",
"@typescript-eslint/no-misused-promises": [
"error",
{
checksVoidReturn: false,
},
],
},
},
)
Loading

0 comments on commit 2727ebc

Please sign in to comment.