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

eslint-plugin-tidal-extras

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-plugin-tidal-extras - npm Package Compare versions

Comparing version 1.0.2 to 1.0.3

test/no-get-artist.js

11

package.json
{
"name": "eslint-plugin-tidal-extras",
"version": "1.0.2",
"version": "1.0.3",
"description": "",
"main": "index.js",
"author": "Jeremy Karlsson <jeremy.karlsson@tidal.com>",
"license": "MIT"
"license": "MIT",
"scripts": {
"test": "mocha test"
},
"devDependencies": {
"eslint": "^3.0",
"mocha": "^2.3.4"
}
}
module.exports = {
create: function (context) {
return {
MemberExpression (node) {
if (node.property.name === 'get' && node.property.value === 'artist') {
ExpressionStatement (node) {
const isCallExpression = node.expression.type === 'CallExpression';
const isMemberExperssion = node.expression.callee.type === 'MemberExpression';
const callingGet = node.expression.callee.property.name === 'get';
const callingWithArist = node.expression.arguments[0].value === 'artist';
if (callingGet && callingWithArist) {
context.report(node, 'Don\'t use get(\'artist\'), it\'s deprecated. Use helpers.getMainArtist() instead.');

@@ -7,0 +14,0 @@ }

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