Skip to content
This repository was archived by the owner on Jul 16, 2026. It is now read-only.

Commit 60ab999

Browse files
committed
Update README
1 parent c238225 commit 60ab999

1 file changed

Lines changed: 10 additions & 6 deletions

File tree

README.md

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,17 @@ npm i --save-dev @protontech/eslint-plugin-enforce-uint8array-arraybuffer
1515

1616
Add the plugin and rule to your ESLint config:
1717

18-
```jsonc
19-
{
20-
"plugins": ["@protontech/enforce-uint8array-arraybuffer"],
21-
"rules": {
22-
"@protontech/enforce-uint8array-arraybuffer/enforce-uint8array-arraybuffer": "error"
18+
```js
19+
import pluginEnforceUint8ArrayArrayBuffer from '@protontech/eslint-plugin-enforce-uint8array-arraybuffer';
20+
21+
export default defineConfig({
22+
plugins: {
23+
'@protontech/enforce-uint8array-arraybuffer': pluginEnforceUint8ArrayArrayBuffer,
24+
},
25+
rules: {
26+
'@protontech/enforce-uint8array-arraybuffer/enforce-uint8array-arraybuffer': 'error',
2327
}
24-
}
28+
})
2529
```
2630

2731
## Example behavior

0 commit comments

Comments
 (0)