eslint-plugin-unicorn
Advanced tools
Comparing version 2.1.0 to 2.1.1
@@ -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 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
25735
721