juliancataldo / retext-case-police Goto Github PK
View Code? Open in Web Editor NEWA `retext` plugin for checking popular names casing. Example: ⚠️ `github` → ✅ `GitHub`
License: ISC License
A `retext` plugin for checking popular names casing. Example: ⚠️ `github` → ✅ `GitHub`
License: ISC License
Hey, this is working but for some reason I had to include it as the last plugin in my config. Here's my config if you're interested in fixing the issue: https://gitlab.com/megabyte-labs/npm/configs/remark-preset-strict-lint/-/blob/master/src/main.ts
case-police
(using node[0]
instead of node[0].children[0]
if (nodes[0].type === 'WordNode')
makes ESLint happy (no behavior change)
error Named export 'search' not found. The requested module 'nlcst-search' is a CommonJS module, which may not support all module.exports as named exports.
CommonJS modules can always be imported via the default export, for example using:
import pkg from 'nlcst-search';
const { search } = pkg;
nlcst-search and nlcst-to-string are 100% ESM, and have "type": "module"
So why
import { search } from 'nlcst-search';
Works in dev but not on build? Rollup specific it seems. Or maybe Astro? (less likely)
Removing accolades fixes build, but breaks dev (lib silently failing).
Playing whack-a-mole.
Also tried all CJS import method alternatives: import * as search from 'nlcst-search';
, const { search } = pkg;
etc.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.