Skip to content

Commit

Permalink
Add eslint no-console rule
Browse files Browse the repository at this point in the history
  • Loading branch information
sonnyp committed Jan 23, 2025
1 parent 20291dc commit 4098330
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ Do you need help with working with xmpp.js? Please reach out to our community by
## Built with xmpp.js

- [WorkAdventure](https://workadventu.re/)
- [Simplo](https://simplo.app/?lang=en)
- [Mustang](https://www.mustang.im/)
- [Crypho](https://www.crypho.com/)
- [MeshCentral](https://meshcentral.com/)
- [openHAB](https://www.openhab.org/)
Expand Down
1 change: 1 addition & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ export default [
"prefer-arrow-callback": ["error", { allowNamedFunctions: true }],
"no-redeclare": ["error", { builtinGlobals: false }],
"no-unused-vars": ["error", { argsIgnorePattern: "^_" }],
"no-console": ["error"],

// node
// https://github.com/eslint-community/eslint-plugin-n/
Expand Down
3 changes: 2 additions & 1 deletion packages/client/example.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/* eslint-disable no-console, n/no-extraneous-import*/

import { client, xml } from "@xmpp/client";
// eslint-disable-next-line n/no-extraneous-import
import debug from "@xmpp/debug";

// Insecure!
Expand Down
3 changes: 2 additions & 1 deletion packages/component/example.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/* eslint-disable no-console, n/no-extraneous-import*/

import { component, xml } from "@xmpp/component";
// eslint-disable-next-line n/no-extraneous-import
import debug from "@xmpp/debug";

const xmpp = component({
Expand Down
2 changes: 2 additions & 0 deletions packages/resolve/example.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
/* eslint-disable no-console */

import { resolve } from "@xmpp/resolve";

const result = await resolve("jabberfr.org");
Expand Down
1 change: 1 addition & 0 deletions server/ctl.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/usr/bin/env node
/* eslint-disable no-console */

import server from "./index.js";

Expand Down
3 changes: 1 addition & 2 deletions test/bundlesize.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
/* eslint-disable unicorn/no-process-exit */
/* eslint-disable n/no-process-exit */
/* eslint-disable no-console, unicorn/no-process-exit, n/no-process-exit */

import zlib from "node:zlib";
import { readFile } from "node:fs/promises";
Expand Down

0 comments on commit 4098330

Please sign in to comment.