chore: improve example configuration (#2472)

# Summary

* merge examples eslint/prettier configuration
* merge and update example tsconfig

---------

Co-authored-by: Jakub Grzywacz <jakub.grzywacz@swmansion.com>
This commit is contained in:
Bohdan Artiukhov
2024-10-04 13:15:47 +02:00
committed by GitHub
parent 2b56bb4d03
commit 74c3bf9e6e
7 changed files with 16 additions and 22 deletions

View File

@@ -1,7 +0,0 @@
{
"compilerOptions": {
"moduleSuffixes": [".macos", ""]
},
"extends": "../../tsconfig.json",
"include": ["**/*.ts", "**/*.tsx", "**/*.js"]
}

View File

@@ -1,4 +0,0 @@
module.exports = {
root: true,
extends: '@react-native',
};

View File

@@ -1,7 +0,0 @@
module.exports = {
arrowParens: 'avoid',
bracketSameLine: true,
bracketSpacing: false,
singleQuote: true,
trailingComma: 'all',
};

View File

@@ -1,4 +0,0 @@
{
"extends": "../../tsconfig.json",
"include": ["**/*.ts", "**/*.tsx", "**/*.js"]
}

16
apps/tsconfig.json Normal file
View File

@@ -0,0 +1,16 @@
{
"extends": "../tsconfig.json",
"compilerOptions": {
"moduleSuffixes": [".macos", ""],
"baseUrl": ".",
"paths": {
"react-native-svg": ["../src"],
"react-native-svg/css": ["../src/css/index.tsx"],
"react-native-svg/filter-image": ["../src/filter-image/index.tsx"],
"react-native-reanimated": [
"../example/node_modules/react-native-reanimated"
]
}
},
"include": ["**/*.ts", "**/*.tsx", "**/*.js"]
}