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

eslint-plugin-spruce

Package Overview
Dependencies
Maintainers
1
Versions
964
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-plugin-spruce - npm Package Compare versions

Comparing version 8.13.1-canary.18 to 8.13.1-canary.19

22

index.js
const rules = [
{ method: 'query', option: 'query', suffix: 'QueryString' },
{ method: 'mutate', option: 'mutation', suffix: 'MutationString' }
{
method: 'query',
option: 'query',
suffix: 'QueryString',
allowedParents: ['gqlClient']
},
{
method: 'mutate',
option: 'mutation',
suffix: 'MutationString',
allowedParents: ['gqlClient']
}
]

@@ -13,3 +23,9 @@

rules.forEach(rule => {
if (node.callee.name === rule.method) {
if (
node.callee.name === rule.method ||
(node.callee.property &&
node.callee.property.name === rule.method &&
node.callee.object &&
rule.allowedParents.indexOf(node.callee.object.name) >= 0)
) {
if (node.arguments[0].type !== 'ObjectExpression') {

@@ -16,0 +32,0 @@ return context.report(

4

package.json

@@ -6,3 +6,3 @@ {

},
"version": "8.13.1-canary.18+3a16915e",
"version": "8.13.1-canary.19+b2c450e4",
"description": "ESLint plugin for Spruce Javascript projects",

@@ -21,3 +21,3 @@ "author": "George Pantazis <gcpantazis@gmail.com>",

},
"gitHead": "3a16915e3004096f2b88e5862afda8935ffcec06"
"gitHead": "b2c450e4a527819264903a5cc6f30302a7d32ab1"
}
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