Eric Chen

Results 84 comments of Eric Chen

Maybe we need something like `eslint-import-resolver-query` ?

How about this pattern: ```js // page-1.js define everything in same file export const route = { path: '/page-1', ...other }; export function Component(){ return h('div') } ``` ```js //...

https://github.com/sysgears/webpack-virtual-modules/issues/76 maybe relate, turn off cache might work

I create https://github.com/nice-move/eslint-plugin-html to do this, not been published yet. I'm a rookie at making `Eslint plugins`, please send me feedback and code reviews.

@brettz9 I want to send a PR to https://github.com/BenoitZugmeyer/eslint-plugin-html, but it's difficult for me. let's see if anyone can help? I try to read the code of `eslint-plugin-html`, it's really...

`webpack-chain` does not always follow all the options of `webpack`, but `config.optimization` is [ChainedMap](https://github.com/neutrinojs/webpack-chain#chainedmap). You can using this: ```js config.optimization.set('chunkIds', yourOptions); ```

How about something like this: https://node-tap.org/docs/api/snapshot-testing/#even-more-advanced-customization-warning-footguns-ahead Riskier but more powerful.

I created [remark-kroki](https://github.com/show-docs/remark-kroki) a few years ago to render many diagrams in Docusaurus. It using [Kroki.io](https://kroki.io/) (an open-source online service) to render D2 diagrams. not the local d2 installation. See:...

```js import { DownloadOutlined } from '@ant-design/icons'; console.log(DownloadOutlined); ``` 用 Node.js 18 跑单元测试: `@ant-design/icons` v5.1.4 支持 ESM 引用: ```log { '$$typeof': Symbol(react.forward_ref), render: [Function: DownloadOutlined] { displayName: 'DownloadOutlined' } }...

This is what I doing before this feature landed: ```yaml jobs: steps: - name: Checkout uses: actions/checkout@v3 - name: Detect package manager shell: bash run: node -p "'PACKAGE_MANAGER='+require('./package.json').packageManager?.split?.('@')?.[0]" >> "$GITHUB_ENV"...