TSLint → ESLint (#21006)

* Alphabetized tslint and tsconfig files

* Optimized tsconfig files

* Optimized editorconfig & prettier config files

… to reduce redundancy

* Switched to @grafana/tsconfig

… and:
* de-duped options
* removed options with default values

* Fixed nasty issue with types for nested slate-react

* Replaced TSLint with ESLint

* TSLint disables → ESLint disables

… also JSHint removals, which haven’t had an affect since it was replaced with TSLint.

* Compliances for ESLint, Prettier and TypeScript

* Updated lockfile
This commit is contained in:
Steven Vachon
2020-02-07 20:40:04 -05:00
committed by GitHub
parent 7dcf5887e6
commit f48169633c
86 changed files with 909 additions and 746 deletions

View File

@@ -1,26 +1,25 @@
define([],
function() {
define([], function() {
'use strict';
return {
create: function() {
return {
title: "",
title: '',
tags: [],
style: "dark",
style: 'dark',
timezone: 'browser',
editable: true,
failover: false,
panel_hints: true,
rows: [],
pulldowns: [ { type: 'templating' }, { type: 'annotations' } ],
nav: [ { type: 'timepicker' } ],
time: {from: 'now-6h', to: 'now'},
pulldowns: [{ type: 'templating' }, { type: 'annotations' }],
nav: [{ type: 'timepicker' }],
time: { from: 'now-6h', to: 'now' },
templating: {
list: []
list: [],
},
refresh: '10s',
};
}
},
};
});