Skip to content

Commit

Permalink
feat: Use TypeScript in the codebase and expose TypeScript type-defin…
Browse files Browse the repository at this point in the history
…itions (#101)

Thanks to @nikteg the `react-native` dialog codebase is now using TypeScript and it's shipping the type-definitions by default!

BREAKING CHANGE: Previous type definitions used in your app may not be compatible with this release anymore.
  • Loading branch information
nikteg authored Apr 17, 2021
1 parent e3248da commit 77d41f6
Show file tree
Hide file tree
Showing 21 changed files with 47,216 additions and 20,773 deletions.
30 changes: 29 additions & 1 deletion .eslintrc
Original file line number Diff line number Diff line change
@@ -1,3 +1,31 @@
{
"extends": ["plugin:react-app/recommended", "plugin:prettier/recommended"]
"root": true,
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 2017,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true
}
},
"plugins": [
"@typescript-eslint",
"react-native"
],
"extends": [
"plugin:react/recommended",
"prettier/@typescript-eslint",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"plugin:prettier/recommended"
],
"settings": {
"react": {
"version": "detect"
}
},
"rules": {
"@typescript-eslint/explicit-module-boundary-types": 0,
"@typescript-eslint/no-explicit-any": 0
}
}
3 changes: 3 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ jobs:
- name: Install dependencies
run: npm ci

- name: Build
run: npm run build

- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down
7 changes: 5 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Lint & Test
name: Build & Test

on:
push:
Expand All @@ -11,7 +11,7 @@ on:
jobs:
test:
runs-on: ubuntu-latest
name: Test & Lint
name: Build & Lint
steps:
- name: Checkout
uses: actions/checkout@v2
Expand All @@ -32,5 +32,8 @@ jobs:
- name: Install dependencies
run: npm ci

- name: Run build
run: npm run build

- name: Run lint
run: npm run lint
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,5 @@ jsconfig.json
dump.rdb
.vscode
.idea

/lib
Loading

0 comments on commit 77d41f6

Please sign in to comment.