diff --git a/.babelrc b/.babelrc index 05581748b..9d8eb6f14 100644 --- a/.babelrc +++ b/.babelrc @@ -1,3 +1,9 @@ { - "presets": ["es2015", "stage-2"] + "presets": [ + ["@babel/preset-env", { + "exclude": [ + "transform-regenerator" + ] + }] + ] } diff --git a/.eslintrc b/.eslintrc deleted file mode 100644 index 9448499f3..000000000 --- a/.eslintrc +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "standard", - "rules": { - "arrow-parens": [2, "as-needed"] - } -} diff --git a/.eslintrc.json b/.eslintrc.json new file mode 100644 index 000000000..fd2d71204 --- /dev/null +++ b/.eslintrc.json @@ -0,0 +1,10 @@ +{ + "root": true, + "extends": [ + "plugin:vue-libs/recommended" + ], + "globals": { + "__DEV__": true, + "__VUE_PROD_DEVTOOLS__": true + } +} diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml new file mode 100644 index 000000000..7b215c0fc --- /dev/null +++ b/.github/FUNDING.yml @@ -0,0 +1,3 @@ +github: [yyx990803, kiaking, ktsn] +open_collective: vuejs +patreon: evanyou diff --git a/.github/ISSUE_TEMPLATE.md b/.github/ISSUE_TEMPLATE.md new file mode 100644 index 000000000..d251b7d8e --- /dev/null +++ b/.github/ISSUE_TEMPLATE.md @@ -0,0 +1,7 @@ + diff --git a/.github/ISSUE_TEMPLATE/bug_report.yml b/.github/ISSUE_TEMPLATE/bug_report.yml new file mode 100644 index 000000000..0ad901cea --- /dev/null +++ b/.github/ISSUE_TEMPLATE/bug_report.yml @@ -0,0 +1,59 @@ +name: "\U0001F41E Bug report" +description: Create a report to help us improve +labels: ['bug: pending triage'] +body: + - type: markdown + attributes: + value: | + Thanks for taking the time to fill out this bug report! + Please note that Vuex is now in maintenance mode and we will only prioritize critical issues. + Consider checking out [Pinia](https://pinia.vuejs.org/) for a more type-friendly and actively + maintained alternative. + - type: input + id: version + attributes: + label: Version + description: What version of Vuex is used in your project? + validations: + required: true + - type: textarea + id: bug-description + attributes: + label: Describe the bug + description: A clear and concise description of what the bug is. If you intend to submit a PR for this issue, tell us in the description. Thanks! + placeholder: Bug description + validations: + required: true + - type: textarea + id: reproduction + attributes: + label: Reproduction + description: Steps to reproduce the behavior. + placeholder: Reproduction + validations: + required: true + - type: textarea + id: expected + attributes: + label: Expected behavior + description: A clear and concise description of what you expected to happen. + placeholder: Expected behavior + validations: + required: true + - type: textarea + id: additional-context + attributes: + label: Additional context + description: Add any other context or screenshots about the bug report here. + - type: checkboxes + id: checkboxes + attributes: + label: Validations + description: Before submitting the issue, please make sure you do the following + options: + - label: Follow our [Code of Conduct](https://vuejs.org/about/coc.html) + required: true + - label: Read the [docs](https://vuex.vuejs.org/). + required: true + - label: Check that there isn't already an issue that reports the same bug to avoid creating a duplicate. + required: true diff --git a/.github/commit-convention.md b/.github/commit-convention.md new file mode 100644 index 000000000..1533ef1af --- /dev/null +++ b/.github/commit-convention.md @@ -0,0 +1,91 @@ +## Git Commit Message Convention + +> This is adapted from [Angular's commit convention](https://github.com/conventional-changelog/conventional-changelog/tree/master/packages/conventional-changelog-angular). + +#### TL;DR: + +Messages must be matched by the following regex: + +``` js +/^(revert: )?(feat|fix|docs|dx|style|refactor|perf|test|workflow|build|ci|chore|types|wip)(\(.+\))?: .{1,50}/ +``` + +#### Examples + +Appears under "Features" header, `store` subheader: + +``` +feat(store): add 'watch' option +``` + +Appears under "Bug Fixes" header, `module` subheader, with a link to issue #28: + +``` +fix(module): handle state overwrite + +close #28 +``` + +Appears under "Performance Improvements" header, and under "Breaking Changes" with the breaking change explanation: + +``` +perf: improve store getters performance by removing 'foo' option + +BREAKING CHANGE: The 'foo' option has been removed. +``` + +The following commit and commit `667ecc1` do not appear in the changelog if they are under the same release. If not, the revert commit appears under the "Reverts" header. + +``` +revert: feat(store): add 'watch' option + +This reverts commit 667ecc1654a317a13331b17617d973392f415f02. +``` + +### Full Message Format + +A commit message consists of a **header**, **body** and **footer**. The header has a **type**, **scope** and **subject**: + +``` +(): + + + +