mirror of
https://github.com/10h30/odin-javascript-exercises.git
synced 2026-07-14 04:06:07 +09:00
remove timer and simon
This commit is contained in:
+32
@@ -0,0 +1,32 @@
|
||||
/**
|
||||
* @fileoverview Rule to flag use of continue statement
|
||||
* @author Borislav Zhivkov
|
||||
*/
|
||||
|
||||
"use strict";
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// Rule Definition
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
module.exports = {
|
||||
meta: {
|
||||
docs: {
|
||||
description: "disallow `continue` statements",
|
||||
category: "Stylistic Issues",
|
||||
recommended: false
|
||||
},
|
||||
|
||||
schema: []
|
||||
},
|
||||
|
||||
create(context) {
|
||||
|
||||
return {
|
||||
ContinueStatement(node) {
|
||||
context.report({ node, message: "Unexpected use of continue statement." });
|
||||
}
|
||||
};
|
||||
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user