eslint-plugin-extended
Advanced tools
Comparing version
@@ -38,3 +38,3 @@ 'use strict'; | ||
/* eslint-disable consistent-return */ | ||
return context.report(node, 'Invalid error name.'); | ||
return context.report(node, 'Must not contain err.'); | ||
/* eslint-enable consistent-return */ | ||
@@ -45,3 +45,3 @@ } | ||
/* eslint-disable consistent-return */ | ||
return context.report(node, 'Invalid error name.'); | ||
return context.report(node, 'Must start with err.'); | ||
/* eslint-enable consistent-return */ | ||
@@ -52,3 +52,3 @@ } | ||
/* eslint-disable consistent-return */ | ||
return context.report(node, 'Invalid error name.'); | ||
return context.report(node, 'Must end with err.'); | ||
/* eslint-enable consistent-return */ | ||
@@ -55,0 +55,0 @@ } |
{ | ||
"name": "eslint-plugin-extended", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"description": "eslint-plugin-extended is a set of rules for ESLint.", | ||
@@ -21,3 +21,3 @@ "contributors": [ | ||
"grunt": "0.4.5", | ||
"tourism": "0.20.2" | ||
"tourism": "0.20.3" | ||
}, | ||
@@ -24,0 +24,0 @@ "peerDependencies": { |
@@ -32,6 +32,7 @@ 'use strict'; | ||
invalid: [ | ||
{ code: '(function (barErr) {})()', errors: [{ message: 'Invalid error name.' }]}, | ||
{ code: '(function (barErr) {})()', errors: [{ message: 'Invalid error name.' }], options: [ 'prefix' ]}, | ||
{ code: '(function (errBar) {})()', errors: [{ message: 'Invalid error name.' }], options: [ 'suffix' ]} | ||
{ code: '(function (barErr) {})()', errors: [{ message: 'Must start with err.' }]}, | ||
{ code: '(function (barErr) {})()', errors: [{ message: 'Must start with err.' }], options: [ 'prefix' ]}, | ||
{ code: '(function (errBar) {})()', errors: [{ message: 'Must end with err.' }], options: [ 'suffix' ]}, | ||
{ code: '(function (fooErrBar) {})()', errors: [{ message: 'Must not contain err.' }], options: [ 'prefix' ]} | ||
] | ||
}); |
Sorry, the diff of this file is not supported yet
6948
1.82%107
0.94%