Skip to content

Commit

Permalink
fix linting
Browse files Browse the repository at this point in the history
  • Loading branch information
mansona committed Nov 9, 2023
1 parent b03e61d commit cfc5d7d
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,8 @@ module.exports = {
{
files: ['test/**/*.js'],
env: {
mocha: true
mocha: true,
node: true
},
rules: {
'node/no-unpublished-require': 'off',
Expand Down
1 change: 1 addition & 0 deletions addon/types.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/* eslint-disable no-unused-vars */
import Mix from '@ember/polyfills/types';

export type Nullable<T> = T | null | undefined;
Expand Down
1 change: 1 addition & 0 deletions addon/utils/mung-options-for-fetch.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/* eslint-disable no-unused-vars */
import { assign } from '@ember/polyfills';
import { serializeQueryParams } from './serialize-query-params';
import {
Expand Down
3 changes: 3 additions & 0 deletions tests/acceptance/root-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 [
Expand All @@ -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 [
Expand All @@ -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 [
Expand Down
1 change: 1 addition & 0 deletions tests/dummy/app/controllers/index.js
Original file line number Diff line number Diff line change
@@ -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';
Expand Down
1 change: 1 addition & 0 deletions tests/dummy/app/routes/index.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/* eslint-disable ember/no-classic-classes */
import Route from '@ember/routing/route';
import { hash } from 'rsvp';
import fetch from 'fetch';
Expand Down

0 comments on commit cfc5d7d

Please sign in to comment.