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

eslint-plugin-testing-library

Package Overview
Dependencies
Maintainers
1
Versions
164
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-plugin-testing-library - npm Package Compare versions

Comparing version 1.0.0 to 1.1.1

21

lib/rules/no-debug.js

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

11

package.json
{
"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": {

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