Skip to content

Commit

Permalink
TypeScript config
Browse files Browse the repository at this point in the history
  • Loading branch information
alexZajac committed Oct 15, 2019
1 parent 00899de commit b5b00fa
Show file tree
Hide file tree
Showing 20 changed files with 8,804 additions and 3,141 deletions.
3 changes: 0 additions & 3 deletions .babelrc

This file was deleted.

4 changes: 3 additions & 1 deletion .gitignore
Expand Up @@ -6,4 +6,6 @@ tmp
build
dist
# Dependency directory
node_modules
node_modules
/lib
.jest
5 changes: 5 additions & 0 deletions .prettierrc
@@ -0,0 +1,5 @@
{
"printWidth": 120,
"trailingComma": "all",
"singleQuote": true
}
3 changes: 3 additions & 0 deletions babel.config.json
@@ -0,0 +1,3 @@
{
"presets": ["module: metro-react-native-babel-preset"]
}
18 changes: 18 additions & 0 deletions jest.config.json
@@ -0,0 +1,18 @@
{
"preset": "react-native",
"transform": {
"^.+\\.js$": "<rootDir>/node_modules/react-native/jest/preprocessor.js",
"\\.(ts|tsx)$": "ts-jest"
},
"snapshotSerializers": ["enzyme-to-json/serializer"],
"globals": {
"ts-jest": {
"tsConfig": "tsconfig.jest.json"
}
},
"setupFiles": ["./src/setupTests.js"],
"setupFilesAfterEnv": ["<rootDir>setup-test-env.js"],
"moduleFileExtensions": ["ts", "tsx", "js"],
"testRegex": "(/__tests__/.*|\\.(test|spec))\\.(ts|tsx|js)$",
"coveragePathIgnorePatterns": ["/node_modules/", "/src/setupTests.js", "package.json", "package-lock.json"]
}
Empty file removed jestconfig.json
Empty file.

0 comments on commit b5b00fa

Please sign in to comment.