summaryrefslogtreecommitdiff
path: root/tools/eslint/lib/rules/eol-last.js
diff options
context:
space:
mode:
Diffstat (limited to 'tools/eslint/lib/rules/eol-last.js')
-rw-r--r--tools/eslint/lib/rules/eol-last.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/eslint/lib/rules/eol-last.js b/tools/eslint/lib/rules/eol-last.js
index 15021dd092..ef15635cb5 100644
--- a/tools/eslint/lib/rules/eol-last.js
+++ b/tools/eslint/lib/rules/eol-last.js
@@ -25,7 +25,7 @@ module.exports = {
]
},
- create: function(context) {
+ create(context) {
//--------------------------------------------------------------------------
// Public
@@ -46,10 +46,10 @@ module.exports = {
// file is not newline-terminated
location.line = src.split(/\n/g).length;
context.report({
- node: node,
+ node,
loc: location,
message: "Newline required at end of file but not found.",
- fix: function(fixer) {
+ fix(fixer) {
return fixer.insertTextAfterRange([0, src.length], linebreak);
}
});