[linting] Enforce relative paths for X-Pack modules (#34349)

* Add module-migration support for toRelative

Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>

* tslint fixes

Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>

* Move configuration to root

Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>

* Simplify root definition

Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
This commit is contained in:
Tyler Smalley 2019-04-02 10:08:13 -07:00 committed by GitHub
parent 5b9cdc7307
commit 1b95bed2da
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
152 changed files with 291 additions and 322 deletions

View file

@ -13,7 +13,7 @@ import {
import { Legacy } from 'kibana';
import { cloneDeep, has, isString, set } from 'lodash';
import moment from 'moment';
import { OBSERVER_VERSION_MAJOR } from 'x-pack/plugins/apm/common/elasticsearch_fieldnames';
import { OBSERVER_VERSION_MAJOR } from '../../../common/elasticsearch_fieldnames';
function decodeEsQuery(esQuery?: string) {
return esQuery ? JSON.parse(decodeURIComponent(esQuery)) : null;