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

eslint-plugin-ecology9

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-plugin-ecology9 - npm Package Compare versions

Comparing version 0.0.8 to 0.0.9

10

lib/rules/enforce-component-ecid.js

@@ -14,2 +14,3 @@

const limitMax = (context.options[0] || 10);
const doFix = (context.options[1] || false);
// const jsxElements = [];

@@ -51,6 +52,8 @@ function checkParentArray(node, limit = 0) {

context.report({
const r = {
node,
message: `Missing "ecId" prop for element${inArray ? ' in array' : ''}, please add parent's ecId${inArray ? ' and different key "diffKey"' : ''}.`,
fix: function(fixer) {
};
if (doFix) {
r.fix = function(fixer) {
return fixer.insertTextAfterRange(

@@ -61,3 +64,4 @@ openingElement.name.range,

}
});
}
context.report(r);
}

@@ -64,0 +68,0 @@

{
"name": "eslint-plugin-ecology9",
"version": "0.0.8",
"version": "0.0.9",
"description": "eslint plugin for weaver ecology 9.",

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