eslint-plugin-testing-library
Advanced tools
Comparing version 1.0.0 to 1.1.1
@@ -18,3 +18,12 @@ 'use strict'; | ||
fixable: null, | ||
schema: [], | ||
schema: [ | ||
{ | ||
type: 'object', | ||
properties: { | ||
renderFunctions: { | ||
type: 'array', | ||
}, | ||
}, | ||
}, | ||
], | ||
}, | ||
@@ -25,2 +34,8 @@ | ||
const renderVariableDeclarators = []; | ||
let renderFunctions = []; | ||
if (context.options && context.options.length > 0) { | ||
[{ renderFunctions }] = context.options; | ||
} | ||
return { | ||
@@ -31,3 +46,5 @@ VariableDeclarator(node) { | ||
node.init.callee && | ||
node.init.callee.name === 'render' | ||
['render', ...renderFunctions].some( | ||
name => name === node.init.callee.name | ||
) | ||
) { | ||
@@ -34,0 +51,0 @@ if ( |
{ | ||
"name": "eslint-plugin-testing-library", | ||
"version": "1.0.0", | ||
"version": "1.1.1", | ||
"description": "ESLint rules for Testing Library", | ||
@@ -20,2 +20,5 @@ "keywords": [ | ||
"homepage": "https://github.com/Belco90/eslint-plugin-testing-library", | ||
"bugs": { | ||
"url": "https://github.com/Belco90/eslint-plugin-testing-library/issues" | ||
}, | ||
"main": "lib/index.js", | ||
@@ -29,3 +32,4 @@ "files": [ | ||
"format": "prettier --write README.md {lib,docs,tests}/**/*.{js,md}", | ||
"test": "jest" | ||
"test": "jest", | ||
"semantic-release": "semantic-release" | ||
}, | ||
@@ -49,3 +53,4 @@ "dependencies": {}, | ||
"lint-staged": "^9.2.5", | ||
"prettier": "1.18.2" | ||
"prettier": "1.18.2", | ||
"semantic-release": "^15.13.24" | ||
}, | ||
@@ -52,0 +57,0 @@ "peerDependencies": { |
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
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
20039
456
0
17