[eslint] remove exception for no-restricted-globals, and fix violations
This commit is contained in:
@ -2,5 +2,4 @@
|
||||
extends: "@elastic/eslint-config-kibana"
|
||||
|
||||
rules:
|
||||
no-restricted-globals: warn
|
||||
prefer-const: warn
|
||||
@ -7,7 +7,7 @@ describe('Nodes to host callback', function () {
|
||||
const nodes20 = require('../../fixtures/short_node_list.2.0.json');
|
||||
const nodes50 = require('../../fixtures/short_node_list.5.0.json');
|
||||
|
||||
context('0.x style', function () {
|
||||
describe('0.x style', function () {
|
||||
it('properly creates host objects', function () {
|
||||
expect(callback(nodes90)).to.eql([
|
||||
{
|
||||
@ -32,7 +32,7 @@ describe('Nodes to host callback', function () {
|
||||
});
|
||||
});
|
||||
|
||||
context('1.0 nodes style', function () {
|
||||
describe('1.0 nodes style', function () {
|
||||
it('properly creates host objects', function () {
|
||||
expect(callback(nodes10)).to.eql([
|
||||
{
|
||||
@ -57,7 +57,7 @@ describe('Nodes to host callback', function () {
|
||||
});
|
||||
});
|
||||
|
||||
context('2.0 nodes style', function () {
|
||||
describe('2.0 nodes style', function () {
|
||||
it('properly creates host objects', function () {
|
||||
expect(callback(nodes20)).to.eql([
|
||||
{
|
||||
@ -82,7 +82,7 @@ describe('Nodes to host callback', function () {
|
||||
});
|
||||
});
|
||||
|
||||
context('5.0 nodes style', function () {
|
||||
describe('5.0 nodes style', function () {
|
||||
it('properly creates host objects', function () {
|
||||
expect(callback(nodes50)).to.eql([
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user