Skip to content

Commit

Permalink
another test
Browse files Browse the repository at this point in the history
  • Loading branch information
Jorge Ezequiel Fabbroni Assum committed Nov 29, 2024
1 parent ebf0128 commit f1c790b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions configs/base.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ import strict from './strict.js';
import style from './style.js';
import variables from './variables.js';

/*
async function checkIsTSAvailable() {
try {
// Dynamically import the package
Expand All @@ -44,14 +45,15 @@ async function checkJestTSAvailable() {
return false;
}
}
*/

const isTSAvailable = await checkIsTSAvailable();
const isTSAvailable = await isPackageAvailable('typescript');
let tsConfigs = [];
if (isTSAvailable) {
const { tsLintConfig } = await import('./ts.js');
tsConfigs = tsLintConfig;
}
const isJestAvailable = await checkJestTSAvailable();
const isJestAvailable = await isPackageAvailable('jest');

const configs = [
bestPractices,
Expand Down

0 comments on commit f1c790b

Please sign in to comment.