-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feature/CU-86bz2cbm9 - Upgrade to Expo SDK 51 (#287)
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
Showing
83 changed files
with
3,262 additions
and
2,515 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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, | ||
}, | ||
], | ||
}, | ||
}, | ||
) |
Oops, something went wrong.