Permalink
Browse files

Remove trailing whitespace, add eslint rule

  • Loading branch information...
1 parent 5355a2c commit 6c2663e347ddd1f8d65a11533e11d1f7ebe8d6ef @RyanZim RyanZim committed with RyanZim Sep 13, 2016
Showing with 12 additions and 12 deletions.
  1. +1 −0 .eslintrc.json
  2. +7 −8 docs/jsdoc/options.jsdoc
  3. +2 −2 docs/syntax.md
  4. +2 −2 lib/ejs.js
View
@@ -10,6 +10,7 @@
"error",
"unix"
],
+ "no-trailing-spaces": 2,
"indent": [
"error",
2
@@ -24,22 +24,22 @@
* line).
*
* @property {Boolean} [client=false]
- * Whether or not to compile a {@link ClientFunction} that can be rendered
- * in the browser without depending on ejs.js. Otherwise, a {@link TemplateFunction}
+ * Whether or not to compile a {@link ClientFunction} that can be rendered
+ * in the browser without depending on ejs.js. Otherwise, a {@link TemplateFunction}
* will be compiled.
- *
+ *
* @property {EscapeCallback} [escape={@link module:utils.escapeXML}]
* The escaping function used with `<%=` construct. It is used in rendering
* and is `.toString()`ed in the generation of client functions.
*
* @property {String} [filename=undefined]
- * The filename of the template. Required for inclusion and caching unless
+ * The filename of the template. Required for inclusion and caching unless
* you are using {@link module:ejs.renderFile}. Also used for error reporting.
- *
+ *
* @property {String} [root=undefined]
- * The path to the project root. When this is set, absolute paths for includes
+ * The path to the project root. When this is set, absolute paths for includes
* (/filename.ejs) will be relative to the project root.
- *
+ *
* @property {String} [delimiter='%']
* The delimiter used in template compilation.
*
@@ -60,4 +60,3 @@
* @static
* @global
*/
-
View
@@ -42,8 +42,8 @@ Delimiters
The *starting* and *closing* tags contain a special string called the
delimiter. In this document, all tags are shown using the `%` delimiter, which
-is the default. You can, however, change that to your liking. See
-https://github.com/mde/ejs#custom-delimiters for more information on how to
+is the default. You can, however, change that to your liking. See
+https://github.com/mde/ejs#custom-delimiters for more information on how to
change it.
Starting tags
View
@@ -104,7 +104,7 @@ exports.resolveInclude = function(name, filename, isDir) {
/**
* Get the path to the included file by Options
- *
+ *
* @param {String} path specified path
* @param {Options} options compilation options
* @return {String}
@@ -118,7 +118,7 @@ function getIncludePath(path, options){
if (!options.filename) {
throw new Error('`include` use relative path requires the \'filename\' option.');
}
- includePath = exports.resolveInclude(path, options.filename);
+ includePath = exports.resolveInclude(path, options.filename);
}
return includePath;
}

0 comments on commit 6c2663e

Please sign in to comment.