Skip to content

Commit

Permalink
skip eslint for typescript code block
Browse files Browse the repository at this point in the history
  • Loading branch information
chenxsan committed Sep 5, 2020
1 parent 5fec6ac commit e7a2c6d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/content/api/module-methods.md
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,8 @@ The goal of CommonJS is to specify an ecosystem for JavaScript outside the brows

### `require`

<!-- eslint-skip -->

``` javascript
require(dependency: String);
```
Expand All @@ -182,6 +184,8 @@ W> Using it asynchronously may not have the expected effect.

### `require.resolve`

<!-- eslint-skip -->

``` javascript
require.resolve(dependency: String);
```
Expand Down
4 changes: 4 additions & 0 deletions src/content/plugins/context-replacement-plugin.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ The `moment/locale` context is restricted to files matching `/de|fr|hu/`. Thus o

## Content Callback

<!-- eslint-skip -->

```javascript
new webpack.ContextReplacementPlugin(
resourceRegExp: RegExp,
Expand Down Expand Up @@ -72,6 +74,8 @@ new webpack.ContextReplacementPlugin(/^\.\/locale$/, (context) => {

The `newContentResource` and `newContentCreateContextMap` parameters are also available:

<!-- eslint-skip -->

```javascript
new webpack.ContextReplacementPlugin(
resourceRegExp: RegExp,
Expand Down

0 comments on commit e7a2c6d

Please sign in to comment.