Skip to content

Commit 315273b

Browse files
committed
chore: bump eslint and all other dev deps
1 parent c5393d6 commit 315273b

File tree

4 files changed

+379
-227
lines changed

4 files changed

+379
-227
lines changed

examples/SampleApp/.eslintrc.js

Lines changed: 0 additions & 8 deletions
This file was deleted.
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
import eslintPluginReact from 'eslint-plugin-react';
2+
import eslintPluginReactNative from 'eslint-plugin-react-native';
3+
import eslintPluginComments from 'eslint-plugin-eslint-comments';
4+
import eslintPluginReactHooks from 'eslint-plugin-react-hooks';
5+
import eslintPluginJest from 'eslint-plugin-jest';
6+
7+
import eslintReactNativeConfig from '@react-native/eslint-config';
8+
9+
import typescriptParser from '@typescript-eslint/parser';
10+
11+
const globals = Object.keys(eslintReactNativeConfig.globals).reduce((acc, key) => {
12+
if (eslintReactNativeConfig.globals[key]) {
13+
acc[key] = 'readonly';
14+
}
15+
return acc;
16+
}, {});
17+
18+
export default [
19+
{
20+
ignores: ['node_modules/', 'dist/', '**/*.config.js'],
21+
},
22+
{
23+
files: ['**/*.js', '**/*.cjs', '**/*.mjs', '**/*.jsx', '**/*.ts', '**/*.tsx'],
24+
languageOptions: {
25+
ecmaVersion: 'latest',
26+
sourceType: 'module',
27+
parser: typescriptParser,
28+
globals,
29+
},
30+
plugins: {
31+
react: eslintPluginReact,
32+
'react-native': eslintPluginReactNative,
33+
'eslint-comments': eslintPluginComments,
34+
'react-hooks': eslintPluginReactHooks,
35+
jest: eslintPluginJest,
36+
},
37+
rules: {
38+
...eslintReactNativeConfig.rules,
39+
'jsx-quotes': ['error', 'prefer-single'],
40+
'react-native/no-inline-styles': 'off',
41+
},
42+
},
43+
];

examples/SampleApp/package.json

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -54,22 +54,28 @@
5454
"@babel/core": "^7.25.2",
5555
"@babel/preset-env": "^7.25.3",
5656
"@babel/runtime": "^7.25.0",
57-
"@react-native-community/cli": "15.0.1",
58-
"@react-native-community/cli-platform-android": "15.0.1",
59-
"@react-native-community/cli-platform-ios": "15.0.1",
57+
"@react-native-community/cli": "15.1.3",
58+
"@react-native-community/cli-platform-android": "15.1.3",
59+
"@react-native-community/cli-platform-ios": "15.1.3",
6060
"@react-native/babel-preset": "0.77.1",
61-
"@react-native/eslint-config": "0.77.1",
61+
"@react-native/eslint-config": "^0.77.1",
6262
"@react-native/metro-config": "0.77.1",
6363
"@react-native/typescript-config": "0.77.1",
64-
"@rnx-kit/metro-config": "^1.3.14",
64+
"@rnx-kit/metro-config": "^2.0.1",
65+
"@types/jest": "^29.5.13",
6566
"@types/react": "^18.2.6",
6667
"@types/react-test-renderer": "^18.0.0",
67-
"@types/jest": "^29.5.13",
68-
"eslint": "^8.19.0",
68+
"@typescript-eslint/parser": "^8.24.1",
69+
"eslint": "^9.20.1",
70+
"eslint-plugin-eslint-comments": "^3.2.0",
71+
"eslint-plugin-jest": "^28.11.0",
72+
"eslint-plugin-react": "^7.37.4",
73+
"eslint-plugin-react-hooks": "^5.1.0",
74+
"eslint-plugin-react-native": "^5.0.0",
6975
"jest": "^29.7.0",
70-
"prettier": "^2.8.8",
76+
"prettier": "^3.5.1",
7177
"react-test-renderer": "18.3.1",
72-
"typescript": "5.0.4"
78+
"typescript": "5.7.3"
7379
},
7480
"engines": {
7581
"node": ">=18"

0 commit comments

Comments
 (0)