Skip to content

Commit

Permalink
fix: cjs docs
Browse files Browse the repository at this point in the history
  • Loading branch information
stabback committed Oct 25, 2024
1 parent 9aa2d3d commit d85d5ff
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,25 +30,25 @@ You can use this plugin with pre-set configurations, or you can configure it you
#### Node & Mocha

```js
import eslintPlugin6river from 'eslint-plugin-6river';
const eslintPlugin6river = require('eslint-plugin-6river');

export default [...eslintPlugin6river['node-mocha']];
module.exports = [...eslintPlugin6river['node-mocha']];
```

#### Browser & Jest

```js
import eslintPlugin6river from 'eslint-plugin-6river';
const eslintPlugin6river = require('eslint-plugin-6river');

export default [...eslintPlugin6river['browser-jest']];
module.exports = [...eslintPlugin6river['browser-jest']];
```

### Custom Configuration

```js
import eslintPlugin6river from 'eslint-plugin-6river';
const eslintPlugin6river = require('eslint-plugin-6river');

export default [
module.exports = [
{
plugins: {
'6river': eslintPlugin6river,
Expand Down

0 comments on commit d85d5ff

Please sign in to comment.