Skip to content
This repository has been archived by the owner on Jul 5, 2024. It is now read-only.

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
KATT committed Oct 4, 2023
1 parent 3fd99d8 commit 8a0ff3e
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 10 deletions.
7 changes: 6 additions & 1 deletion .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ module.exports = {
extends: ["plugin:markdown/recommended"],
files: ["**/*.md"],
processor: "markdown/markdown",
rules: {
"eslint-comments/disable-enable-pair": "off",
},
},
{
extends: [
Expand Down Expand Up @@ -58,6 +61,7 @@ module.exports = {
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-unsafe-member-access": "off",
"deprecation/deprecation": "error",
"eslint-comments/disable-enable-pair": "off",
},
},
{
Expand Down Expand Up @@ -121,7 +125,8 @@ module.exports = {
rules: {
// These off/less-strict-by-default rules work well for this repo and we like them on.

"@typescript-eslint/no-unused-vars": ["error", { caughtErrors: "all" }],
"@typescript-eslint/no-unused-vars": "off",
"eslint-comments/disable-enable-pair": "off",
"no-only-tests/no-only-tests": "error",

// These on-by-default rules don't work well for this repo and we like them off.
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ Serialize exactly what you want; no more, no less.
### Example

```ts
/* eslint-disable eslint-comments/disable-enable-pair, @typescript-eslint/no-unused-vars, n/no-missing-import */
/* eslint-disable @typescript-eslint/no-unused-vars, n/no-missing-import */

import {
// Create serializer / deserializer
Expand Down Expand Up @@ -113,7 +113,7 @@ type Obj = typeof obj;
> See test reference in [`./src/extend/temporal.test.ts`](./src/extend/temporal.test.ts)
```ts
/* eslint-disable eslint-comments/disable-enable-pair, @typescript-eslint/no-unused-vars, n/no-missing-import, n/no-unpublished-import */
/* eslint-disable @typescript-eslint/no-unused-vars, n/no-missing-import, n/no-unpublished-import */
import { Temporal } from "@js-temporal/polyfill";
import { TsonType, createTson } from "tupleson";

Expand Down Expand Up @@ -141,7 +141,7 @@ const tson = createTson({
> See test reference in [`./src/extend/decimal.test.ts`](./src/extend/decimal.test.ts)
```ts
/* eslint-disable eslint-comments/disable-enable-pair, @typescript-eslint/no-unused-vars, n/no-missing-import, n/no-unpublished-import */
/* eslint-disable @typescript-eslint/no-unused-vars, n/no-missing-import, n/no-unpublished-import */
import { Decimal } from "decimal.js";

const decimalJs: TsonType<Decimal, string> = {
Expand Down
1 change: 0 additions & 1 deletion src/async/deserializeAsync.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* eslint-disable eslint-comments/disable-enable-pair */
/* eslint-disable @typescript-eslint/no-unused-vars */
/* eslint-disable @typescript-eslint/no-unsafe-argument */
import { TsonError } from "../errors.js";
Expand Down
2 changes: 0 additions & 2 deletions src/sync/createTson.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
/* eslint-disable eslint-comments/disable-enable-pair */

import { TsonOptions } from "../types.js";
import { createTsonDeserialize, createTsonParser } from "./deserialize.js";
import { createTsonSerialize, createTsonStringify } from "./serialize.js";
Expand Down
2 changes: 0 additions & 2 deletions src/sync/deserialize.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
/* eslint-disable eslint-comments/disable-enable-pair */

import { isTsonTuple } from "../internals/isTsonTuple.js";
import { mapOrReturn } from "../internals/mapOrReturn.js";
import {
Expand Down
1 change: 0 additions & 1 deletion src/sync/serialize.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* eslint-disable eslint-comments/disable-enable-pair */
import { TsonCircularReferenceError } from "../errors.js";
import { GetNonce, getNonce } from "../internals/getNonce.js";
import { mapOrReturn } from "../internals/mapOrReturn.js";
Expand Down

0 comments on commit 8a0ff3e

Please sign in to comment.