Skip to content

Commit cda2c77

Browse files
committed
vue upgrade --next and folder 2.7 example
1 parent 87a2b34 commit cda2c77

26 files changed

+29006
-10671
lines changed

.eslintrc.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ module.exports = {
1313
],
1414

1515
parserOptions: {
16-
parser: "@typescript-eslint/parser"
16+
parser: '@typescript-eslint/parser'
1717
},
1818

1919
plugins: [

package-lock.json

+15,059-10,659
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+12-11
Original file line numberDiff line numberDiff line change
@@ -33,26 +33,27 @@
3333
"@types/lodash.clonedeep": "^4.5.6",
3434
"@types/lodash.debounce": "^4.0.6",
3535
"@types/lodash.isequal": "^4.5.5",
36-
"@typescript-eslint/eslint-plugin": "^2.33.0",
37-
"@typescript-eslint/parser": "^2.33.0",
38-
"@vue/cli-plugin-babel": "~4.5.0",
39-
"@vue/cli-plugin-eslint": "~4.5.0",
40-
"@vue/cli-plugin-typescript": "^4.5.11",
41-
"@vue/cli-plugin-unit-jest": "^4.5.12",
42-
"@vue/cli-service": "~4.5.0",
36+
"@typescript-eslint/eslint-plugin": "^5.4.0",
37+
"@typescript-eslint/parser": "^5.4.0",
38+
"@vue/cli-plugin-babel": "^5.0.8",
39+
"@vue/cli-plugin-eslint": "^5.0.8",
40+
"@vue/cli-plugin-typescript": "^5.0.8",
41+
"@vue/cli-plugin-unit-jest": "^5.0.8",
42+
"@vue/cli-service": "^5.0.8",
4343
"@vue/compiler-sfc": "^3.0.0",
44-
"@vue/eslint-config-typescript": "^5.0.2",
44+
"@vue/eslint-config-typescript": "^9.1.0",
4545
"@vue/test-utils": "^2.0.0-rc.4",
4646
"babel-eslint": "^10.1.0",
47-
"eslint": "^6.7.2",
47+
"eslint": "^7.32.0",
4848
"eslint-plugin-typescript": "^0.14.0",
49-
"eslint-plugin-vue": "^7.0.0-0",
49+
"eslint-plugin-vue": "^8.0.3",
50+
"jest": "^27.1.0",
5051
"rollup": "^2.39.1",
5152
"rollup-plugin-terser": "^7.0.2",
5253
"rollup-plugin-typescript2": "^0.30.0",
5354
"rollup-plugin-vue": "^6.0.0",
5455
"ts-jest": "^26.5.4",
55-
"typescript": "~3.9.3",
56+
"typescript": "~4.5.5",
5657
"vue": "^3.0.0",
5758
"vue-jest": "^5.0.0-0"
5859
},

vue2.7-example/.browserslistrc

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
> 1%
2+
last 2 versions
3+
not dead

vue2.7-example/.eslintrc.js

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
module.exports = {
2+
root: true,
3+
env: {
4+
node: true
5+
},
6+
'extends': [
7+
'plugin:vue/essential',
8+
'eslint:recommended',
9+
'@vue/typescript/recommended'
10+
],
11+
parserOptions: {
12+
parser: '@typescript-eslint/parser'
13+
},
14+
rules: {
15+
'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
16+
'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
17+
"@typescript-eslint/camelcase": "off",
18+
"@typescript-eslint/no-explicit-any": "off",
19+
"@typescript-eslint/no-use-before-define": "off"
20+
}
21+
}

vue2.7-example/.gitignore

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
.DS_Store
2+
node_modules
3+
/dist
4+
5+
6+
# local env files
7+
.env.local
8+
.env.*.local
9+
10+
# Log files
11+
npm-debug.log*
12+
yarn-debug.log*
13+
yarn-error.log*
14+
pnpm-debug.log*
15+
16+
# Editor directories and files
17+
.idea
18+
.vscode
19+
*.suo
20+
*.ntvs*
21+
*.njsproj
22+
*.sln
23+
*.sw?

vue2.7-example/README.md

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# vue2-example
2+
3+
## Project setup
4+
```
5+
npm install
6+
```
7+
8+
### Compiles and hot-reloads for development
9+
```
10+
npm run serve
11+
```
12+
13+
### Compiles and minifies for production
14+
```
15+
npm run build
16+
```
17+
18+
### Lints and fixes files
19+
```
20+
npm run lint
21+
```
22+
23+
### Customize configuration
24+
See [Configuration Reference](https://cli.vuejs.org/config/).

vue2.7-example/babel.config.js

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
module.exports = {
2+
presets: [
3+
'@vue/cli-plugin-babel/preset'
4+
]
5+
}

0 commit comments

Comments
 (0)