@maniascript/mslint
Version:
ManiaScript linter
16 lines (15 loc) • 404 B
JavaScript
import {} from '../linter/rule.js';
export const noSleep = {
meta: {
id: 'no-sleep',
description: 'Forbid the use of the sleep() function',
recommended: false
},
create(context) {
return {
'SleepStatement:exit': (node) => {
context.report(node, 'The use of the \'sleep()\' function is forbidden');
}
};
}
};