diff --git a/.eslintrc.js b/.eslintrc.cjs similarity index 67% rename from .eslintrc.js rename to .eslintrc.cjs index 1359509..596afd1 100644 --- a/.eslintrc.js +++ b/.eslintrc.cjs @@ -1,13 +1,19 @@ module.exports = { - extends: ["plugin:vue/vue3-recommended"], + parser: "vue-eslint-parser", + extends: [ + "plugin:vue/recommended", + "plugin:@typescript-eslint/recommended", + "prettier", + ], parserOptions: { + parser: "@typescript-eslint/parser", sourceType: "module", ecmaVersion: "latest", ecmaFeatures: { jsx: true, }, }, - plugins: ["vue"], + plugins: ["vue", "@typescript-eslint", "unused-imports"], rules: { "import/extensions": ["off"], "@typescript-eslint/explicit-function-return-type": [ @@ -28,5 +34,7 @@ module.exports = { argsIgnorePattern: "^_", }, ], + "@typescript-eslint/no-explicit-any": "error", + "quotes": ["error", "single"], }, }; diff --git a/.prettierrc b/.prettierrc new file mode 100644 index 0000000..92cde39 --- /dev/null +++ b/.prettierrc @@ -0,0 +1,3 @@ +{ + "singleQuote": true +} \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..63b3aab --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,21 @@ +# Changelog + +All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines. + +## 2.1.0 (2024-11-04) + + +### Features + +* add TonConnectUIPlugin ([af7c4d2](https://github.com/TownSquareXYZ/tonconnect-ui-vue/commit/af7c4d24f825d36c453ccb694ba0dbddacb755f1)) +* add TypeScript type definitions ([4cd5796](https://github.com/TownSquareXYZ/tonconnect-ui-vue/commit/4cd5796829a1e44d5266f0161c4853d792de1ecb)) +* use Symble key in provide / inject ([e3f5115](https://github.com/TownSquareXYZ/tonconnect-ui-vue/commit/e3f51155999d2699170a416909ed01db6c7b0dc2)) + + +### Bug Fixes + +* add vue-demi to external dependencies ([e83b1bd](https://github.com/TownSquareXYZ/tonconnect-ui-vue/commit/e83b1bd91e1f9aa404098de90d394548f6821bdf)) +* resolve issues with Vue 2.7 integration ([263dd91](https://github.com/TownSquareXYZ/tonconnect-ui-vue/commit/263dd917c77c3007c878eaef4882ea159b501619)) +* update injections components & watch options change ([e1f8be8](https://github.com/TownSquareXYZ/tonconnect-ui-vue/commit/e1f8be88dffabaa7c0a81ffe961b3c56ce66cc96)) +* useTonConnectUI().tonConnectUI is not typed ([2449bd8](https://github.com/TownSquareXYZ/tonconnect-ui-vue/commit/2449bd8027c235818f085bdce608edc9ba5ee3d6)) + diff --git a/package.json b/package.json index be0c3d8..9868646 100644 --- a/package.json +++ b/package.json @@ -13,7 +13,8 @@ "lint-fix": "eslint --fix --ext .ts,.vue src", "lint": "eslint", "prepare": "husky", - "security-audit": "npm audit && npm outdated" + "security-audit": "npm audit && npm outdated", + "release": "standard-version" }, "publishConfig": { "access": "public" @@ -76,11 +77,14 @@ "@vue/composition-api": "^1.7.2", "autoprefixer": "^10.4.16", "eslint": "^8.56.0", - "eslint-config-prettier": "^8.10.0", - "eslint-plugin-prettier": "^4.2.1", + "eslint-config-prettier": "^9.1.0", + "eslint-plugin-prettier": "^5.2.1", + "eslint-plugin-unused-imports": "^4.1.4", "eslint-plugin-vue": "^9.20.1", "husky": "^9.0.11", "lint-staged": "^15.2.2", + "prettier": "^3.3.3", + "standard-version": "^9.5.0", "typescript": "^4.9.5", "unplugin-vue-components": "^0.27.4", "unplugin-vue-define-options": "^1.5.1", @@ -94,7 +98,8 @@ }, "lint-staged": { "*.{vue,ts,tsx}": [ - "eslint --ext .ts,.vue src" + "eslint --ext .ts,.vue src", + "prettier --write" ] } } diff --git a/src/components/TonConnectButton.vue b/src/components/TonConnectButton.vue index 8e569f5..da3fceb 100644 --- a/src/components/TonConnectButton.vue +++ b/src/components/TonConnectButton.vue @@ -1,20 +1,25 @@