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