Skip to content

Commit

Permalink
add lint and prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
freekmurze committed Aug 24, 2018
1 parent a79d337 commit 88f28dd
Show file tree
Hide file tree
Showing 7 changed files with 436 additions and 16 deletions.
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/dist
17 changes: 17 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"extends": [
"eslint:recommended",
"plugin:vue/essential",
"prettier"
],
"parserOptions": {
"ecmaVersion": 2017
},
"env": {
"browser": true,
"node": true
},
"rules": {
"vue/html-indent": ["error", 4]
}
}
2 changes: 2 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
dist/
vendor/
6 changes: 6 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"printWidth": 100,
"singleQuote": true,
"tabWidth": 4,
"trailingComma": "es5"
}
8 changes: 6 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,17 @@
"hot": "cross-env NODE_ENV=development node_modules/webpack-dev-server/bin/webpack-dev-server.js --inline --hot --config=node_modules/laravel-mix/setup/webpack.config.js",
"prod": "npm run production",
"production": "cross-env NODE_ENV=production node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js",
"format": "prettier --single-quote --write 'resources/**/*.{css,js,vue}'"
"format": "prettier --write 'resources/assets/**/*.{css,js,vue}'",
"lint": "eslint resources/assets/js --fix --ext js,vue"
},
"devDependencies": {
"cross-env": "^5.0.0",
"laravel-mix": "^1.0",
"laravel-nova": "^1.0",
"prettier": "^1.14.0"
"prettier": "^1.14.2",
"eslint": "^4.19.1",
"eslint-config-prettier": "^2.9.0",
"eslint-plugin-vue": "^4.4.0"
},
"dependencies": {
"animated-scroll-to": "^1.2.2",
Expand Down
1 change: 1 addition & 0 deletions resources/js/components/Tags/RenderlessTagInput.vue
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
return
}
this.$emit("update", [...this.tags, this.newTag])
this.clearInput()
},
clearInput() {
Expand Down
Loading

0 comments on commit 88f28dd

Please sign in to comment.