@markuplint/create-rule-helper
Advanced tools
Comparing version 4.0.0-alpha.4 to 4.0.0-alpha.5
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
27479
44
719
+ Added@markuplint/config-presets@4.0.0-alpha.5(transitive)
+ Added@markuplint/html-parser@4.0.0-alpha.5(transitive)
+ Added@markuplint/html-spec@4.0.0-alpha.5(transitive)
+ Added@markuplint/i18n@4.0.0-alpha.5(transitive)
+ Added@markuplint/ml-ast@4.0.0-alpha.5(transitive)
+ Added@markuplint/ml-config@4.0.0-alpha.5(transitive)
+ Added@markuplint/ml-core@4.0.0-alpha.5(transitive)
+ Added@markuplint/ml-spec@4.0.0-alpha.5(transitive)
+ Added@markuplint/parser-utils@4.0.0-alpha.5(transitive)
+ Added@markuplint/selector@4.0.0-alpha.5(transitive)
+ Added@markuplint/shared@4.0.0-alpha.5(transitive)
+ Added@markuplint/types@4.0.0-alpha.5(transitive)
+ Addedacorn-jsx@5.3.2(transitive)
+ Addedeslint-visitor-keys@3.4.3(transitive)
+ Addedespree@9.6.1(transitive)
- Removed@markuplint/config-presets@4.0.0-alpha.4(transitive)
- Removed@markuplint/html-parser@4.0.0-alpha.4(transitive)
- Removed@markuplint/html-spec@4.0.0-alpha.4(transitive)
- Removed@markuplint/i18n@4.0.0-alpha.4(transitive)
- Removed@markuplint/ml-ast@4.0.0-alpha.4(transitive)
- Removed@markuplint/ml-config@4.0.0-alpha.4(transitive)
- Removed@markuplint/ml-core@4.0.0-alpha.4(transitive)
- Removed@markuplint/ml-spec@4.0.0-alpha.4(transitive)
- Removed@markuplint/parser-utils@4.0.0-alpha.4(transitive)
- Removed@markuplint/selector@4.0.0-alpha.4(transitive)
- Removed@markuplint/shared@4.0.0-alpha.4(transitive)
- Removed@markuplint/types@4.0.0-alpha.4(transitive)