mirror of
https://github.com/10h30/odin-javascript-exercises.git
synced 2026-07-15 12:43:19 +09:00
remove timer and simon
This commit is contained in:
+29
@@ -0,0 +1,29 @@
|
||||
/**
|
||||
* @fileoverview Default config options
|
||||
* @author Teddy Katz
|
||||
*/
|
||||
|
||||
"use strict";
|
||||
|
||||
/**
|
||||
* Freezes an object and all its nested properties
|
||||
* @param {Object} obj The object to deeply freeze
|
||||
* @returns {Object} `obj` after freezing it
|
||||
*/
|
||||
function deepFreeze(obj) {
|
||||
if (obj === null || typeof obj !== "object") {
|
||||
return obj;
|
||||
}
|
||||
|
||||
Object.keys(obj).map(key => obj[key]).forEach(deepFreeze);
|
||||
return Object.freeze(obj);
|
||||
}
|
||||
|
||||
module.exports = deepFreeze({
|
||||
env: {},
|
||||
globals: {},
|
||||
rules: {},
|
||||
settings: {},
|
||||
parser: "espree",
|
||||
parserOptions: {}
|
||||
});
|
||||
Reference in New Issue
Block a user