Skip to content

Commit

Permalink
refactor: update laravel-mix and peer dependencies (#5094)
Browse files Browse the repository at this point in the history
  • Loading branch information
asbiin committed Apr 24, 2021
1 parent e012125 commit f808704
Show file tree
Hide file tree
Showing 51 changed files with 2,352 additions and 19,087 deletions.
126 changes: 63 additions & 63 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,94 +1,94 @@
module.exports = {
"env": {
"browser": true,
"es6": true,
"cypress/globals": true
'env': {
'browser': true,
'es6': true,
'cypress/globals': true
},
"extends": [
"plugin:vue/recommended"
'extends': [
'plugin:vue/recommended'
],
"parserOptions": {
"ecmaVersion": 2017,
"sourceType": "module"
'parserOptions': {
'ecmaVersion': 12,
'sourceType': 'module'
},
"plugins": [
"vue",
"cypress"
'plugins': [
'vue',
'cypress'
],
"rules": {
"array-bracket-spacing": [
"error",
"never"
'rules': {
'array-bracket-spacing': [
'error',
'never'
],
"indent": [
"error",
'indent': [
'error',
2
],
"linebreak-style": [
"error",
"unix"
'linebreak-style': [
'error',
'unix'
],
"no-trailing-spaces": [
"error",
'no-trailing-spaces': [
'error',
{
"ignoreComments": true,
"skipBlankLines": true
'ignoreComments': true,
'skipBlankLines': true
}
],
"quotes": [
"error",
"single"
'quotes': [
'error',
'single'
],
"semi": [
"error",
"always"
'semi': [
'error',
'always'
],
"semi-spacing": [
"error",
'semi-spacing': [
'error',
{
"after": true,
"before": false
'after': true,
'before': false
}
],
"semi-style": [
"error",
"last"
'semi-style': [
'error',
'last'
],

// strongly recommended
"vue/component-name-in-template-casing": [
"error",
"kebab-case"
'vue/component-name-in-template-casing': [
'error',
'kebab-case'
],
"vue/component-tags-order": [
"error", {
"order": [
"style",
[
"template",
"script"
'vue/component-tags-order': [
'error', {
'order': [
'style',
[
'template',
'script'
]
]
]
}],
"vue/html-end-tags" : "error",
"vue/html-self-closing": [
"error",
}],
'vue/html-end-tags' : 'error',
'vue/html-self-closing': [
'error',
{
"html": {
"normal": "never",
"void": "always"
'html': {
'normal': 'never',
'void': 'always'
}
}
],
"vue/no-v-html" : 0,
"vue/max-attributes-per-line": [
'vue/no-v-html' : 0,
'vue/max-attributes-per-line': [
// https://vuejs.org/v2/style-guide/#Multi-attribute-elements-strongly-recommended
"error",
'error',
{
"singleline": 5,
"multiline": {
"max": 5,
"allowFirstLine": true
'singleline': 5,
'multiline': {
'max': 5,
'allowFirstLine': true
}
}
],
Expand Down
2 changes: 1 addition & 1 deletion app/Http/Controllers/ContactsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -590,7 +590,7 @@ public function search(Request $request)
*/
public function vCard(Contact $contact)
{
if (config('app.debug')) {
if (config('app.debug') && class_exists('\Barryvdh\Debugbar\Facade')) {
Debugbar::disable();
}

Expand Down
Loading

0 comments on commit f808704

Please sign in to comment.