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

@channel.io/eslint-plugin

Package Overview
Dependencies
Maintainers
4
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@channel.io/eslint-plugin - npm Package Compare versions

Comparing version 1.2.0 to 1.2.1

2

index.js

@@ -7,2 +7,3 @@ const hooksDepsElementNewline = require('./rules/hooks-deps-element-newline')

const pascalCaseTypeName = require('./rules/pascal-case-type-name')
const preventDestructuredArgumentCallbackInIntersectionObserver = require('./rules/prevent-destructured-argument-callback-in-intersection-observer')

@@ -17,3 +18,4 @@ module.exports = {

'pascal-case-type-name': pascalCaseTypeName,
'prevent-destructured-argument-callback-in-intersection-observer': preventDestructuredArgumentCallbackInIntersectionObserver,
},
}

2

package.json
{
"name": "@channel.io/eslint-plugin",
"version": "1.2.0",
"version": "1.2.1",
"description": "eslint plugin for channel.io web",

@@ -5,0 +5,0 @@ "author": "Channel Corp.",

@@ -23,9 +23,10 @@ module.exports = {

create(context) {
const sourceCode = context.getSourceCode()
const translateFuncNames = context.options[0]?.translateFuncNames || ['translate']
return {
CallExpression(node) {
const { callee, arguments: args } = node
const { callee } = node
if (
translateFuncNames.includes(callee.name) &&
args[0].type === 'TemplateLiteral'
sourceCode.getTokens(node).some(token => token.type === 'Template')
) {

@@ -32,0 +33,0 @@ context.report({

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