Skip to content

Commit 9d1f862

Browse files
committed
chore: sync minor
2 parents 7ac7c0c + 8e27692 commit 9d1f862

File tree

270 files changed

+12362
-13917
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

270 files changed

+12362
-13917
lines changed

.eslintrc.cjs

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,15 @@
33
const DOMGlobals = ['window', 'document']
44
const NodeGlobals = ['module', 'require']
55

6+
const banConstEnum = {
7+
selector: 'TSEnumDeclaration[const=true]',
8+
message:
9+
'Please use non-const enums. This project automatically inlines enums.'
10+
}
11+
12+
/**
13+
* @type {import('eslint-define-config').ESLintConfig}
14+
*/
615
module.exports = {
716
parser: '@typescript-eslint/parser',
817
parserOptions: {
@@ -16,6 +25,7 @@ module.exports = {
1625

1726
'no-restricted-syntax': [
1827
'error',
28+
banConstEnum,
1929
// since we target ES2015 for baseline support, we need to forbid object
2030
// rest spread usage in destructure as it compiles into a verbose helper.
2131
'ObjectPattern > RestElement',
@@ -52,20 +62,18 @@ module.exports = {
5262
},
5363
// Packages targeting Node
5464
{
55-
files: [
56-
'packages/{compiler-sfc,compiler-ssr,server-renderer,reactivity-transform}/**'
57-
],
65+
files: ['packages/{compiler-sfc,compiler-ssr,server-renderer}/**'],
5866
rules: {
5967
'no-restricted-globals': ['error', ...DOMGlobals],
60-
'no-restricted-syntax': 'off'
68+
'no-restricted-syntax': ['error', banConstEnum]
6169
}
6270
},
6371
// Private package, browser only + no syntax restrictions
6472
{
6573
files: ['packages/template-explorer/**', 'packages/sfc-playground/**'],
6674
rules: {
6775
'no-restricted-globals': ['error', ...NodeGlobals],
68-
'no-restricted-syntax': 'off'
76+
'no-restricted-syntax': ['error', banConstEnum]
6977
}
7078
},
7179
// JavaScript files
@@ -81,7 +89,7 @@ module.exports = {
8189
files: ['scripts/**', '*.{js,ts}', 'packages/**/index.js'],
8290
rules: {
8391
'no-restricted-globals': 'off',
84-
'no-restricted-syntax': 'off'
92+
'no-restricted-syntax': ['error', banConstEnum]
8593
}
8694
}
8795
]

.github/contributing.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,11 @@ Hi! I'm really excited that you are interested in contributing to Vue.js. Before
1717

1818
## Pull Request Guidelines
1919

20-
- Checkout a topic branch from a base branch, e.g. `main`, and merge back against that branch.
20+
- Vue core has two primary work branches: `main` and `minor`.
21+
22+
- If your pull request is a feature that adds new API surface, it should be submitted against the `minor` branch.
23+
24+
- Otherwise, it should be submitted against the `main` branch.
2125

2226
- [Make sure to tick the "Allow edits from maintainers" box](https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/working-with-forks/allowing-changes-to-a-pull-request-branch-created-from-a-fork). This allows us to directly make minor edits / refactors and saves a lot of time.
2327

0 commit comments

Comments
 (0)