mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 17:28:26 -04:00
We have had `insert_final_newline = true` in our `.editorconfig` file since April 2015, but never validated it with eslint. I'm a little tired of extra changes showing up in PRs because some people use editors which respect the `.editorconfig` file and some don't, so I figured we might want to enable the rule in eslint so that the can be autofixed. Votes requested please :)
This commit is contained in:
parent
dea3401fa8
commit
4bbc9a1bfd
171 changed files with 172 additions and 171 deletions
|
@ -100,6 +100,7 @@ module.exports = {
|
|||
strict: [ 'error', 'never' ],
|
||||
'valid-typeof': 'error',
|
||||
'wrap-iife': [ 'error', 'outside' ],
|
||||
'eol-last': ['error', 'always'],
|
||||
yoda: 'off',
|
||||
|
||||
'object-curly-spacing': 'off', // overridden with babel/object-curly-spacing
|
||||
|
@ -150,7 +151,7 @@ module.exports = {
|
|||
'jsx-a11y/role-supports-aria-props': 'error',
|
||||
'jsx-a11y/scope': 'error',
|
||||
'jsx-a11y/tabindex-no-positive': 'error',
|
||||
'jsx-a11y/label-has-associated-control': 'error',
|
||||
'jsx-a11y/label-has-associated-control': 'error',
|
||||
'react/jsx-equals-spacing': ['error', 'never'],
|
||||
'react/jsx-indent': ['error', 2],
|
||||
'react/no-will-update-set-state': 'error',
|
||||
|
|
|
@ -76,4 +76,4 @@ export default {
|
|||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
};
|
||||
|
|
|
@ -54,4 +54,4 @@ export default {
|
|||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
};
|
||||
|
|
|
@ -32,4 +32,4 @@ export default {
|
|||
max_score: 1.0,
|
||||
hits: hits
|
||||
}
|
||||
};
|
||||
};
|
||||
|
|
|
@ -17,4 +17,4 @@
|
|||
* under the License.
|
||||
*/
|
||||
|
||||
export { queryDsl as default } from './dsl';
|
||||
export { queryDsl as default } from './dsl';
|
||||
|
|
|
@ -65,4 +65,4 @@ export default function (api) {
|
|||
'script': { __scope_link: 'GLOBAL.script' },
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
|
@ -56,4 +56,4 @@ export function getSpec() {
|
|||
|
||||
export function addExtensionSpecFilePath(extensionSpecFilePath) {
|
||||
extensionSpecFilePaths.push(extensionSpecFilePath);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -40,4 +40,4 @@ export class ConditionalProxy extends SharedComponent {
|
|||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -43,4 +43,4 @@ export class GlobalOnlyComponent extends SharedComponent {
|
|||
return result;
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -40,4 +40,4 @@ export class IndexAutocompleteComponent extends ListComponent {
|
|||
getContextKey() {
|
||||
return 'indices';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -26,4 +26,4 @@ export class TemplateAutocompleteComponent extends ListComponent {
|
|||
getContextKey() {
|
||||
return 'template';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -40,4 +40,4 @@ export class UsernameAutocompleteComponent extends ListComponent {
|
|||
getContextKey() {
|
||||
return 'username';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -82,4 +82,4 @@ export function ScriptHighlightRules() {
|
|||
};
|
||||
}
|
||||
|
||||
oop.inherits(ScriptHighlightRules, TextHighlightRules);
|
||||
oop.inherits(ScriptHighlightRules, TextHighlightRules);
|
||||
|
|
|
@ -20,4 +20,4 @@
|
|||
export const workerModule = {
|
||||
id: 'sense_editor/mode/worker',
|
||||
src: require('!!raw-loader!./worker.js')
|
||||
};
|
||||
};
|
||||
|
|
|
@ -70,4 +70,4 @@ export function getSettingsComponent(id) {
|
|||
throw new Error(`Component not found with id ${id}`);
|
||||
}
|
||||
return registry[id];
|
||||
}
|
||||
}
|
||||
|
|
|
@ -86,4 +86,4 @@ describe('getSettingsComponent', () => {
|
|||
it('should throw an error when requesting a component that does not exist', () => {
|
||||
expect(() => getSettingsComponent('does not exist')).toThrowErrorMatchingSnapshot();
|
||||
});
|
||||
});
|
||||
});
|
||||
|
|
|
@ -30,4 +30,4 @@ export function registerDefaultComponents() {
|
|||
tryRegisterSettingsComponent(PAGE_TITLE_COMPONENT, PageTitle);
|
||||
tryRegisterSettingsComponent(PAGE_SUBTITLE_COMPONENT, PageSubtitle);
|
||||
tryRegisterSettingsComponent(PAGE_FOOTER_COMPONENT, PageFooter);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -40,4 +40,4 @@ describe('default_component_registry', () => {
|
|||
|
||||
expect(getSettingsComponent(PAGE_TITLE_COMPONENT)).toEqual(newComponent);
|
||||
});
|
||||
});
|
||||
});
|
||||
|
|
|
@ -17,4 +17,4 @@
|
|||
* under the License.
|
||||
*/
|
||||
|
||||
export { PageFooter } from './page_footer';
|
||||
export { PageFooter } from './page_footer';
|
||||
|
|
|
@ -17,4 +17,4 @@
|
|||
* under the License.
|
||||
*/
|
||||
|
||||
export const PageFooter = () => null;
|
||||
export const PageFooter = () => null;
|
||||
|
|
|
@ -25,4 +25,4 @@ describe('PageFooter', () => {
|
|||
it('should render normally', () => {
|
||||
expect(shallowWithIntl(<PageFooter />)).toMatchSnapshot();
|
||||
});
|
||||
});
|
||||
});
|
||||
|
|
|
@ -17,4 +17,4 @@
|
|||
* under the License.
|
||||
*/
|
||||
|
||||
export const PageSubtitle = () => null;
|
||||
export const PageSubtitle = () => null;
|
||||
|
|
|
@ -25,4 +25,4 @@ describe('PageSubtitle', () => {
|
|||
it('should render normally', () => {
|
||||
expect(shallowWithIntl(<PageSubtitle />)).toMatchSnapshot();
|
||||
});
|
||||
});
|
||||
});
|
||||
|
|
|
@ -17,4 +17,4 @@
|
|||
* under the License.
|
||||
*/
|
||||
|
||||
export { PageTitle } from './page_title';
|
||||
export { PageTitle } from './page_title';
|
||||
|
|
|
@ -34,4 +34,4 @@ export const PageTitle = () => {
|
|||
</h1>
|
||||
</EuiText>
|
||||
);
|
||||
};
|
||||
};
|
||||
|
|
|
@ -25,4 +25,4 @@ describe('PageTitle', () => {
|
|||
it('should render normally', () => {
|
||||
expect(shallowWithIntl(<PageTitle />)).toMatchSnapshot();
|
||||
});
|
||||
});
|
||||
});
|
||||
|
|
|
@ -28,4 +28,4 @@ export default (handleChange) => {
|
|||
return handleChange({ [name]: value });
|
||||
}
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
|
@ -30,4 +30,4 @@ export default (handleChange) => {
|
|||
return handleChange({ [name]: value });
|
||||
}
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
|
@ -41,4 +41,4 @@ export function detectIE() {
|
|||
|
||||
// other browser
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -158,4 +158,4 @@ SplitByTermsUi.propTypes = {
|
|||
fields: PropTypes.object
|
||||
};
|
||||
|
||||
export const SplitByTerms = injectI18n(SplitByTermsUi);
|
||||
export const SplitByTerms = injectI18n(SplitByTermsUi);
|
||||
|
|
|
@ -17,4 +17,4 @@
|
|||
* under the License.
|
||||
*/
|
||||
|
||||
import './testbed';
|
||||
import './testbed';
|
||||
|
|
|
@ -43,4 +43,4 @@ export default function nearest(dataTuples, targetTuples) {
|
|||
|
||||
return [bucket[0], closest[1]];
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
|
@ -23,4 +23,4 @@
|
|||
// Does not resample at all.
|
||||
export default function none(dataTuples) {
|
||||
return dataTuples;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -51,4 +51,4 @@ export default function (expr) {
|
|||
|
||||
return parseFloat(match[1] || 1) * vals[match[2]];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -20,4 +20,4 @@
|
|||
test('test', () => {
|
||||
// errors module is tested in test/api_integration/apis/index_patterns/es_errors/errors.js
|
||||
// so it can get real errors from elasticsearch and the es client to test with
|
||||
});
|
||||
});
|
||||
|
|
|
@ -102,4 +102,4 @@ export const fieldMappings = {
|
|||
FlightTimeHour: {
|
||||
type: 'keyword'
|
||||
}
|
||||
};
|
||||
};
|
||||
|
|
|
@ -25,4 +25,4 @@ test('should include sampleDataSetId and dataIndexId in elasticsearch index name
|
|||
|
||||
test('should only include sampleDataSetId when sampleDataSetId and dataIndexId are identical', async () => {
|
||||
expect(createIndexName('flights', 'flights')).toBe('kibana_sample_data_flights');
|
||||
});
|
||||
});
|
||||
|
|
|
@ -18,4 +18,4 @@
|
|||
*/
|
||||
|
||||
export { GlobalBannerList } from './global_banner_list';
|
||||
export { banners } from './banners';
|
||||
export { banners } from './banners';
|
||||
|
|
|
@ -32,4 +32,4 @@ describe('createLogKey', () => {
|
|||
it('should not include a hashed suffix if the identifier is not present', () => {
|
||||
expect(createLogKey('foo')).toEqual('kibana.history.foo');
|
||||
});
|
||||
});
|
||||
});
|
||||
|
|
|
@ -120,4 +120,4 @@ export const createZoomWarningMsg = (function () {
|
|||
}
|
||||
};
|
||||
};
|
||||
}());
|
||||
}());
|
||||
|
|
|
@ -17,4 +17,4 @@
|
|||
* under the License.
|
||||
*/
|
||||
|
||||
export { PieChartProvider } from './pie_chart';
|
||||
export { PieChartProvider } from './pie_chart';
|
||||
|
|
|
@ -4,4 +4,4 @@
|
|||
* you may not use this file except in compliance with the Elastic License.
|
||||
*/
|
||||
|
||||
export { licensePreRoutingFactory } from './license_pre_routing_factory';
|
||||
export { licensePreRoutingFactory } from './license_pre_routing_factory';
|
||||
|
|
|
@ -6,4 +6,4 @@
|
|||
|
||||
export { ROUTES } from './routes';
|
||||
export { PLUGIN } from './plugin';
|
||||
export { EDITOR } from './editor';
|
||||
export { EDITOR } from './editor';
|
||||
|
|
|
@ -4,4 +4,4 @@
|
|||
* you may not use this file except in compliance with the Elastic License.
|
||||
*/
|
||||
|
||||
export { checkLicense } from './check_license';
|
||||
export { checkLicense } from './check_license';
|
||||
|
|
|
@ -7,4 +7,4 @@
|
|||
export { ActiveBadge } from './active_badge';
|
||||
export { LearnMoreLink } from './learn_more_link';
|
||||
export { PhaseErrorMessage } from './phase_error_message';
|
||||
export { OptionalLabel } from './optional_label';
|
||||
export { OptionalLabel } from './optional_label';
|
||||
|
|
|
@ -34,4 +34,4 @@ export class LearnMoreLinkUi extends React.PureComponent {
|
|||
|
||||
}
|
||||
}
|
||||
export const LearnMoreLink = injectI18n(LearnMoreLinkUi);
|
||||
export const LearnMoreLink = injectI18n(LearnMoreLinkUi);
|
||||
|
|
|
@ -15,4 +15,4 @@ export const PhaseErrorMessage = ({ isShowingErrors }) => {
|
|||
/>
|
||||
</EuiBadge>
|
||||
) : null;
|
||||
};
|
||||
};
|
||||
|
|
|
@ -4,4 +4,4 @@
|
|||
* you may not use this file except in compliance with the Elastic License.
|
||||
*/
|
||||
|
||||
export { NodeAllocation } from './node_allocation.container';
|
||||
export { NodeAllocation } from './node_allocation.container';
|
||||
|
|
|
@ -67,4 +67,4 @@ export const SetPriorityInput = props => {
|
|||
</ErrableFormRow>
|
||||
</EuiDescribedFormGroup>
|
||||
);
|
||||
};
|
||||
};
|
||||
|
|
|
@ -4,4 +4,4 @@
|
|||
* you may not use this file except in compliance with the Elastic License.
|
||||
*/
|
||||
|
||||
export { PolicyTable } from './policy_table.container';
|
||||
export { PolicyTable } from './policy_table.container';
|
||||
|
|
|
@ -5,4 +5,4 @@
|
|||
*/
|
||||
|
||||
export { filterItems } from './filter_items';
|
||||
export { sortTable } from './sort_table';
|
||||
export { sortTable } from './sort_table';
|
||||
|
|
|
@ -20,4 +20,4 @@ export const goToPolicyList = () => {
|
|||
|
||||
export const getPolicyPath = (policyName) => {
|
||||
return encodeURI(`#${BASE_PATH}policies/edit/${encodeURIComponent(policyName)}`);
|
||||
};
|
||||
};
|
||||
|
|
|
@ -27,4 +27,4 @@ export const defaultColdPhase = {
|
|||
export const defaultEmptyColdPhase = {
|
||||
...defaultColdPhase,
|
||||
[PHASE_INDEX_PRIORITY]: ''
|
||||
};
|
||||
};
|
||||
|
|
|
@ -18,4 +18,4 @@ export const defaultDeletePhase = {
|
|||
[PHASE_ROLLOVER_MINIMUM_AGE]: '',
|
||||
[PHASE_ROLLOVER_MINIMUM_AGE_UNITS]: 'd'
|
||||
};
|
||||
export const defaultEmptyDeletePhase = defaultDeletePhase;
|
||||
export const defaultEmptyDeletePhase = defaultDeletePhase;
|
||||
|
|
|
@ -32,4 +32,4 @@ export const defaultEmptyHotPhase = {
|
|||
[PHASE_ROLLOVER_MAX_SIZE_STORED]: '',
|
||||
[PHASE_INDEX_PRIORITY]: '',
|
||||
[PHASE_ROLLOVER_MAX_DOCUMENTS]: ''
|
||||
};
|
||||
};
|
||||
|
|
|
@ -7,4 +7,4 @@
|
|||
export * from './delete_phase';
|
||||
export * from './cold_phase';
|
||||
export * from './hot_phase';
|
||||
export * from './warm_phase';
|
||||
export * from './warm_phase';
|
||||
|
|
|
@ -36,4 +36,4 @@ export const defaultEmptyWarmPhase = {
|
|||
...defaultWarmPhase,
|
||||
[WARM_PHASE_ON_ROLLOVER]: false,
|
||||
[PHASE_INDEX_PRIORITY]: ''
|
||||
};
|
||||
};
|
||||
|
|
|
@ -14,4 +14,4 @@ import Boom from 'boom';
|
|||
*/
|
||||
export function wrapUnknownError(err) {
|
||||
return Boom.boomify(err);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -30,4 +30,4 @@ describe('flatten_object', () => {
|
|||
};
|
||||
expect(flattenObject(obj)).toMatchSnapshot();
|
||||
});
|
||||
});
|
||||
});
|
||||
|
|
|
@ -4,4 +4,4 @@
|
|||
* you may not use this file except in compliance with the Elastic License.
|
||||
*/
|
||||
|
||||
export const settingsDocumentationLink = "https://stuff.com/docs";
|
||||
export const settingsDocumentationLink = "https://stuff.com/docs";
|
||||
|
|
|
@ -7,4 +7,4 @@
|
|||
export const toastNotifications = {
|
||||
addSuccess: () => {},
|
||||
addDanger: () => {},
|
||||
};
|
||||
};
|
||||
|
|
|
@ -10,4 +10,4 @@ export const addIndexManagementDataEnricher = (enricher) => {
|
|||
};
|
||||
export const getIndexManagementDataEnrichers = () => {
|
||||
return indexManagementDataEnrichers;
|
||||
};
|
||||
};
|
||||
|
|
|
@ -29,4 +29,4 @@ export const settingsToDisplay = [
|
|||
'index.query.default_field',
|
||||
'index.refresh_interval',
|
||||
'index.write.wait_for_active_shards'
|
||||
];
|
||||
];
|
||||
|
|
|
@ -20,4 +20,4 @@ export const flattenObject = (nestedObj, flattenArrays) => {
|
|||
});
|
||||
}(nestedObj));
|
||||
return flatObj;
|
||||
};
|
||||
};
|
||||
|
|
|
@ -44,4 +44,4 @@ export const renderBadges = (index, filterChanged) => {
|
|||
{badgeLabels}
|
||||
</Fragment>
|
||||
);
|
||||
};
|
||||
};
|
||||
|
|
|
@ -4,4 +4,4 @@
|
|||
* you may not use this file except in compliance with the Elastic License.
|
||||
*/
|
||||
|
||||
export { EditSettingsJson } from './edit_settings_json.container';
|
||||
export { EditSettingsJson } from './edit_settings_json.container';
|
||||
|
|
|
@ -4,4 +4,4 @@
|
|||
* you may not use this file except in compliance with the Elastic License.
|
||||
*/
|
||||
|
||||
export { DetailPanel } from './detail_panel.container';
|
||||
export { DetailPanel } from './detail_panel.container';
|
||||
|
|
|
@ -4,4 +4,4 @@
|
|||
* you may not use this file except in compliance with the Elastic License.
|
||||
*/
|
||||
|
||||
export { ShowJson } from './show_json.container';
|
||||
export { ShowJson } from './show_json.container';
|
||||
|
|
|
@ -4,4 +4,4 @@
|
|||
* you may not use this file except in compliance with the Elastic License.
|
||||
*/
|
||||
|
||||
export { Summary } from './summary.container';
|
||||
export { Summary } from './summary.container';
|
||||
|
|
|
@ -126,4 +126,4 @@ export async function loadIndexData(type, indexName) {
|
|||
case 'Stats':
|
||||
return loadIndexStats(indexName);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -25,4 +25,4 @@ export const showSystemIndicesChanged =
|
|||
createAction('INDEX_MANAGEMENT_SHOW_SYSTEM_INDICES_CHANGED');
|
||||
|
||||
export const toggleChanged =
|
||||
createAction('INDEX_MANAGEMENT_TOGGLE_CHANGED');
|
||||
createAction('INDEX_MANAGEMENT_TOGGLE_CHANGED');
|
||||
|
|
|
@ -59,4 +59,4 @@ export const detailPanel = handleActions(
|
|||
},
|
||||
},
|
||||
defaultState
|
||||
);
|
||||
);
|
||||
|
|
|
@ -15,4 +15,4 @@ export const indexManagement = combineReducers({
|
|||
rowStatus,
|
||||
tableState,
|
||||
detailPanel
|
||||
});
|
||||
});
|
||||
|
|
|
@ -4,4 +4,4 @@
|
|||
* you may not use this file except in compliance with the Elastic License.
|
||||
*/
|
||||
|
||||
export { checkLicense } from './check_license';
|
||||
export { checkLicense } from './check_license';
|
||||
|
|
|
@ -14,4 +14,4 @@ import Boom from 'boom';
|
|||
*/
|
||||
export function wrapUnknownError(err) {
|
||||
return Boom.boomify(err);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -4,4 +4,4 @@
|
|||
* you may not use this file except in compliance with the Elastic License.
|
||||
*/
|
||||
|
||||
export { isEsErrorFactory } from './is_es_error_factory';
|
||||
export { isEsErrorFactory } from './is_es_error_factory';
|
||||
|
|
|
@ -15,4 +15,4 @@ export function isEsErrorFactory(server) {
|
|||
return function isEsError(err) {
|
||||
return err instanceof esErrors._Abstract;
|
||||
};
|
||||
}
|
||||
}
|
||||
|
|
|
@ -4,4 +4,4 @@
|
|||
* you may not use this file except in compliance with the Elastic License.
|
||||
*/
|
||||
|
||||
export { licensePreRoutingFactory } from './license_pre_routing_factory';
|
||||
export { licensePreRoutingFactory } from './license_pre_routing_factory';
|
||||
|
|
|
@ -4,4 +4,4 @@
|
|||
* you may not use this file except in compliance with the Elastic License.
|
||||
*/
|
||||
|
||||
export { registerLicenseChecker } from './register_license_checker';
|
||||
export { registerLicenseChecker } from './register_license_checker';
|
||||
|
|
|
@ -4,4 +4,4 @@
|
|||
* you may not use this file except in compliance with the Elastic License.
|
||||
*/
|
||||
|
||||
export { registerMappingRoute } from './register_mapping_route';
|
||||
export { registerMappingRoute } from './register_mapping_route';
|
||||
|
|
|
@ -4,4 +4,4 @@
|
|||
* you may not use this file except in compliance with the Elastic License.
|
||||
*/
|
||||
|
||||
export { registerStatsRoute } from './register_stats_route';
|
||||
export { registerStatsRoute } from './register_stats_route';
|
||||
|
|
|
@ -4,4 +4,4 @@
|
|||
* you may not use this file except in compliance with the Elastic License.
|
||||
*/
|
||||
|
||||
export * from './upload_license';
|
||||
export * from './upload_license';
|
||||
|
|
|
@ -20,4 +20,4 @@ describe('TelemetryOptIn', () => {
|
|||
const rendered = mountWithIntl(<TelemetryOptIn />);
|
||||
expect(rendered).toMatchSnapshot();
|
||||
});
|
||||
});
|
||||
});
|
||||
|
|
|
@ -4,4 +4,4 @@
|
|||
* you may not use this file except in compliance with the Elastic License.
|
||||
*/
|
||||
|
||||
export * from './util';
|
||||
export * from './util';
|
||||
|
|
|
@ -17,4 +17,4 @@ export default () => (
|
|||
<Route path={`${BASE_PATH}`} component={LicenseDashboard} />
|
||||
</Switch>
|
||||
</EuiPageBody>
|
||||
);
|
||||
);
|
||||
|
|
|
@ -4,4 +4,4 @@
|
|||
* you may not use this file except in compliance with the Elastic License.
|
||||
*/
|
||||
|
||||
export { TelemetryOptIn } from './telemetry_opt_in';
|
||||
export { TelemetryOptIn } from './telemetry_opt_in';
|
||||
|
|
|
@ -5,4 +5,4 @@
|
|||
*/
|
||||
|
||||
import './management_section';
|
||||
import './register_route';
|
||||
import './register_route';
|
||||
|
|
|
@ -4,4 +4,4 @@
|
|||
* you may not use this file except in compliance with the Elastic License.
|
||||
*/
|
||||
|
||||
export { StartTrial } from './start_trial.container';
|
||||
export { StartTrial } from './start_trial.container';
|
||||
|
|
|
@ -14,4 +14,4 @@ export const trialStatus = handleActions({
|
|||
canStartTrial: payload
|
||||
};
|
||||
},
|
||||
}, {});
|
||||
}, {});
|
||||
|
|
|
@ -4,4 +4,4 @@
|
|||
* you may not use this file except in compliance with the Elastic License.
|
||||
*/
|
||||
|
||||
export { updateLogstashSections } from './update_logstash_sections';
|
||||
export { updateLogstashSections } from './update_logstash_sections';
|
||||
|
|
|
@ -88,4 +88,4 @@ describe('fetch_all_from_scroll', () => {
|
|||
});
|
||||
});
|
||||
});
|
||||
});
|
||||
});
|
||||
|
|
|
@ -4,4 +4,4 @@
|
|||
* you may not use this file except in compliance with the Elastic License.
|
||||
*/
|
||||
|
||||
export { registerLogstashPipelinesRoutes } from './register_pipelines_routes';
|
||||
export { registerLogstashPipelinesRoutes } from './register_pipelines_routes';
|
||||
|
|
|
@ -25,4 +25,4 @@ export function StyleTab(props) {
|
|||
>{ name }
|
||||
</EuiTab>
|
||||
) || null;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -101,4 +101,4 @@ routes
|
|||
})
|
||||
.otherwise({
|
||||
redirectTo: '/'
|
||||
});
|
||||
});
|
||||
|
|
|
@ -20,4 +20,4 @@ export function getRGBColorRangeStrings(colorName, numberColors) {
|
|||
export function getHexColorRangeStrings(colorName, numberColors) {
|
||||
return getRGBColorRangeStrings(colorName, numberColors)
|
||||
.map(rgbColor => chroma(rgbColor).hex());
|
||||
}
|
||||
}
|
||||
|
|
|
@ -85,4 +85,4 @@ describe('buildMapsTelemetry', () => {
|
|||
"mapsTotalCount": 3
|
||||
});
|
||||
});
|
||||
});
|
||||
});
|
||||
|
|
|
@ -54,4 +54,4 @@ export function registerMapsUsageCollector(server) {
|
|||
const mapsUsageCollector = server.usage.collectorSet
|
||||
.makeUsageCollector(collectorObj);
|
||||
server.usage.collectorSet.register(mapsUsageCollector);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -66,4 +66,4 @@ describe('buildCollectorObj#fetch', () => {
|
|||
await expect(fetch()).rejects.toMatchObject(new Error('Sad violin'));
|
||||
});
|
||||
});
|
||||
});
|
||||
});
|
||||
|
|
|
@ -40,4 +40,4 @@ describe('telemetryTaskRunner', () => {
|
|||
},
|
||||
});
|
||||
});
|
||||
});
|
||||
});
|
||||
|
|
|
@ -48,4 +48,4 @@ export const getMockKbnServer = (
|
|||
},
|
||||
config: () => ({ get: () => '' }),
|
||||
log: () => undefined
|
||||
});
|
||||
});
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Add a link
Reference in a new issue