From ff22dfc5164819e64f8f35ea1b14fb814746dc1d Mon Sep 17 00:00:00 2001 From: Chris Manson Date: Thu, 9 Nov 2023 22:57:58 +0000 Subject: [PATCH] fix linting --- .eslintrc.js | 3 ++- addon/types.ts | 1 + addon/utils/mung-options-for-fetch.ts | 1 + tests/acceptance/root-test.js | 3 +++ tests/dummy/app/controllers/index.js | 1 + tests/dummy/app/routes/index.js | 1 + 6 files changed, 9 insertions(+), 1 deletion(-) diff --git a/.eslintrc.js b/.eslintrc.js index 874eb711..02a27017 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -71,7 +71,8 @@ module.exports = { { files: ['test/**/*.js'], env: { - mocha: true + mocha: true, + node: true }, rules: { 'node/no-unpublished-require': 'off', diff --git a/addon/types.ts b/addon/types.ts index 80b9cc07..4e0ffd9b 100644 --- a/addon/types.ts +++ b/addon/types.ts @@ -1,3 +1,4 @@ +/* eslint-disable no-unused-vars */ import Mix from '@ember/polyfills/types'; export type Nullable = T | null | undefined; diff --git a/addon/utils/mung-options-for-fetch.ts b/addon/utils/mung-options-for-fetch.ts index 55fcedb7..21df5ec0 100644 --- a/addon/utils/mung-options-for-fetch.ts +++ b/addon/utils/mung-options-for-fetch.ts @@ -1,3 +1,4 @@ +/* eslint-disable no-unused-vars */ import { assign } from '@ember/polyfills'; import { serializeQueryParams } from './serialize-query-params'; import { diff --git a/tests/acceptance/root-test.js b/tests/acceptance/root-test.js index a8ee0365..08e85aaa 100644 --- a/tests/acceptance/root-test.js +++ b/tests/acceptance/root-test.js @@ -33,6 +33,7 @@ module('Acceptance: Root', function(hooks) { }); test('posting a string', function(assert) { + assert.expect(3); server.post('/upload', function(req) { assert.equal(req.requestBody, 'foo'); return [ @@ -54,6 +55,7 @@ module('Acceptance: Root', function(hooks) { }); test('posting a form', function(assert) { + assert.expect(3) server.post('/upload', function(req) { assert.ok(req.requestBody instanceof window.FormData); return [ @@ -77,6 +79,7 @@ module('Acceptance: Root', function(hooks) { }); test('posting an array buffer', function(assert) { + assert.expect(3); server.post('/upload', function(req) { assert.ok(req.requestBody instanceof window.ArrayBuffer); return [ diff --git a/tests/dummy/app/controllers/index.js b/tests/dummy/app/controllers/index.js index 357444be..4f4b8519 100644 --- a/tests/dummy/app/controllers/index.js +++ b/tests/dummy/app/controllers/index.js @@ -1,3 +1,4 @@ +/* eslint-disable ember/no-classic-classes, ember/no-actions-hash */ import Controller from '@ember/controller'; import { run } from '@ember/runloop'; import fetch from 'fetch'; diff --git a/tests/dummy/app/routes/index.js b/tests/dummy/app/routes/index.js index 6f26bf0d..8a6c5716 100644 --- a/tests/dummy/app/routes/index.js +++ b/tests/dummy/app/routes/index.js @@ -1,3 +1,4 @@ +/* eslint-disable ember/no-classic-classes */ import Route from '@ember/routing/route'; import { hash } from 'rsvp'; import fetch from 'fetch';