Skip to content

Commit 3929fbf

Browse files
committed
fix javascript rule with latest lintint, update all packages, fix tonik#99 - vulnerabilities
1 parent fb47607 commit 3929fbf

File tree

4 files changed

+16
-10
lines changed

4 files changed

+16
-10
lines changed

.babelrc

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
{
2-
"presets": ["env"]
3-
}
2+
"presets": ["@babel/preset-env"],
3+
"plugins": ["@babel/plugin-proposal-optional-chaining"]
4+
}

.eslintrc

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
{
2+
"parser": "babel-eslint",
23
"extends": [
3-
"plugin:vue/vue3-recommended",
4+
"plugin:vue/vue3-recommended"
45
],
56
"rules": {
6-
"indent": ["error", 2]
7+
"indent": ["error", 2],
78
},
89
"parserOptions": {
910
"ecmaVersion": 6,

build/rules/javascript.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,8 @@ const config = require('../app.config')
77
module.exports = {
88
test: /\.js$/,
99
exclude: /node_modules/,
10-
loader: 'eslint-loader',
10+
loader: 'babel-loader',
11+
options: {
12+
presets: ['@babel/preset-env'],
13+
},
1114
}

package.json

+6-5
Original file line numberDiff line numberDiff line change
@@ -10,20 +10,21 @@
1010
"lint:sass": "stylelint resources/assets/sass/**/*.{scss,sass}",
1111
"lint": "npm run lint:js && npm run lint:sass"
1212
},
13-
"dependencies": {},
1413
"devDependencies": {
1514
"@babel/core": "^7.12.10",
15+
"@babel/plugin-proposal-optional-chaining": "^7.12.7",
1616
"@babel/preset-env": "^7.12.11",
1717
"autoprefixer": "^6.7.7",
1818
"babel-core": "^6.24.1",
19-
"babel-loader": "^7.1.5",
19+
"babel-eslint": "^10.1.0",
20+
"babel-loader": "^8.2.2",
2021
"babel-preset-env": "^1.3.3",
2122
"browser-sync": "^2.18.8",
2223
"browser-sync-webpack-plugin": "^2.3.0",
2324
"clean-webpack-plugin": "^0.1.16",
2425
"copy-webpack-plugin": "^7.0.0",
2526
"cross-env": "^5.0.1",
26-
"css-loader": "^0.28.0",
27+
"css-loader": "^5.0.1",
2728
"dotenv": "^5.0.1",
2829
"eslint": "^7.19.0",
2930
"eslint-loader": "^4.0.2",
@@ -32,8 +33,8 @@
3233
"extract-text-webpack-plugin": "^3.0.0",
3334
"file-loader": "^0.11.1",
3435
"image-minimizer-webpack-plugin": "^2.2.0",
35-
"imagemin-webpack-plugin": "^1.4.4",
36-
"img-loader": "^2.0.0",
36+
"imagemin-webpack-plugin": "^2.4.2",
37+
"img-loader": "^3.0.2",
3738
"isdev": "^1.0.1",
3839
"mini-css-extract-plugin": "^1.3.5",
3940
"node-sass": "^4.5.2",

0 commit comments

Comments
 (0)