Skip to content

Commit

Permalink
Fix linting errors in development environment (shentao#1251)
Browse files Browse the repository at this point in the history
Co-authored-by: Malik Dirim <[email protected]>
  • Loading branch information
Malik Dirim and Malik Dirim authored May 5, 2020
1 parent 52097d9 commit 0444c8c
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 7 deletions.
8 changes: 5 additions & 3 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,13 @@ module.exports = {
root: true,
// https://github.com/feross/standard/blob/master/RULES.md#javascript-standard-style
extends: [
'standard'
'standard',
'plugin:vue/essential'
],
parser: 'babel-eslint',
parserOptions: {
sourceType: 'module'
'ecmaVersion': 2017,
'sourceType': 'module',
'parser': 'babel-eslint',
},
// required to lint *.vue files
plugins: ['html'],
Expand Down
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,16 +40,17 @@
"connect-history-api-fallback": "^1.1.0",
"copy-webpack-plugin": "^4.0.0",
"cross-env": "^5.2.0",
"cssnano": "^4.1.7",
"css-loader": "^0.28.11",
"cssnano": "^4.1.7",
"es6-promise": "^4.2.4",
"eslint": "^6.4.0",
"eslint": "^6.8.0",
"eslint-config-standard": "^6.1.0",
"eslint-friendly-formatter": "^4.0.1",
"eslint-loader": "^2.2.1",
"eslint-plugin-html": "^6.0.0",
"eslint-plugin-promise": "^3.4.0",
"eslint-plugin-standard": "^4.0.1",
"eslint-plugin-vue": "^6.2.2",
"eventsource-polyfill": "^0.9.6",
"express": "^4.16.3",
"extract-text-webpack-plugin": "^2.0.0-rc.3",
Expand Down
1 change: 1 addition & 0 deletions src/Multiselect.vue
Original file line number Diff line number Diff line change
Expand Up @@ -341,6 +341,7 @@ export default {
? { width: '100%' }
: { width: '0', position: 'absolute', padding: '0' }
}
return ''
},
contentStyle () {
return this.options.length
Expand Down
2 changes: 1 addition & 1 deletion src/multiselectMixin.js
Original file line number Diff line number Diff line change
Expand Up @@ -571,7 +571,7 @@ export default {
this.id
)
}

if (this.closeOnSelect) this.deactivate()
},
/**
Expand Down
2 changes: 1 addition & 1 deletion src/pointerMixin.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export default {
return [
'multiselect__option--disabled',
{ 'multiselect__option--group': selectedGroup.$isLabel }
];
]
}

const group = this.options.find(option => {
Expand Down

0 comments on commit 0444c8c

Please sign in to comment.