Skip to content

Commit

Permalink
Remove TypeScript dependencies: tsconfig.json file
Browse files Browse the repository at this point in the history
  • Loading branch information
yusufsahinhamza committed Jan 5, 2023
1 parent d147060 commit a41441a
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 8 deletions.
10 changes: 6 additions & 4 deletions docs/vue/quickstart.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,15 +48,17 @@ So, if you’d prefer to use JavaScript instead of TypeScript, you can. After ge
npm uninstall --save typescript @types/jest @typescript-eslint/eslint-plugin @typescript-eslint/parser @vue/cli-plugin-typescript @vue/eslint-config-typescript
```

2. Change all `.ts` files to `.js`. In a blank Ionic Vue app, this should only be `router/index.ts` and `main.ts`.
2. Change all `.ts` files to `.js`. In a blank Ionic Vue app, this should only be `src/router/index.ts` and `src/main.ts`.

3. Remove `@vue/typescript/recommended` and `@typescript-eslint/no-explicit-any: ‘off’, `from `.eslintrc.js`.

4. Remove `Array<RouteRecordRaw>` from `router/index.js`.
4. Remove `Array<RouteRecordRaw>` from `src/router/index.js`.

5. Delete the `shims-vue.d.ts` file.
5. Delete the `src/shims-vue.d.ts` file.

6. Remove `lang="ts"` from the `script` tags in any of your Vue components that have them. In a blank Ionic Vue app, this should only be `App.vue` and `views/Home.vue`.
6. Remove `lang="ts"` from the `script` tags in any of your Vue components that have them. In a blank Ionic Vue app, this should only be `src/App.vue` and `src/views/Home.vue`.

7. Delete the `tsconfig.json` file.

## A look at a Vue Component

Expand Down
10 changes: 6 additions & 4 deletions versioned_docs/version-v5/vue/quickstart.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,15 +41,17 @@ So, if you’d prefer to use JavaScript instead of TypeScript, you can. After ge
npm uninstall --save typescript @types/jest @typescript-eslint/eslint-plugin @typescript-eslint/parser @vue/cli-plugin-typescript @vue/eslint-config-typescript
```

2. Change all `.ts` files to `.js`. In a blank Ionic Vue app, this should only be `router/index.ts` and `main.ts`.
2. Change all `.ts` files to `.js`. In a blank Ionic Vue app, this should only be `src/router/index.ts` and `src/main.ts`.

3. Remove `@vue/typescript/recommended` and `@typescript-eslint/no-explicit-any: ‘off’, `from `.eslintrc.js`.

4. Remove `Array<RouteRecordRaw>` from `router/index.js`.
4. Remove `Array<RouteRecordRaw>` from `src/router/index.js`.

5. Delete the `shims-vue.d.ts` file.
5. Delete the `src/shims-vue.d.ts` file.

6. Remove `lang="ts"` from the `script` tags in any of your Vue components that have them. In a blank Ionic Vue app, this should only be `App.vue` and `views/Home.vue`.
6. Remove `lang="ts"` from the `script` tags in any of your Vue components that have them. In a blank Ionic Vue app, this should only be `src/App.vue` and `src/views/Home.vue`.

7. Delete the `tsconfig.json` file.

## A look at a Vue Component

Expand Down

0 comments on commit a41441a

Please sign in to comment.