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

@markuplint/create-rule-helper

Package Overview
Dependencies
Maintainers
1
Versions
108
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@markuplint/create-rule-helper - npm Package Compare versions

Comparing version 4.0.0-alpha.4 to 4.0.0-alpha.5

scaffold/.eslintrc

2

lib/create-rule-package.js
import path from 'node:path';
import { CreateRuleHelperError } from './create-rule-helper-error.js';
import glob from './glob.js';
import { glob } from './glob.js';
import { installScaffold } from './install-scaffold.js';

@@ -5,0 +5,0 @@ export async function createRulePackage({ pluginName, ruleName, lang, needTest, }) {

@@ -1,2 +0,1 @@

declare const glob: (pattern: string) => Promise<string[]>;
export default glob;
export declare const glob: (pattern: string) => Promise<string[]>;
import { sep } from 'node:path';
import { glob as origin } from 'glob';
const glob = async (pattern) => {
export const glob = async (pattern) => {
const normalized = pattern.split(sep).join('/');
return await origin(normalized);
};
export default glob;

@@ -7,3 +7,3 @@ import { statSync } from 'node:fs';

import { fsExists } from './fs-exists.js';
import glob from './glob.js';
import { glob } from './glob.js';
// eslint-disable-next-line import/no-named-as-default-member

@@ -10,0 +10,0 @@ const { transpile, ScriptTarget } = tsc;

{
"name": "@markuplint/create-rule-helper",
"version": "4.0.0-alpha.4",
"version": "4.0.0-alpha.5",
"description": "Create rule helper",

@@ -25,3 +25,3 @@ "repository": "git@github.com:markuplint/markuplint.git",

"dependencies": {
"@markuplint/ml-core": "4.0.0-alpha.4",
"@markuplint/ml-core": "4.0.0-alpha.5",
"glob": "^10.3.6",

@@ -36,3 +36,3 @@ "prettier": "^3.0.3",

},
"gitHead": "991b3aef77fde42c79343ee8c807257a35c589d7"
"gitHead": "0c3e4690662edf1765bcc4b6411ec5507c1e2ea3"
}

@@ -10,3 +10,3 @@ import { createRule } from '@markuplint/ml-core';

const raw = el.raw.trim();
if (/./i.test(raw)) {
if (/./.test(raw)) {
report({

@@ -21,3 +21,3 @@ scope: el,

await document.walkOn('Attr', attr => {
if (/./i.test(attr.name)) {
if (/./.test(attr.name)) {
report({

@@ -24,0 +24,0 @@ scope: attr,

Sorry, the diff of this file is not supported yet

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