Skip to content

Commit 34fcf45

Browse files
Updating packages and configs
1 parent 25eaa08 commit 34fcf45

File tree

4 files changed

+167
-86
lines changed

4 files changed

+167
-86
lines changed

.babelrc

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
"presets": [["@babel/preset-env"]],
33
"ignore": ["node_modules/", "public/"],
44
"plugins": [
5-
"@babel/plugin-proposal-object-rest-spread",
6-
"@babel/plugin-proposal-optional-chaining",
75
[
86
"module-resolver",
97
{

.eslintrc.js

Lines changed: 15 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -7,19 +7,15 @@ module.exports = {
77
'eslint:recommended',
88
'plugin:vue/recommended',
99
],
10-
globals: {
11-
socket: true,
12-
PDFObject: true,
13-
},
1410
parser: 'vue-eslint-parser',
1511
parserOptions: {
16-
parser: '@babel/eslint-parser',
17-
ecmaVersion: 12,
18-
sourceType: 'module',
1912
ecmaFeatures: {
2013
jsx: true,
2114
},
15+
ecmaVersion: 12,
16+
parser: '@babel/eslint-parser',
2217
requireConfigFile: false,
18+
sourceType: 'module',
2319
},
2420
plugins: [
2521
'import',
@@ -60,7 +56,7 @@ module.exports = {
6056
'no-console': ['warn', { allow: ['warn', 'error'] }],
6157
'no-debugger': 0,
6258
'no-else-return': ['error', { allowElseIf: true }],
63-
'no-multiple-empty-lines': ['error', { 'max': 2, 'maxEOF': 0 }],
59+
'no-multiple-empty-lines': ['error', { max: 2, maxEOF: 0 }],
6460
'no-new': 0,
6561
'no-param-reassign': [
6662
'error', {
@@ -93,23 +89,23 @@ module.exports = {
9389
enforceForRenamedProperties: false,
9490
},
9591
],
96-
'quotes': ['error', 'single', { avoidEscape: true }],
97-
'semi': ['error', 'always'],
92+
quotes: ['error', 'single', { avoidEscape: true }],
93+
semi: ['error', 'always'],
9894
'sort-imports': ['error', {
99-
'allowSeparatedGroups': false,
100-
'ignoreCase': true,
101-
'ignoreDeclarationSort': true,
102-
'ignoreMemberSort': false,
103-
'memberSyntaxSortOrder': ['none', 'single', 'all', 'multiple'],
95+
allowSeparatedGroups: false,
96+
ignoreCase: true,
97+
ignoreDeclarationSort: true,
98+
ignoreMemberSort: false,
99+
memberSyntaxSortOrder: ['none', 'single', 'all', 'multiple'],
104100
}],
105101
'space-before-function-paren': ['error', {
106102
anonymous: 'never',
107103
asyncArrow: 'never',
108104
named: 'never',
109105
}],
110106
'vue/attributes-order': ['error', {
111-
'alphabetical': true,
112-
'order': [
107+
alphabetical: true,
108+
order: [
113109
'DEFINITION',
114110
'LIST_RENDERING',
115111
'CONDITIONALS',
@@ -124,7 +120,7 @@ module.exports = {
124120
],
125121
}],
126122
'vue/component-tags-order': ['error', {
127-
'order': ['template', 'script', 'style'],
123+
order: ['template', 'script', 'style'],
128124
}],
129125
'vue/html-closing-bracket-newline': 0,
130126
'vue/html-comment-content-spacing': ['error',
@@ -138,7 +134,7 @@ module.exports = {
138134
'vue/no-v-html': 0,
139135
'vue/no-v-text-v-html-on-component': 0,
140136
'vue/order-in-components': ['error', {
141-
'order': [
137+
order: [
142138
'el',
143139
'name',
144140
'key',
@@ -187,12 +183,5 @@ module.exports = {
187183
'vue/padding-line-between-blocks': 1,
188184
'vue/require-name-property': 1,
189185
'vue/singleline-html-element-content-newline': 0,
190-
'vue/sort-keys': ['warn', 'asc', {
191-
caseSensitive: true,
192-
ignoreChildrenOf: ['model', 'defineProps'],
193-
ignoreGrandchildrenOf: ['computed', 'directives', 'inject', 'props', 'watch', 'defineProps'],
194-
minKeys: 2,
195-
natural: true,
196-
}],
197186
},
198187
};

package.json

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -51,16 +51,16 @@
5151
"wdns"
5252
],
5353
"dependencies": {
54-
"vue": "^2.6.12"
54+
"lodash": "^4.17.21",
55+
"vue": "^2.7.3"
5556
},
5657
"devDependencies": {
57-
"@babel/core": "^7.13.16",
58-
"@babel/eslint-parser": "^7.13.14",
59-
"@babel/eslint-plugin": "^7.13.16",
60-
"@babel/plugin-proposal-optional-chaining": "^7.10.3",
61-
"@babel/plugin-transform-runtime": "^7.13.15",
62-
"@babel/preset-env": "^7.13.15",
63-
"@babel/runtime": "^7.13.17",
58+
"@babel/core": "^7.20.12",
59+
"@babel/eslint-parser": "^7.19.1",
60+
"@babel/eslint-plugin": "^7.19.1",
61+
"@babel/plugin-transform-runtime": "^7.19.6",
62+
"@babel/preset-env": "^7.20.2",
63+
"@babel/runtime": "^7.20.13",
6464
"@vue/eslint-config-prettier": "^7.0.0",
6565
"babel-loader": "^9.1.2",
6666
"babel-plugin-module-resolver": "^5.0.0",
@@ -72,23 +72,23 @@
7272
"eslint-config-airbnb-base": "^15.0.0",
7373
"eslint-friendly-formatter": "^4.0.1",
7474
"eslint-import-resolver-alias": "^1.1.2",
75-
"eslint-import-resolver-babel-module": "^5.3.0",
75+
"eslint-import-resolver-babel-module": "^5.3.1",
7676
"eslint-import-resolver-webpack": "^0.13.0",
7777
"eslint-plugin-babel": "^5.3.1",
78-
"eslint-plugin-import": "^2.22.1",
78+
"eslint-plugin-import": "^2.26.0",
7979
"eslint-plugin-prettier": "^4.2.1",
8080
"eslint-plugin-vue": "^9.9.0",
81-
"eslint-webpack-plugin": "^3.2.0",
81+
"eslint-webpack-plugin": "^4.0.0",
8282
"file-loader": "^6.2.0",
8383
"html-webpack-plugin": "^5.3.1",
84-
"lodash": "^4.17.21",
8584
"prettier": "^2.8.3",
8685
"terser-webpack-plugin": "^5.3.6",
8786
"vue-hot-reload-api": "^2.0.8",
88-
"vue-loader": "^15.9.6",
89-
"vue-style-loader": "^4.1.2",
90-
"vue-template-compiler": "^2.6.12",
91-
"webpack": "^5.35.1",
87+
"vue-loader": "^15.10.0",
88+
"vue-style-loader": "^4.1.3",
89+
"vue-template-babel-compiler": "^1.2.0",
90+
"vue-template-compiler": "^2.7.3",
91+
"webpack": "^5.73.0",
9292
"webpack-cli": "^5.0.1",
9393
"webpack-dev-server": "^4.11.1",
9494
"webpack-merge": "^5.7.3"

0 commit comments

Comments
 (0)