https://github.com/uki00a/deno-lint-plugin-extra-rules
An experimental `deno lint` plugin
https://github.com/uki00a/deno-lint-plugin-extra-rules
Last synced: about 1 year ago
JSON representation
An experimental `deno lint` plugin
- Host: GitHub
- URL: https://github.com/uki00a/deno-lint-plugin-extra-rules
- Owner: uki00a
- License: mit
- Created: 2024-12-29T16:35:42.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-02-15T12:23:58.000Z (about 1 year ago)
- Last Synced: 2025-02-15T13:25:34.818Z (about 1 year ago)
- Language: TypeScript
- Homepage: https://jsr.io/@uki00a/deno-lint-plugin-extra-rules
- Size: 35.2 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# deno-lint-plugin-extra-rules
[](https://jsr.io/@uki00a/deno-lint-plugin-extra-rules)
[](https://github.com/uki00a/deno-lint-plugin-extra-rules/actions)
An experimental `deno lint` plugin inspired by
[eslint-plugin-n](https://github.com/eslint-community/eslint-plugin-n) and
[eslint-plugin-jest](https://github.com/jest-community/eslint-plugin-jest).
## Usage
Add the following to `deno.json`:
```jsonc
{
"lint": {
// NOTE: Replace `$VERSION` with the latest version
"plugins": ["jsr:@uki00a/deno-lint-plugin-extra-rules@$VERSION"]
}
}
```
## Rules
| Name | Description |
| :-------------------------: | :------------------------------------------------------------------: |
| `no-env-to-object` | Disallows the use of `Deno.env.toObject()` |
| `no-test-sanitizers` | Disallows disabling test sanitiziers |
| `prefer-node-assert-strict` | Encourages the use of `node:assert/strict` rather than `node:assert` |
| `valid-expect` | Disallows the use of invalid `expect()` |