Skip to content

Commit f17527b

Browse files
committed
fix linting
1 parent 3c851f5 commit f17527b

File tree

4 files changed

+61
-4
lines changed

4 files changed

+61
-4
lines changed

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,8 @@
4141
"eslint-plugin-jest": "23.3.0",
4242
"eslint-plugin-prettier": "3.1.2",
4343
"eslint-plugin-promise": "4.2.1",
44-
"prettier": "1.19.1"
44+
"prettier": "1.19.1",
45+
"to-fast-properties": "^4.0.0"
4546
},
4647
"workspaces": {
4748
"packages": [
@@ -59,4 +60,4 @@
5960
"engines": {
6061
"node": ">=18.0.0"
6162
}
62-
}
63+
}
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
module.exports = {
2+
root: true,
3+
env: {
4+
es6: true,
5+
node: true,
6+
jest: true, // Add Jest globals for test files
7+
},
8+
extends: ['eslint:recommended'],
9+
parserOptions: {
10+
ecmaVersion: 2018,
11+
sourceType: 'module',
12+
},
13+
globals: {
14+
fetch: 'readonly', // Add fetch as a global
15+
},
16+
ignorePatterns: [
17+
'plugin/build/',
18+
'node_modules/',
19+
'android/',
20+
'ios/',
21+
],
22+
rules: {
23+
// Add only basic rules to avoid dependency conflicts
24+
'no-unused-vars': 'warn',
25+
'no-console': 'off',
26+
},
27+
};

packages/react-native-app-auth/package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,11 +46,12 @@
4646
"devDependencies": {
4747
"@expo/config-plugins": "~10.1.2",
4848
"@react-native/babel-preset": "0.79.2",
49+
"@react-native/eslint-config": "^0.81.0",
50+
"@types/node": "^22.0.0",
4951
"expo-module-scripts": "^4.1.10",
5052
"jest": "^29.6.3",
5153
"react": "19.0.0",
52-
"react-native": "0.79.2",
53-
"@types/node": "^22.0.0"
54+
"react-native": "0.79.2"
5455
},
5556
"dependencies": {
5657
"invariant": "2.2.4",

yarn.lock

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2623,11 +2623,34 @@
26232623
eslint-plugin-react-hooks "^4.6.0"
26242624
eslint-plugin-react-native "^4.0.0"
26252625

2626+
"@react-native/eslint-config@^0.81.0":
2627+
version "0.81.0"
2628+
resolved "https://registry.yarnpkg.com/@react-native/eslint-config/-/eslint-config-0.81.0.tgz#fd8f2961c7fd5593d738778b48800374dbde2326"
2629+
integrity sha512-sVAlL0m0wQw6Ae3YFB/tjgjkUS0kt9+QrS79TYRL2yrqXtVbB7TSLpBfCN0R+OBsyfpiIEXAxqLRGYFmuqnIFg==
2630+
dependencies:
2631+
"@babel/core" "^7.25.2"
2632+
"@babel/eslint-parser" "^7.25.1"
2633+
"@react-native/eslint-plugin" "0.81.0"
2634+
"@typescript-eslint/eslint-plugin" "^7.1.1"
2635+
"@typescript-eslint/parser" "^7.1.1"
2636+
eslint-config-prettier "^8.5.0"
2637+
eslint-plugin-eslint-comments "^3.2.0"
2638+
eslint-plugin-ft-flow "^2.0.1"
2639+
eslint-plugin-jest "^27.9.0"
2640+
eslint-plugin-react "^7.30.1"
2641+
eslint-plugin-react-hooks "^5.2.0"
2642+
eslint-plugin-react-native "^4.0.0"
2643+
26262644
"@react-native/[email protected]":
26272645
version "0.79.2"
26282646
resolved "https://registry.npmjs.org/@react-native/eslint-plugin/-/eslint-plugin-0.79.2.tgz"
26292647
integrity sha512-Abu+0OuwTje9E5eQOvYpTUuXvDgGjHeFhnfNVY9BXalBK8OrX20EFlonWvIbFqii136eS5KLEBm2Wjqk2V5XJg==
26302648

2649+
"@react-native/[email protected]":
2650+
version "0.81.0"
2651+
resolved "https://registry.yarnpkg.com/@react-native/eslint-plugin/-/eslint-plugin-0.81.0.tgz#5a236c92394f44f4cbfe400d7b87a7e25599dd54"
2652+
integrity sha512-kNSraBk1BuW21raXRJp8+BlTJwnpU96kRNQ9YNxfcY78k9zOH2YXiYsK0SfrDrdcl5kspiXRSj3Rueh6jvDRHw==
2653+
26312654
"@react-native/[email protected]":
26322655
version "0.79.2"
26332656
resolved "https://registry.npmjs.org/@react-native/gradle-plugin/-/gradle-plugin-0.79.2.tgz"
@@ -10149,6 +10172,11 @@ [email protected]:
1014910172
resolved "https://registry.npmjs.org/tmpl/-/tmpl-1.0.5.tgz"
1015010173
integrity sha512-3f0uOEAQwIqGuWW2MVzYg8fV/QNnc/IpuJNG837rLuczAaLVHslWHZQj4IGiEl5Hs3kkbhwL9Ab7Hrsmuj+Smw==
1015110174

10175+
to-fast-properties@^4.0.0:
10176+
version "4.0.0"
10177+
resolved "https://registry.yarnpkg.com/to-fast-properties/-/to-fast-properties-4.0.0.tgz#43dc36ce460f10070d35f48228253c370e5c161b"
10178+
integrity sha512-y4PM/CFhbderIl3OTBsHbdrh+pTCiv4pNlrPNlEUQCRxZc1o41fJDG7YNDunH2LVERQ4pR0n3G/yIKjxv8fgJw==
10179+
1015210180
to-regex-range@^5.0.1:
1015310181
version "5.0.1"
1015410182
resolved "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz"

0 commit comments

Comments
 (0)