Skip to content

Commit d4ad8d5

Browse files
committed
chore: basic setup
chore: tweaks config chore: ignore build chore: tweak deps
1 parent 7905bb5 commit d4ad8d5

File tree

4 files changed

+255
-16
lines changed

4 files changed

+255
-16
lines changed

.eslintrc

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
{
22
"extends": "@callstack",
33
"rules": {
4-
"react-native/no-raw-text": 0,
54
"no-console": 1,
6-
"react/no-multi-comp": 0,
75
// Ignore certain webpack alias because it can't be resolved
86
"import/no-unresolved": [2, { "ignore": ["^@theme", "^@docusaurus", "^@generated"] }],
7+
"react/no-multi-comp": 0,
98
"react-native/no-color-literals": "off",
109
"react-native/no-inline-styles": "off",
10+
"react-native/no-raw-text": 0,
1111
"react-native-a11y/has-valid-accessibility-descriptors": "off",
1212
"react-native-a11y/has-valid-accessibility-ignores-invert-colors": 0,
1313
"react-native-a11y/has-valid-accessibility-value": "off"

babel.config.js

+10-4
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,23 @@
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
],
20+
plugins: ['@babel/plugin-transform-strict-mode'],
1521
env: {
1622
test: {
1723
presets: ['@react-native/babel-preset'],

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666
"devDependencies": {
6767
"@babel/cli": "^7.25.9",
6868
"@babel/core": "^7.25.9",
69-
"@babel/plugin-transform-flow-strip-types": "^7.25.9",
69+
"@babel/plugin-transform-strict-mode": "^7.24.7",
7070
"@babel/preset-env": "^7.25.9",
7171
"@babel/preset-flow": "^7.25.9",
7272
"@babel/preset-react": "^7.25.9",
@@ -78,9 +78,9 @@
7878
"@types/react": "^18.3.12",
7979
"@types/react-test-renderer": "^18.3.0",
8080
"babel-jest": "^29.7.0",
81+
"babel-plugin-module-resolver": "^5.0.2",
8182
"del-cli": "^6.0.0",
8283
"eslint": "^8.57.1",
83-
"eslint-plugin-flowtype": "^8.0.3",
8484
"eslint-plugin-prettier": "^4.2.1",
8585
"flow-bin": "~0.170.0",
8686
"jest": "^29.7.0",

0 commit comments

Comments
 (0)