Skip to content

Commit c706705

Browse files
committed
chore: basic setup
chore: tweaks config chore: ignore build
1 parent 345be3f commit c706705

File tree

4 files changed

+489
-944
lines changed

4 files changed

+489
-944
lines changed

.eslintrc

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
11
{
22
"extends": "@callstack",
33
"rules": {
4-
"flowtype/no-weak-types": 0,
5-
"react-native/no-raw-text": 0,
64
"no-console": 1,
7-
"react/no-multi-comp": 0,
85
// Ignore certain webpack alias because it can't be resolved
96
"import/no-unresolved": [2, { "ignore": ["^@theme", "^@docusaurus", "^@generated"] }],
7+
"react/no-multi-comp": 0,
108
"react-native/no-color-literals": "off",
119
"react-native/no-inline-styles": "off",
10+
"react-native/no-raw-text": 0,
1211
"react-native-a11y/has-valid-accessibility-descriptors": "off",
1312
"react-native-a11y/has-valid-accessibility-ignores-invert-colors": 0,
1413
"react-native-a11y/has-valid-accessibility-value": "off"

babel.config.js

+10-10
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
11
module.exports = {
22
presets: [
3-
'@babel/preset-typescript',
4-
'@babel/preset-react',
53
[
64
'@babel/preset-env',
75
{
86
targets: {
9-
node: '14',
7+
node: '18',
108
},
11-
bugfixes: true,
9+
useBuiltIns: false,
10+
modules: 'commonjs',
1211
},
1312
],
13+
[
14+
'@babel/preset-react',
15+
// { runtime: 'automatic' },
16+
],
17+
'@babel/preset-typescript',
18+
'@babel/preset-flow',
1419
],
15-
env: {
16-
test: {
17-
// https://github.com/react-native-community/upgrade-support/issues/152
18-
plugins: ['@babel/plugin-transform-flow-strip-types'],
19-
},
20-
},
20+
plugins: ['@babel/plugin-transform-strict-mode'],
2121
};

package.json

+5-10
Original file line numberDiff line numberDiff line change
@@ -63,26 +63,21 @@
6363
}
6464
},
6565
"devDependencies": {
66-
"@babel/cli": "^7.24.8",
67-
"@babel/core": "^7.25.2",
68-
"@babel/plugin-transform-flow-strip-types": "^7.25.2",
69-
"@babel/preset-env": "^7.25.3",
70-
"@babel/preset-flow": "^7.24.7",
71-
"@babel/preset-react": "^7.24.7",
72-
"@babel/preset-typescript": "^7.24.7",
66+
"@babel/cli": "^7.20.0",
67+
"@babel/core": "^7.20.0",
7368
"@callstack/eslint-config": "^15.0.0",
69+
"@react-native/babel-preset": "0.75.2",
7470
"@release-it/conventional-changelog": "^8.0.1",
7571
"@relmify/jest-serializer-strip-ansi": "^1.0.2",
7672
"@types/jest": "^29.5.12",
7773
"@types/react": "^18.3.3",
7874
"@types/react-test-renderer": "^18.3.0",
79-
"babel-jest": "^29.7.0",
75+
"babel-jest": "^29.6.3",
8076
"del-cli": "^5.1.0",
8177
"eslint": "^8.57.0",
82-
"eslint-plugin-flowtype": "^8.0.3",
8378
"eslint-plugin-prettier": "^4.2.1",
8479
"flow-bin": "~0.170.0",
85-
"jest": "^29.7.0",
80+
"jest": "^29.6.3",
8681
"prettier": "^2.8.8",
8782
"react": "18.3.1",
8883
"react-native": "0.75.1",

0 commit comments

Comments
 (0)