diff --git a/.eslintrc b/.eslintrc new file mode 100644 index 0000000..6cdfd8f --- /dev/null +++ b/.eslintrc @@ -0,0 +1,19 @@ +{ + "env": { + "browser": true, + "node": true + }, + "rules": { + "func-names": 2, + "no-mixed-spaces-and-tabs": 2, + "quotes": [2, "single", "avoid-escape"], + "semi": 2, + "space-after-keywords": 2, + "space-before-function-paren": 2, + + "curly": 0, + "consistent-return": 0, + "no-use-before-define": 0, + "strict": 0 + } +} \ No newline at end of file diff --git a/.jshintrc b/.jshintrc deleted file mode 100644 index 0e924ac..0000000 --- a/.jshintrc +++ /dev/null @@ -1,6 +0,0 @@ -{ - "eqnull": true, - "evil": true, - "unused": true -} - diff --git a/mustache.js b/mustache.js index 344d65b..ac9210c 100644 --- a/mustache.js +++ b/mustache.js @@ -5,52 +5,52 @@ /*global define: false*/ -(function (global, factory) { - if (typeof exports === "object" && exports) { +(function defineMustache (global, factory) { + if (typeof exports === 'object' && exports) { factory(exports); // CommonJS - } else if (typeof define === "function" && define.amd) { + } else if (typeof define === 'function' && define.amd) { define(['exports'], factory); // AMD } else { factory(global.Mustache = {}); //