-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: switch to Typescript and provide type declaration file
Closes #36
- Loading branch information
1 parent
efc1086
commit b2ba9cc
Showing
94 changed files
with
2,215 additions
and
857 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 |
---|---|---|
@@ -1,23 +1,27 @@ | ||
module.exports = { | ||
require('@rushstack/eslint-patch/modern-module-resolution'); | ||
const { defineConfig } = require('eslint-define-config'); | ||
|
||
module.exports = defineConfig({ | ||
root: true, | ||
extends: [ | ||
'airbnb-base', | ||
'plugin:vue/vue3-recommended', | ||
'plugin:prettier/recommended', | ||
'eslint-config-vitest-globals', | ||
], | ||
env: { | ||
browser: true, | ||
node: true, | ||
'vue/setup-compiler-macros': true, | ||
}, | ||
globals: { | ||
__DEV__: 'readonly', | ||
'vitest-globals/env': true, | ||
}, | ||
ignorePatterns: ['node_modules', 'dist'], | ||
ignorePatterns: ['node_modules', 'dist', 'temp'], | ||
extends: [ | ||
'plugin:vue/vue3-recommended', | ||
'@vue/eslint-config-airbnb-with-typescript', | ||
'plugin:vitest-globals/recommended', | ||
'prettier', | ||
], | ||
rules: { | ||
'prettier/prettier': 'error', | ||
'import/no-extraneous-dependencies': ['error', { devDependencies: true }], | ||
'no-param-reassign': ['error', { props: false }], | ||
'import/no-extraneous-dependencies': [ | ||
'error', | ||
{ | ||
devDependencies: true, | ||
}, | ||
], | ||
}, | ||
}; | ||
}); |
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 |
---|---|---|
|
@@ -17,6 +17,7 @@ coverage | |
yarn.lock | ||
package-lock.json | ||
.pnpm-store/ | ||
temp | ||
|
||
/cypress/videos/ | ||
/cypress/screenshots/ | ||
|
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 |
---|---|---|
@@ -1,7 +1,8 @@ | ||
{ | ||
"recommendations": [ | ||
"johnsoncodehk.volar", | ||
"vue.volar", | ||
"Vue.vscode-typescript-vue-plugin", | ||
"esbenp.prettier-vscode", | ||
"ZixuanChen.vitest-explorer" | ||
"zixuanchen.vitest-explorer" | ||
] | ||
} |
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,38 @@ | ||
{ | ||
"$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json", | ||
"mainEntryPointFilePath": "<projectFolder>/temp/index.d.ts", | ||
"bundledPackages": [], | ||
"compiler": { | ||
"tsconfigFilePath": "<projectFolder>/tsconfig.types.json" | ||
}, | ||
"apiReport": { | ||
"enabled": false | ||
}, | ||
"docModel": { | ||
"enabled": false | ||
}, | ||
"dtsRollup": { | ||
"enabled": true, | ||
"publicTrimmedFilePath": "<projectFolder>/dist/<unscopedPackageName>.d.ts" | ||
}, | ||
"tsdocMetadata": { | ||
"enabled": false | ||
}, | ||
"messages": { | ||
"compilerMessageReporting": { | ||
"default": { | ||
"logLevel": "warning" | ||
} | ||
}, | ||
"extractorMessageReporting": { | ||
"default": { | ||
"logLevel": "warning" | ||
} | ||
}, | ||
"tsdocMessageReporting": { | ||
"default": { | ||
"logLevel": "warning" | ||
} | ||
} | ||
} | ||
} |
File renamed without changes.
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
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 |
---|---|---|
|
@@ -22,7 +22,7 @@ | |
<hr /> | ||
</template> | ||
|
||
<script setup> | ||
<script setup lang="ts"> | ||
const links = [ | ||
{ | ||
label: 'Composables', | ||
|
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
Oops, something went wrong.