Lint fixes

This commit is contained in:
Scott Nonnenberg 2019-04-10 12:14:32 -07:00
parent 851c1a0e47
commit 5a50786e7a
2 changed files with 22 additions and 7 deletions

View file

@ -288,13 +288,12 @@ const contextMenu = require('electron-context-menu');
contextMenu({
showInspectElement: false,
shouldShowMenu: (event, params) => {
if(!params.isEditable && params.mediaType === 'none' && ( params.linkURL.length !== 0 || params.selectionText.length !== 0 )) {
return params.linkURL || params.selectionText;
}
return false;
},
shouldShowMenu: (event, params) =>
Boolean(
!params.isEditable &&
params.mediaType === 'none' &&
(params.linkURL || params.selectionText)
),
});
// We pull this in last, because the native module involved appears to be sensitive to

View file

@ -2878,6 +2878,22 @@
"reasonCategory": "falseMatch",
"updated": "2018-09-19T18:13:29.628Z"
},
{
"rule": "jQuery-prepend(",
"path": "node_modules/electron-context-menu/index.js",
"line": "\t\t\tconst result = options.prepend(props, win);",
"lineNumber": 122,
"reasonCategory": "falseMatch",
"updated": "2019-04-10T19:08:25.356Z"
},
{
"rule": "jQuery-append(",
"path": "node_modules/electron-context-menu/index.js",
"line": "\t\t\tconst result = options.append(props, win);",
"lineNumber": 130,
"reasonCategory": "falseMatch",
"updated": "2019-04-10T19:08:25.356Z"
},
{
"rule": "eval",
"path": "node_modules/electron/electron.d.ts",