ESLint fixes and cleaning (#203)

This commit is contained in:
Mike Arpaia 2016-09-20 06:42:08 -07:00 committed by Mike Stone
parent aacd1d6b9c
commit 4b425eb524
5 changed files with 7 additions and 19 deletions

View File

@ -1,13 +0,0 @@
.vscode
build
assets
cli
config
datastore
errors
kolide
mock
server
tools
vendor
webpack.config.js

View File

@ -29,7 +29,8 @@ module.exports = {
'import/no-unresolved': 'error',
'linebreak-style': 0,
'import/no-named-as-default': 'off',
'import/no-named-as-default-member': 'off'
'import/no-named-as-default-member': 'off',
'no-underscore-dangle': 0
},
settings: {
'import/resolver': {

View File

@ -71,7 +71,7 @@ build: .prefix
-X github.com/kolide/kolide-ose/version.goVersion=${GOVERSION}"
lint-js:
eslint . --ext .js,.jsx
eslint frontend --ext .js,.jsx
lint-go:
go vet $(shell glide nv)
@ -86,7 +86,7 @@ test-js:
--recursive 'frontend/**/*.tests.js*' \
--require 'frontend/.test.setup.js'
test: lint test-go test-js
test: lint-go lint-js test-go test-js
generate: .prefix
go-bindata -pkg=server \

View File

@ -1,3 +1,5 @@
import fetch from 'isomorphic-fetch';
import config from '../config';
import local from '../utilities/local';
@ -40,7 +42,7 @@ class Base {
const headers = {
...overrideHeaders,
Authorization: `Bearer ${this.bearerToken}`,
}
};
return this._request(method, endpoint, body, headers);
}

View File

@ -1,7 +1,5 @@
import fetch from 'isomorphic-fetch';
import Base from './base';
import endpoints from './endpoints';
import local from '../utilities/local';
class Kolide extends Base {
forgotPassword ({ email }) {