Skip to content

Commit 4098330

Browse files
committed
Add eslint no-console rule
1 parent 20291dc commit 4098330

File tree

7 files changed

+10
-5
lines changed

7 files changed

+10
-5
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ Do you need help with working with xmpp.js? Please reach out to our community by
4646
## Built with xmpp.js
4747

4848
- [WorkAdventure](https://workadventu.re/)
49-
- [Simplo](https://simplo.app/?lang=en)
49+
- [Mustang](https://www.mustang.im/)
5050
- [Crypho](https://www.crypho.com/)
5151
- [MeshCentral](https://meshcentral.com/)
5252
- [openHAB](https://www.openhab.org/)

eslint.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ export default [
5454
"prefer-arrow-callback": ["error", { allowNamedFunctions: true }],
5555
"no-redeclare": ["error", { builtinGlobals: false }],
5656
"no-unused-vars": ["error", { argsIgnorePattern: "^_" }],
57+
"no-console": ["error"],
5758

5859
// node
5960
// https://github.com/eslint-community/eslint-plugin-n/

packages/client/example.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1+
/* eslint-disable no-console, n/no-extraneous-import*/
2+
13
import { client, xml } from "@xmpp/client";
2-
// eslint-disable-next-line n/no-extraneous-import
34
import debug from "@xmpp/debug";
45

56
// Insecure!

packages/component/example.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1+
/* eslint-disable no-console, n/no-extraneous-import*/
2+
13
import { component, xml } from "@xmpp/component";
2-
// eslint-disable-next-line n/no-extraneous-import
34
import debug from "@xmpp/debug";
45

56
const xmpp = component({

packages/resolve/example.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
/* eslint-disable no-console */
2+
13
import { resolve } from "@xmpp/resolve";
24

35
const result = await resolve("jabberfr.org");

server/ctl.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#!/usr/bin/env node
2+
/* eslint-disable no-console */
23

34
import server from "./index.js";
45

test/bundlesize.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
/* eslint-disable unicorn/no-process-exit */
2-
/* eslint-disable n/no-process-exit */
1+
/* eslint-disable no-console, unicorn/no-process-exit, n/no-process-exit */
32

43
import zlib from "node:zlib";
54
import { readFile } from "node:fs/promises";

0 commit comments

Comments
 (0)