Skip to content

Commit

Permalink
chore: update dependencies and new lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
nodkz committed Sep 6, 2018
1 parent 37593de commit a354eb0
Show file tree
Hide file tree
Showing 9 changed files with 2,171 additions and 598 deletions.
9 changes: 5 additions & 4 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,17 @@
"objects": "always-multiline",
"imports": "always-multiline",
"exports": "always-multiline",
"functions": "ignore",
"functions": "ignore"
}],
"prettier/prettier": ["error", {
"printWidth": 100,
"singleQuote": true,
"trailingComma": "es5",
"trailingComma": "es5"
}],
"no-plusplus": 0,
"prefer-destructuring": 0,
"no-prototype-builtins": 0
"no-prototype-builtins": 0,
"lines-between-class-members": 0
},
"env": {
"jest": true
Expand All @@ -37,6 +38,6 @@
"fetch": true,
"FormData": true,
"File": true,
"$Shape": true,
"$Shape": true
}
}
28 changes: 14 additions & 14 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,25 +38,25 @@
"@babel/plugin-transform-flow-strip-types": "^7.0.0",
"@babel/polyfill": "^7.0.0",
"@babel/preset-env": "^7.0.0",
"@babel/register": "^7.0.0",
"@babel/preset-flow": "^7.0.0",
"@babel/register": "^7.0.0",
"babel-core": "^7.0.0-bridge.0",
"babel-eslint": "^8.2.3",
"babel-jest": "^22.4.4",
"babel-eslint": "^9.0.0",
"babel-jest": "^23.4.2",
"cz-conventional-changelog": "^2.1.0",
"eslint": "^4.19.1",
"eslint-config-airbnb-base": "^12.1.0",
"eslint-config-prettier": "^2.9.0",
"eslint": "^5.5.0",
"eslint-config-airbnb-base": "^13.1.0",
"eslint-config-prettier": "^3.0.1",
"eslint-module-utils": "^2.2.0",
"eslint-plugin-import": "^2.12.0",
"eslint-plugin-prettier": "^2.6.0",
"fetch-mock": "^6.4.2",
"flow-bin": "^0.72.0",
"eslint-plugin-import": "^2.14.0",
"eslint-plugin-prettier": "^2.6.2",
"fetch-mock": "6.4.2",
"flow-bin": "^0.80.0",
"form-data": "^2.3.2",
"jest": "^22.4.4",
"prettier": "^1.12.1",
"jest": "^23.5.0",
"prettier": "^1.14.2",
"rimraf": "^2.6.2",
"semantic-release": "^15.5.0"
"semantic-release": "^15.9.12"
},
"config": {
"commitizen": {
Expand All @@ -73,7 +73,7 @@
"build-lib": "rimraf lib && BABEL_ENV=lib babel src --ignore __tests__,__mocks__ -d lib",
"build-es": "rimraf es && BABEL_ENV=es babel src --ignore __tests__,__mocks__ -d es",
"build-flow": "find ./src -name '*.js' -not -path '*/__*' | while read filepath; do cp $filepath `echo $filepath | sed 's/\\/src\\//\\/lib\\//g'`.flow; done",
"lint": "eslint src test *.js",
"lint": "eslint --ext .js ./src",
"coverage": "jest --coverage --maxWorkers 2",
"watch": "jest --watch",
"test": "npm run coverage && npm run lint && npm run flow",
Expand Down
2 changes: 1 addition & 1 deletion src/__tests__/mutation.test.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* @flow */

import fetchMock from 'fetch-mock';
import { RelayNetworkLayer } from '../';
import { RelayNetworkLayer } from '..';
import { mockReq } from '../__mocks__/mockReq';

describe('Mutation tests', () => {
Expand Down
2 changes: 1 addition & 1 deletion src/__tests__/queries.test.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* @flow */

import fetchMock from 'fetch-mock';
import { RelayNetworkLayer } from '../';
import { RelayNetworkLayer } from '..';
import { mockReq } from '../__mocks__/mockReq';

describe('Queries tests', () => {
Expand Down
4 changes: 2 additions & 2 deletions src/middleware/__tests__/auth.test.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
/* @flow */

import fetchMock from 'fetch-mock';
import { RelayNetworkLayer } from '../../';
import { RelayNetworkLayer } from '../..';
import { mockReq } from '../../__mocks__/mockReq';
import authMiddleware from '../../middleware/auth';
import authMiddleware from '../auth';

describe('Middleware / auth', () => {
describe('`token` option as string (with default `prefix` and `header`)', () => {
Expand Down
2 changes: 1 addition & 1 deletion src/middleware/__tests__/batch.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import fetchMock from 'fetch-mock';
import FormData from 'form-data';
import { RelayNetworkLayer, batchMiddleware } from '../../';
import { RelayNetworkLayer, batchMiddleware } from '../..';
import { mockReq, mockReqWithSize, mockReqWithFiles } from '../../__mocks__/mockReq';

global.FormData = FormData;
Expand Down
2 changes: 1 addition & 1 deletion src/middleware/__tests__/url.test.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* @flow */

import fetchMock from 'fetch-mock';
import { RelayNetworkLayer } from '../../';
import { RelayNetworkLayer } from '../..';
import { mockReq } from '../../__mocks__/mockReq';
import urlMiddleware from '../url';

Expand Down
3 changes: 1 addition & 2 deletions src/middleware/auth.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,7 @@ export default function authMiddleware(opts?: AuthMiddlewareOpts): Middleware {
allowEmptyToken = false,
prefix = 'Bearer ',
header = 'Authorization',
} =
opts || {};
} = opts || {};

let tokenRefreshInProgress = null;

Expand Down
Loading

0 comments on commit a354eb0

Please sign in to comment.