Skip to content

Commit

Permalink
chore: basic setup
Browse files Browse the repository at this point in the history
chore: tweaks config

chore: ignore build

chore: tweak deps
  • Loading branch information
mdjastrzebski committed Oct 31, 2024
1 parent 7905bb5 commit d4ad8d5
Show file tree
Hide file tree
Showing 4 changed files with 255 additions and 16 deletions.
4 changes: 2 additions & 2 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
{
"extends": "@callstack",
"rules": {
"react-native/no-raw-text": 0,
"no-console": 1,
"react/no-multi-comp": 0,
// Ignore certain webpack alias because it can't be resolved
"import/no-unresolved": [2, { "ignore": ["^@theme", "^@docusaurus", "^@generated"] }],
"react/no-multi-comp": 0,
"react-native/no-color-literals": "off",
"react-native/no-inline-styles": "off",
"react-native/no-raw-text": 0,
"react-native-a11y/has-valid-accessibility-descriptors": "off",
"react-native-a11y/has-valid-accessibility-ignores-invert-colors": 0,
"react-native-a11y/has-valid-accessibility-value": "off"
Expand Down
14 changes: 10 additions & 4 deletions babel.config.js
Original file line number Diff line number Diff line change
@@ -1,17 +1,23 @@
module.exports = {
presets: [
'@babel/preset-typescript',
'@babel/preset-react',
[
'@babel/preset-env',
{
targets: {
node: '14',
node: '18',
},
bugfixes: true,
useBuiltIns: false,
modules: 'commonjs',
},
],
[
'@babel/preset-react',
// { runtime: 'automatic' },
],
'@babel/preset-typescript',
'@babel/preset-flow',
],
plugins: ['@babel/plugin-transform-strict-mode'],
env: {
test: {
presets: ['@react-native/babel-preset'],
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
"devDependencies": {
"@babel/cli": "^7.25.9",
"@babel/core": "^7.25.9",
"@babel/plugin-transform-flow-strip-types": "^7.25.9",
"@babel/plugin-transform-strict-mode": "^7.24.7",
"@babel/preset-env": "^7.25.9",
"@babel/preset-flow": "^7.25.9",
"@babel/preset-react": "^7.25.9",
Expand All @@ -78,9 +78,9 @@
"@types/react": "^18.3.12",
"@types/react-test-renderer": "^18.3.0",
"babel-jest": "^29.7.0",
"babel-plugin-module-resolver": "^5.0.2",
"del-cli": "^6.0.0",
"eslint": "^8.57.1",
"eslint-plugin-flowtype": "^8.0.3",
"eslint-plugin-prettier": "^4.2.1",
"flow-bin": "~0.170.0",
"jest": "^29.7.0",
Expand Down
Loading

0 comments on commit d4ad8d5

Please sign in to comment.