Skip to content

Commit

Permalink
examples: Fix import/no-useless-path-segments errors.
Browse files Browse the repository at this point in the history
Signed-off-by: Anders Kaseorg <[email protected]>
  • Loading branch information
andersk committed Dec 10, 2020
1 parent aa8fffe commit 3420570
Show file tree
Hide file tree
Showing 16 changed files with 16 additions and 16 deletions.
2 changes: 1 addition & 1 deletion examples/accounts.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const zulip = require('../lib/');
const zulip = require('../lib');

zulip({
username: process.env.ZULIP_USERNAME,
Expand Down
2 changes: 1 addition & 1 deletion examples/call_endpoint.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const zulip = require('../lib/');
const zulip = require('../lib');

const config = {
username: process.env.ZULIP_USERNAME,
Expand Down
2 changes: 1 addition & 1 deletion examples/emojis.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const zulip = require('../lib/');
const zulip = require('../lib');

const config = {
username: process.env.ZULIP_USERNAME,
Expand Down
2 changes: 1 addition & 1 deletion examples/events.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const zulip = require('../lib/');
const zulip = require('../lib');

const config = {
username: process.env.ZULIP_USERNAME,
Expand Down
2 changes: 1 addition & 1 deletion examples/filters.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const zulip = require('../lib/');
const zulip = require('../lib');

const config = {
username: process.env.ZULIP_USERNAME,
Expand Down
2 changes: 1 addition & 1 deletion examples/messages.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const zulip = require('../lib/');
const zulip = require('../lib');

const stream = 'test-bot';

Expand Down
2 changes: 1 addition & 1 deletion examples/private-messages.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const zulip = require('../lib/');
const zulip = require('../lib');

const sendParams = {
to: process.env.ZULIP_TEST_USERNAME,
Expand Down
2 changes: 1 addition & 1 deletion examples/queues.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const zulip = require('../lib/');
const zulip = require('../lib');

const config = {
username: process.env.ZULIP_USERNAME,
Expand Down
2 changes: 1 addition & 1 deletion examples/reactions.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const zulip = require('../lib/');
const zulip = require('../lib');

const config = {
username: process.env.ZULIP_USERNAME,
Expand Down
2 changes: 1 addition & 1 deletion examples/server.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const zulip = require('../lib/');
const zulip = require('../lib');

const config = {
username: process.env.ZULIP_USERNAME,
Expand Down
2 changes: 1 addition & 1 deletion examples/streams.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const zulip = require('../lib/');
const zulip = require('../lib');

const config = {
username: process.env.ZULIP_USERNAME,
Expand Down
2 changes: 1 addition & 1 deletion examples/subscriptions.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const config = {
realm: process.env.ZULIP_REALM,
};

const zulip = require('../lib/');
const zulip = require('../lib');

// Prints
// { msg: '',
Expand Down
2 changes: 1 addition & 1 deletion examples/typing-notifications/send-and-recieve.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const zulip = require('../../lib/');
const zulip = require('../../lib');

if (process.argv.length < 7) {
console.log('Usage: $node examples/typing-notifications/send-and-recieve.js realm-url sender-username sender-API-key recipient-username recipient-API-key');
Expand Down
2 changes: 1 addition & 1 deletion examples/typing-notifications/send-often.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const zulip = require('../../lib/');
const zulip = require('../../lib');

if (process.argv.length < 6) {
console.log('Usage: $node examples/typing-notifications/send-often.js realm-url sender-username sender-API-key recipient-username');
Expand Down
2 changes: 1 addition & 1 deletion examples/typing-notifications/send.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const zulip = require('../../lib/');
const zulip = require('../../lib');

let recipient = process.env.ZULIP_USERNAME;
if (process.env.ZULIP_TYPING_RECIPIENT) {
Expand Down
2 changes: 1 addition & 1 deletion examples/users.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const zulip = require('../lib/');
const zulip = require('../lib');

const config = {
username: process.env.ZULIP_USERNAME,
Expand Down

0 comments on commit 3420570

Please sign in to comment.