Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

eslint-plugin-unicorn

Package Overview
Dependencies
Maintainers
3
Versions
106
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-plugin-unicorn - npm Package Compare versions

Comparing version 2.1.0 to 2.1.1

4

index.js

@@ -23,6 +23,6 @@ 'use strict';

'unicorn/number-literal-case': 'error',
'unicorn/escape-case': 'error',
'unicorn/escape-case': 'off',
'unicorn/no-array-instanceof': 'error',
'unicorn/no-new-buffer': 'error',
'unicorn/no-hex-escape': 'error',
'unicorn/no-hex-escape': 'off',
'unicorn/custom-error-definition': 'error',

@@ -29,0 +29,0 @@ 'unicorn/prefer-starts-ends-with': 'error',

{
"name": "eslint-plugin-unicorn",
"version": "2.1.0",
"version": "2.1.1",
"description": "Various awesome ESLint rules",

@@ -68,6 +68,3 @@ "license": "MIT",

"eslint": ">=3.6"
},
"xo": {
"esnext": true
}
}
'use strict';
// matches someObj.then([FunctionExpression | ArrowFunctionExpression])
// Matches someObj.then([FunctionExpression | ArrowFunctionExpression])
function isLintablePromiseCatch(node) {

@@ -5,0 +5,0 @@ const callee = node.callee;

@@ -12,3 +12,3 @@ 'use strict';

if (res && // It's a eslint-disable comment
!res[2] // but it did not specify any rules
!res[2] // But it did not specify any rules
) {

@@ -15,0 +15,0 @@ context.report({

@@ -6,3 +6,3 @@ 'use strict';

if (node.operator === 'instanceof' && node.right.type === 'Identifier' && node.right.name === 'Array') {
// get the source code and extract the left part
// Get the source code and extract the left part
const arraySourceCode = context.getSourceCode().text.slice(node.left.range[0], node.left.range[1]);

@@ -9,0 +9,0 @@

@@ -0,1 +1,2 @@

/* eslint-disable unicorn/no-hex-escape */
'use strict';

@@ -2,0 +3,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc