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

eslint-plugin-demofortutorial

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-plugin-demofortutorial - npm Package Compare versions

Comparing version 0.0.0 to 0.0.1

2

lib/index.js

@@ -14,3 +14,3 @@ /**

rules: {
'noconsoletime/no-console-time': 2, // 可以省略 eslint-plugin 前缀
'demofortutorial/no-console-time': 2, // 可以省略 eslint-plugin 前缀
},

@@ -17,0 +17,0 @@ },

@@ -21,3 +21,6 @@ /**

// fill in your schema
]
],
messages: {
avoidMethod: "console method '{{name}}' is forbidden.",
},
},

@@ -27,3 +30,4 @@

return {
'CallExpression MemberExpression': (node) => {
'CallExpression MemberExpression': (node) => { // 键名为ast中选择器名
// 如果在ast中满足以下条件,就用 context.report() 进行对外警告⚠️
if (node.property.name === 'time' && node.object.name === 'console') {

@@ -30,0 +34,0 @@ context.report({

{
"name": "eslint-plugin-demofortutorial",
"version": "0.0.0",
"version": "0.0.1",
"description": "no console time",

@@ -5,0 +5,0 @@ "keywords": [

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