You've already forked joplin
mirror of
https://github.com/laurent22/joplin.git
synced 2025-08-10 22:11:50 +02:00
20 lines
558 B
JavaScript
20 lines
558 B
JavaScript
module.exports = {
|
|
'overrides': [
|
|
{
|
|
files: ['**/*.tsx', '**/*.js', '**/*.ts'],
|
|
rules: {
|
|
'no-restricted-globals': ['error',
|
|
...['alert', 'confirm', 'prompt'].map(alertLikeFunction => ({
|
|
'name': alertLikeFunction,
|
|
'message': [
|
|
'Avoid using alert()/confirm()/prompt() in the desktop app -- they break keyboard input on some systems.',
|
|
'Prefer shim.showMessageBox and shim.showConfirmationDialog.',
|
|
'See https://github.com/electron/electron/issues/19977.',
|
|
].join(' '),
|
|
})),
|
|
],
|
|
},
|
|
},
|
|
],
|
|
};
|