-
Notifications
You must be signed in to change notification settings - Fork 32
Fix dependabot alerts #189
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
667d53e
updated react-native version to 0.76 and its dependencies
Werror 18e214e
fix: update TypeScript config and fix ESLint errors
Werror 8518753
fix: address security vulnerabilities and update dependencies
Werror 36a323e
fix: update iOS Podfile for React Native 0.76 compatibility
Werror b4d54ea
fix: update node version to 23.11.0
Werror f8433ca
fix: jest test error
Werror 86dcb39
fix: resolved comment for async function handling
Werror fb2d610
fix: dependabot alert for rexml
Werror File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains hidden or 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,2 @@ | ||
|
||
npx --no -- commitlint --edit ${1} |
This file contains hidden or 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,2 @@ | ||
|
||
yarn markbuild |
This file contains hidden or 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,2 @@ | ||
|
||
yarn lint && yarn typescript |
This file contains hidden or 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 |
---|---|---|
@@ -1 +1 @@ | ||
18.19.0 | ||
23.11.0 |
This file contains hidden or 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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
source 'https://rubygems.org' | ||
# You may use http://rbenv.org/ or https://rvm.io/ to install and use this version | ||
ruby '2.7.5' | ||
ruby '3.4.4' | ||
gem 'cocoapods', '~> 1.11', '>= 1.11.2' |
This file contains hidden or 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 hidden or 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 |
---|---|---|
@@ -1,3 +1,4 @@ | ||
module.exports = { | ||
presets: ['module:metro-react-native-babel-preset'], | ||
presets: ['@react-native/babel-preset'], | ||
plugins: ['@babel/plugin-transform-flow-strip-types'], | ||
}; |
This file contains hidden or 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,122 @@ | ||
// eslint.config.js | ||
const js = require('@eslint/js'); | ||
const reactPlugin = require('eslint-plugin-react'); | ||
const prettierPlugin = require('eslint-plugin-prettier'); | ||
const detoxPlugin = require('eslint-plugin-detox'); | ||
const jestPlugin = require('eslint-plugin-jest'); | ||
const tseslint = require('@typescript-eslint/eslint-plugin'); | ||
const tsParser = require('@typescript-eslint/parser'); | ||
|
||
module.exports = [ | ||
// Use ESLint's recommended rules as a base | ||
js.configs.recommended, | ||
|
||
// React plugin configuration | ||
{ | ||
plugins: { | ||
react: reactPlugin, | ||
}, | ||
rules: { | ||
...reactPlugin.configs.recommended.rules, | ||
}, | ||
settings: { | ||
react: { | ||
version: 'detect', | ||
}, | ||
}, | ||
}, | ||
|
||
// Prettier plugin configuration | ||
{ | ||
plugins: { | ||
prettier: prettierPlugin, | ||
}, | ||
rules: { | ||
'prettier/prettier': [ | ||
'error', | ||
{ | ||
quoteProps: 'consistent', | ||
singleQuote: true, | ||
tabWidth: 2, | ||
trailingComma: 'es5', | ||
useTabs: false, | ||
}, | ||
], | ||
}, | ||
}, | ||
|
||
// Detox and Jest plugin configuration | ||
{ | ||
plugins: { | ||
detox: detoxPlugin, | ||
jest: jestPlugin, | ||
}, | ||
languageOptions: { | ||
globals: { | ||
...jestPlugin.configs.recommended.globals, | ||
module: true, | ||
require: true, | ||
console: true, | ||
__dirname: true, | ||
by: true, | ||
describe: true, | ||
it: true, | ||
beforeAll: true, | ||
afterAll: true, | ||
}, | ||
}, | ||
}, | ||
|
||
// Custom rules | ||
{ | ||
plugins: { | ||
'@typescript-eslint': tseslint, | ||
}, | ||
rules: { | ||
'import/no-unresolved': 'off', | ||
'import/no-extraneous-dependencies': 'off', | ||
'no-undef': 'off', // Turn off no-undef as TypeScript handles this | ||
'@typescript-eslint/no-explicit-any': 'off', // Allow any type | ||
'@typescript-eslint/no-unused-vars': 'off', // Turn off unused vars completely | ||
'@typescript-eslint/no-unused-expressions': 'off', // Allow unused expressions | ||
'react/display-name': 'off', // Allow components without display names | ||
}, | ||
}, | ||
|
||
// Files to ignore (replacing .eslintignore) | ||
{ | ||
ignores: ['node_modules/**', 'lib/**', 'example/dist/**'], | ||
}, | ||
|
||
// Apply to all JavaScript files | ||
{ | ||
files: ['**/*.js'], | ||
languageOptions: { | ||
ecmaVersion: 'latest', | ||
sourceType: 'module', | ||
}, | ||
}, | ||
|
||
// TypeScript files specific configuration | ||
{ | ||
files: ['**/*.{ts,tsx}'], | ||
plugins: { | ||
'@typescript-eslint': tseslint, | ||
}, | ||
languageOptions: { | ||
parser: tsParser, | ||
parserOptions: { | ||
ecmaVersion: 'latest', | ||
sourceType: 'module', | ||
project: './tsconfig.json', | ||
}, | ||
}, | ||
rules: { | ||
// Override TypeScript ESLint recommended rules | ||
...tseslint.configs.recommended.rules, | ||
'@typescript-eslint/no-explicit-any': 'off', | ||
'@typescript-eslint/no-unused-vars': 'off', | ||
'@typescript-eslint/no-unused-expressions': 'off', | ||
}, | ||
}, | ||
]; |
This file contains hidden or 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
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.