Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use a custom eslint config instead of airbnb #622

Merged
merged 3 commits into from
Jun 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
546 changes: 543 additions & 3 deletions .eslintrc.cjs

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,6 @@
"delay": "^6.0.0",
"dotenv": "^16.0.0",
"eslint": "^8.2.0",
"eslint-config-airbnb-base": "^15.0.0",
"eslint-plugin-import": "^2.20.0",
"eslint-plugin-node": "^11.1.0",
"get-port": "^7.0.0",
Expand Down
2 changes: 1 addition & 1 deletion src/locale.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import fs from 'node:fs';
import i18next from 'i18next';
import * as i18next from 'i18next';
import YAML from 'yaml';

const source = fs.readFileSync(new URL('../locale/en.yaml', import.meta.url), 'utf8');
Expand Down
2 changes: 1 addition & 1 deletion test/acl.mjs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import assert from 'assert';
import supertest from 'supertest';
import sinon from 'sinon';
import * as sinon from 'sinon';
import createUwave from './utils/createUwave.mjs';

describe('ACL', () => {
Expand Down
2 changes: 1 addition & 1 deletion test/authenticate.mjs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import assert from 'assert';
import sinon from 'sinon';
import * as sinon from 'sinon';
import supertest from 'supertest';
import nock from 'nock';
import testKeys from 'recaptcha-test-keys';
Expand Down
2 changes: 1 addition & 1 deletion test/bans.mjs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import assert from 'assert';
import supertest from 'supertest';
import sinon from 'sinon';
import * as sinon from 'sinon';
import ms from 'ms';
import createUwave from './utils/createUwave.mjs';

Expand Down
2 changes: 1 addition & 1 deletion test/chat.mjs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import assert from 'assert';
import sinon from 'sinon';
import * as sinon from 'sinon';
import delay from 'delay';
import createUwave from './utils/createUwave.mjs';

Expand Down
2 changes: 1 addition & 1 deletion test/playlists.mjs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import assert from 'assert';
import { inspect } from 'util';
import supertest from 'supertest';
import sinon from 'sinon';
import * as sinon from 'sinon';
import randomString from 'random-string';
import createUwave from './utils/createUwave.mjs';

Expand Down
2 changes: 1 addition & 1 deletion test/sources.mjs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import assert from 'assert';
import supertest from 'supertest';
import sinon from 'sinon';
import * as sinon from 'sinon';
import { Source } from '../src/Source.js';
import createUwave from './utils/createUwave.mjs';

Expand Down
2 changes: 1 addition & 1 deletion test/waitlist.mjs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import assert from 'assert';
import supertest from 'supertest';
import sinon from 'sinon';
import * as sinon from 'sinon';
import randomString from 'random-string';
import createUwave from './utils/createUwave.mjs';

Expand Down