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

eslint-plugin-lit

Package Overview
Dependencies
Maintainers
1
Versions
39
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-plugin-lit - npm Package Compare versions

Comparing version 1.8.2 to 1.8.3

2

lib/rules/no-this-assign-in-render.js

@@ -94,3 +94,3 @@ "use strict";

'MethodDefinition:exit': methodExit,
'AssignmentExpression:has([left] ThisExpression)': (node) => assignmentFound(node)
'AssignmentExpression:has(.left ThisExpression)': (node) => assignmentFound(node)
};

@@ -97,0 +97,0 @@ }

@@ -16,6 +16,8 @@ "use strict";

},
hasSuggestions: true,
schema: [],
messages: {
preferNothing: '`nothing` is preferred over empty templates when you want to render' +
' nothing'
' nothing',
useNothing: 'Replace empty template with `nothing` constant'
}

@@ -34,3 +36,11 @@ },

node,
messageId: 'preferNothing'
messageId: 'preferNothing',
suggest: [
{
messageId: 'useNothing',
fix: (fixer) => {
return fixer.replaceText(node, 'nothing');
}
}
]
});

@@ -37,0 +47,0 @@ }

{
"name": "eslint-plugin-lit",
"version": "1.8.2",
"version": "1.8.3",
"description": "lit-html support for ESLint",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

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