Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chore: fix playground in rule docs #2046

Merged
merged 1 commit into from Nov 23, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/.vitepress/build-system/build.ts
Expand Up @@ -16,7 +16,7 @@ const dirname = path.dirname(
build(
path.join(dirname, './src/eslint.mjs'),
path.join(dirname, './shim/eslint.mjs'),
['path', 'assert', 'util']
['path', 'assert', 'util', 'esquery']
)
build(
path.join(dirname, '../../../node_modules/assert'),
Expand Down
5 changes: 5 additions & 0 deletions docs/.vitepress/build-system/shim/esquery.mjs
@@ -0,0 +1,5 @@
import esquery from '../../../../node_modules/esquery/dist/esquery.esm.js'

export const { parse, match, traverse, matches, query } = esquery

export { default } from '../../../../node_modules/esquery/dist/esquery.esm.js'
1 change: 1 addition & 0 deletions docs/.vitepress/config.ts
Expand Up @@ -154,6 +154,7 @@ export default defineConfig({
path: path.join(dirname, './build-system/shim/path.mjs'),

tslib: path.join(dirname, '../../node_modules/tslib/tslib.es6.js'),
esquery: path.join(dirname, './build-system/shim/esquery.mjs'),
globby: path.join(dirname, './build-system/shim/globby.mjs')
}
},
Expand Down