New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

eslint-plugin-extended

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-plugin-extended - npm Package Compare versions

Comparing version

to
0.1.1

6

lib/consistent-err-names.js

@@ -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