Skip to content

Commit e5a8bd1

Browse files
committed
eslint/typescript
1 parent 124c18a commit e5a8bd1

File tree

4 files changed

+205
-0
lines changed

4 files changed

+205
-0
lines changed

.eslintrc.js

+6
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,12 @@ module.exports = {
1212
// override/add rules settings here, such as:
1313
'vue/no-unused-vars': 'off',
1414
'vue/multi-word-component-names': 'off',
15+
'Parsing error: Unexpected token as': 'off',
1516
// 'no-unused-vars': 'off',
1617
},
18+
parserOptions: {
19+
ecmaVersion: 12,
20+
sourceType: 'module',
21+
parser: '@typescript-eslint/parser',
22+
},
1723
}

package.json

+2
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@
3030
"@tailwindcss/typography": "^0.5.2",
3131
"@types/markdown-it-link-attributes": "^3.0.1",
3232
"@types/node": "^18.0.0",
33+
"@typescript-eslint/eslint-plugin": "^5.29.0",
34+
"@typescript-eslint/parser": "^5.29.0",
3335
"@vitejs/plugin-vue": "^2.3.3",
3436
"@vue/test-utils": "^2.0.0",
3537
"autoprefixer": "^10.4.7",

pnpm-lock.yaml

+195
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/components.d.ts

+2
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import '@vue/runtime-core'
55

66
declare module '@vue/runtime-core' {
77
export interface GlobalComponents {
8+
BaseAlert: typeof import('./components/ui/alert/BaseAlert.vue')['default']
89
BaseTable: typeof import('./components/ui/table/BaseTable.vue')['default']
910
BaseTableItem: typeof import('./components/ui/table/BaseTableItem.vue')['default']
1011
BaseTableRow: typeof import('./components/ui/table/BaseTableRow.vue')['default']
@@ -14,6 +15,7 @@ declare module '@vue/runtime-core' {
1415
DisclosureButton: typeof import('@headlessui/vue')['DisclosureButton']
1516
DisclosurePanel: typeof import('@headlessui/vue')['DisclosurePanel']
1617
Markdown: typeof import('./components/Markdown.vue')['default']
18+
Readme: typeof import('./components/ui/alert/Readme.md')['default']
1719
RouterLink: typeof import('vue-router')['RouterLink']
1820
RouterView: typeof import('vue-router')['RouterView']
1921
Switch: typeof import('@headlessui/vue')['Switch']

0 commit comments

Comments
 (0)