Skip to content

Commit

Permalink
Add test files to ESLint rule overrides
Browse files Browse the repository at this point in the history
  • Loading branch information
rygine committed Aug 16, 2023
1 parent 59d9c6f commit 6040078
Show file tree
Hide file tree
Showing 6 changed files with 1 addition and 6 deletions.
2 changes: 1 addition & 1 deletion packages/eslint-config-xmtp-web/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ module.exports = {
overrides: [
// allow devDependencies in configuration files
{
files: ["*.ts", "*.js", "*.cjs"],
files: ["*.ts", "*.js", "*.cjs", "**/*.test.tsx", "**/*.test.ts"],
rules: {
"import/no-extraneous-dependencies": [
"error",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import {
RemoteAttachmentCodec,
} from "@xmtp/content-type-remote-attachment";
import { Client, ContentTypeText } from "@xmtp/xmtp-js";
// eslint-disable-next-line import/no-extraneous-dependencies
import { Wallet } from "ethers";
import {
getAttachment,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { it, expect, describe, vi, beforeEach } from "vitest";
import { Client, ContentTypeText } from "@xmtp/xmtp-js";
// eslint-disable-next-line import/no-extraneous-dependencies
import { Wallet } from "ethers";
import type { Reaction } from "@xmtp/content-type-reaction";
import {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { it, expect, describe, vi, beforeEach } from "vitest";
import { Client, ContentTypeText } from "@xmtp/xmtp-js";
// eslint-disable-next-line import/no-extraneous-dependencies
import { Wallet } from "ethers";
import type { ReadReceipt } from "@xmtp/content-type-read-receipt";
import {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { it, expect, describe, vi, beforeEach } from "vitest";
import { Client, ContentTypeText } from "@xmtp/xmtp-js";
// eslint-disable-next-line import/no-extraneous-dependencies
import { Wallet } from "ethers";
import type { Reply } from "@xmtp/content-type-reply";
import { ContentTypeReply, ReplyCodec } from "@xmtp/content-type-reply";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { it, expect, describe, vi } from "vitest";
import { Client, ContentTypeText } from "@xmtp/xmtp-js";
// eslint-disable-next-line import/no-extraneous-dependencies
import { Wallet } from "ethers";
import {
ContentTypeAttachment,
Expand Down

0 comments on commit 6040078

Please sign in to comment.