-
Notifications
You must be signed in to change notification settings - Fork 466
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* scaffold * unify storage setup * remove root from root tsconfig * comments
- Loading branch information
Krzysztof Borowy
authored
Aug 31, 2023
1 parent
0fc2f28
commit 9f694f0
Showing
14 changed files
with
235 additions
and
102 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"extends": ["@react-native-community"], | ||
"rules": { | ||
"no-console": "error" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,3 +28,6 @@ DerivedData | |
*.xcuserstate | ||
local.properties | ||
*.iml | ||
|
||
#workspaces | ||
/packages/*/lib |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"tabWidth": 2, | ||
"semi": true, | ||
"singleQuote": true, | ||
"bracketSpacing": true, | ||
"parser": "typescript" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,6 +5,12 @@ | |
"packages/*" | ||
], | ||
"packageManager": "[email protected]", | ||
"devDependencies": { | ||
"@react-native-community/eslint-config": "3.2.0", | ||
"eslint": "8.26.0", | ||
"prettier": "2.5.1", | ||
"typescript": "4.9.5" | ||
}, | ||
"resolutions": { | ||
"@react-native-community/cli": "^10.2.5", | ||
"@react-native-community/cli-platform-android": "^10.2.0", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"extends": "../../.eslintrc" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
{ | ||
"name": "@react-native-async-storage/core", | ||
"version": "0.0.0", | ||
"description": "Core API of Async Storage", | ||
"source": "src/index.ts", | ||
"react-native": "src/index.ts", | ||
"types": "lib/typescript/index.d.ts", | ||
"exports": { | ||
"import": "./lib/module/index.js", | ||
"require": "./lib/commonjs/index.js" | ||
}, | ||
"files": [ | ||
"src", | ||
"lib" | ||
], | ||
"scripts": { | ||
"prepack": "yarn build", | ||
"build": "bob build", | ||
"test:lint": "eslint src/**", | ||
"test:ts": "tsc --noEmit" | ||
}, | ||
"keywords": [ | ||
"react-native", | ||
"async-storage", | ||
"storage", | ||
"api", | ||
"core api" | ||
], | ||
"repository": "https://github.com/react-native-async-storage/async-storage/blob/main/packages/core", | ||
"author": "Krzysztof Borowy <[email protected]>", | ||
"license": "MIT", | ||
"devDependencies": { | ||
"eslint": "8.26.0", | ||
"react-native-builder-bob": "0.20.0", | ||
"typescript": "4.9.5" | ||
}, | ||
"react-native-builder-bob": { | ||
"source": "src", | ||
"output": "lib", | ||
"targets": [ | ||
"commonjs", | ||
"module", | ||
"typescript" | ||
] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
function double(i: number) { | ||
return i * i; | ||
} | ||
|
||
double(6); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"extends": "../../tsconfig.base.json", | ||
"include": ["./src/**/*"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"extends": [ | ||
"../../.eslintrc", | ||
"plugin:wdio/recommended" | ||
], | ||
"plugins": ["wdio"], | ||
"rules": { | ||
"dot-notation": "off" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
{ | ||
"exclude": ["node_modules"], | ||
"compilerOptions": { | ||
"noFallthroughCasesInSwitch": true, | ||
"noImplicitOverride": true, | ||
"noImplicitReturns": true, | ||
"noPropertyAccessFromIndexSignature": true, | ||
"noUnusedLocals": true, | ||
"noUnusedParameters": true, | ||
"strict": true, | ||
"moduleResolution": "node", | ||
"resolveJsonModule": true, | ||
"allowJs": true, | ||
"checkJs": true, | ||
"allowSyntheticDefaultImports": true, | ||
"forceConsistentCasingInFileNames": true, | ||
"jsx": "react", | ||
"target": "ESNext", | ||
"skipLibCheck": true | ||
} | ||
} |
Oops, something went wrong.