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

eslint-plugin-factorial

Package Overview
Dependencies
Maintainers
2
Versions
29
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-plugin-factorial - npm Package Compare versions

Comparing version 2.0.6 to 2.0.7

2

package.json
{
"name": "eslint-plugin-factorial",
"version": "2.0.6",
"version": "2.0.7",
"main": "index.js",

@@ -5,0 +5,0 @@ "dependencies": {

/** @type {import('eslint').Rule.RuleModule} */
module.exports = {
create(context) {
const fileName = context.getFilename()
const reportWarning = (node) => {

@@ -14,3 +16,5 @@ context.report({

JSXOpeningElement: function (node) {
if (node.name.type === 'JSXIdentifier' && node.name.name.match(/^[a-z]/)) {
const isDesignSystem = fileName.includes('design-system')
if (!isDesignSystem && node.name.type === 'JSXIdentifier' && node.name.name.match(/^[a-z]/)) {
reportWarning(node)

@@ -17,0 +21,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