Skip to content
This repository was archived by the owner on Nov 14, 2024. It is now read-only.

Commit ffc345b

Browse files
chore(build): ESLint should also lint .vue files (#68)
1 parent 50147af commit ffc345b

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

.eslintrc

+3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
{
2+
"extends": [
3+
"plugin:vue/essential"
4+
],
25
"rules": {
36
"indent": ["error", 2]
47
},

package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"prod": "npm run production",
77
"production": "cross-env NODE_ENV=production webpack --progress --hide-modules --config build/webpack.config.js",
88
"watch": "npm run development -- --watch && webpack-dev-server --progress --colors",
9-
"lint:js": "eslint resources/assets/js/**/*.{js}",
9+
"lint:js": "eslint resources/assets/js/**/*.{js,vue}",
1010
"lint:sass": "stylelint resources/assets/sass/**/*.{scss,sass}",
1111
"lint": "npm run lint:js && npm run lint:sass"
1212
},
@@ -25,6 +25,7 @@
2525
"dotenv": "^5.0.1",
2626
"eslint": "^4.10.0",
2727
"eslint-loader": "^1.9.0",
28+
"eslint-plugin-vue": "^4.7.1",
2829
"extract-text-webpack-plugin": "^3.0.0",
2930
"file-loader": "^0.11.1",
3031
"imagemin-webpack-plugin": "^1.4.4",

0 commit comments

Comments
 (0)