mirror of
https://github.com/empayre/fleet.git
synced 2024-11-06 00:45:19 +00:00
ESLint fixes and cleaning (#203)
This commit is contained in:
parent
aacd1d6b9c
commit
4b425eb524
@ -1,13 +0,0 @@
|
||||
.vscode
|
||||
build
|
||||
assets
|
||||
cli
|
||||
config
|
||||
datastore
|
||||
errors
|
||||
kolide
|
||||
mock
|
||||
server
|
||||
tools
|
||||
vendor
|
||||
webpack.config.js
|
@ -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': {
|
||||
|
4
Makefile
4
Makefile
@ -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 \
|
||||
|
@ -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);
|
||||
}
|
||||
|
@ -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 }) {
|
||||
|
Loading…
Reference in New Issue
Block a user