Skip to content

Commit

Permalink
fix javascript rule with latest lintint, update all packages, fix ton…
Browse files Browse the repository at this point in the history
…ik#99 - vulnerabilities
  • Loading branch information
niklasp committed Feb 2, 2021
1 parent fb47607 commit 3929fbf
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 10 deletions.
5 changes: 3 additions & 2 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{
"presets": ["env"]
}
"presets": ["@babel/preset-env"],
"plugins": ["@babel/plugin-proposal-optional-chaining"]
}
5 changes: 3 additions & 2 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
{
"parser": "babel-eslint",
"extends": [
"plugin:vue/vue3-recommended",
"plugin:vue/vue3-recommended"
],
"rules": {
"indent": ["error", 2]
"indent": ["error", 2],
},
"parserOptions": {
"ecmaVersion": 6,
Expand Down
5 changes: 4 additions & 1 deletion build/rules/javascript.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,8 @@ const config = require('../app.config')
module.exports = {
test: /\.js$/,
exclude: /node_modules/,
loader: 'eslint-loader',
loader: 'babel-loader',
options: {
presets: ['@babel/preset-env'],
},
}
11 changes: 6 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,20 +10,21 @@
"lint:sass": "stylelint resources/assets/sass/**/*.{scss,sass}",
"lint": "npm run lint:js && npm run lint:sass"
},
"dependencies": {},
"devDependencies": {
"@babel/core": "^7.12.10",
"@babel/plugin-proposal-optional-chaining": "^7.12.7",
"@babel/preset-env": "^7.12.11",
"autoprefixer": "^6.7.7",
"babel-core": "^6.24.1",
"babel-loader": "^7.1.5",
"babel-eslint": "^10.1.0",
"babel-loader": "^8.2.2",
"babel-preset-env": "^1.3.3",
"browser-sync": "^2.18.8",
"browser-sync-webpack-plugin": "^2.3.0",
"clean-webpack-plugin": "^0.1.16",
"copy-webpack-plugin": "^7.0.0",
"cross-env": "^5.0.1",
"css-loader": "^0.28.0",
"css-loader": "^5.0.1",
"dotenv": "^5.0.1",
"eslint": "^7.19.0",
"eslint-loader": "^4.0.2",
Expand All @@ -32,8 +33,8 @@
"extract-text-webpack-plugin": "^3.0.0",
"file-loader": "^0.11.1",
"image-minimizer-webpack-plugin": "^2.2.0",
"imagemin-webpack-plugin": "^1.4.4",
"img-loader": "^2.0.0",
"imagemin-webpack-plugin": "^2.4.2",
"img-loader": "^3.0.2",
"isdev": "^1.0.1",
"mini-css-extract-plugin": "^1.3.5",
"node-sass": "^4.5.2",
Expand Down

0 comments on commit 3929fbf

Please sign in to comment.