Skip to content

Commit 69fc7d1

Browse files
author
Krzysztof Borowy
authored
chore: Move files around, new lint rules (#1007)
* ts and eslint * clang format * contributing * bump prettier, rm config * lint result * test both repos * disable eslint quotes
1 parent 9f694f0 commit 69fc7d1

32 files changed

+130
-132
lines changed
File renamed without changes.
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"extends": ["@react-native-community"],
33
"rules": {
4-
"no-console": "error"
4+
"no-console": "error",
5+
"quotes": "off"
56
}
67
}

tsconfig.base.json renamed to .config/tsconfig.base.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
{
2-
"exclude": ["node_modules"],
2+
"exclude": [
3+
"../node_modules"
4+
],
35
"compilerOptions": {
46
"noFallthroughCasesInSwitch": true,
57
"noImplicitOverride": true,
File renamed without changes.

.github/workflows/ci.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ jobs:
1111
strategy:
1212
matrix:
1313
test-name: [lint, ts]
14+
workspace: [default-storage-backend, core]
1415
steps:
1516
- name: Checkout
1617
uses: actions/checkout@v3
@@ -23,7 +24,7 @@ jobs:
2324
run: yarn
2425
- name: Run test ${{ matrix.test-name }}
2526
run: yarn test:${{ matrix.test-name }}
26-
working-directory: packages/default-storage-backend
27+
working-directory: packages/${{ matrix.workspace }}
2728
android:
2829
name: Android
2930
runs-on: ubuntu-22.04

.prettierrc

Lines changed: 0 additions & 7 deletions
This file was deleted.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ Head over to [documentation](https://react-native-async-storage.github.io/async-
4242
## Contribution
4343
Pull requests are welcome. Please open an issue first to discuss what you would like to change.
4444

45-
See the [CONTRIBUTING](CONTRIBUTING.md) file for more information.
45+
See the [CONTRIBUTING](.github/CONTRIBUTING.md) file for more information.
4646

4747
## License
4848

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"devDependencies": {
99
"@react-native-community/eslint-config": "3.2.0",
1010
"eslint": "8.26.0",
11-
"prettier": "2.5.1",
11+
"prettier": "2.8.8",
1212
"typescript": "4.9.5"
1313
},
1414
"resolutions": {

packages/core/.eslintrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
"extends": "../../.eslintrc"
2+
"extends": "../../.config/.eslintrc"
33
}

packages/core/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
2-
"extends": "../../tsconfig.base.json",
2+
"extends": "../../.config/tsconfig.base.json",
33
"include": ["./src/**/*"]
44
}

0 commit comments

Comments
 (0)