Simplify tsconfig white/black lists

This commit is contained in:
Jordan Eldredge 2019-10-22 08:28:51 -07:00
parent 943b3284f9
commit f8ecb3965a
3 changed files with 4 additions and 15 deletions

View file

@ -20,7 +20,7 @@ function presetNameFromURL(url: string) {
}
}
async function loadButterchurnPresetMapURL(url) {
async function loadButterchurnPresetMapURL(url: string) {
const resp = await fetch(url);
const namesToPresetUrls = await resp.json();
return Object.keys(namesToPresetUrls).map((name: string) => {

View file

@ -101,7 +101,7 @@ export default function() {
const sortDecending = (a, b) => (b[sortKey] < a[sortKey] ? 1 : -1);
const sortFunction = sortDirection === "ASC" ? sortAscending : sortDecending;
let filterFunction: (string) => boolean = () => true;
let filterFunction = () => true;
if (searchQuery) {
const normalizedQuery = searchQuery.toLowerCase();

View file

@ -12,17 +12,6 @@
"noEmit": true,
"pretty": true
},
"include": [
"js/**/*.js",
"js/**/*.ts",
"js/**/*.tsx",
"modern/**/*.ts",
"modern/**/*.tsx"
],
"exclude": [
"node_modules",
"**/*.spec.ts",
"demo/built",
"modern/src/Dashboard.tsx"
]
"include": ["**/*.ts", "**/*.tsx"],
"exclude": ["node_modules", "demo/built"]
}