@cabify/eslint-config 3.0.1-beta-12 → 3.0.1-beta-13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/configs/base.js +4 -2
  2. package/package.json +1 -1
package/configs/base.js CHANGED
@@ -19,6 +19,7 @@ import strict from './strict.js';
19
19
  import style from './style.js';
20
20
  import variables from './variables.js';
21
21
 
22
+ /*
22
23
  async function checkIsTSAvailable() {
23
24
  try {
24
25
  // Dynamically import the package
@@ -44,14 +45,15 @@ async function checkJestTSAvailable() {
44
45
  return false;
45
46
  }
46
47
  }
48
+ */
47
49
 
48
- const isTSAvailable = await checkIsTSAvailable();
50
+ const isTSAvailable = await isPackageAvailable('typescript');
49
51
  let tsConfigs = [];
50
52
  if (isTSAvailable) {
51
53
  const { tsLintConfig } = await import('./ts.js');
52
54
  tsConfigs = tsLintConfig;
53
55
  }
54
- const isJestAvailable = await checkJestTSAvailable();
56
+ const isJestAvailable = await isPackageAvailable('jest');
55
57
 
56
58
  const configs = [
57
59
  bestPractices,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cabify/eslint-config",
3
- "version": "3.0.1-beta-12",
3
+ "version": "3.0.1-beta-13",
4
4
  "description": "ESLint config for Cabify Javascript projects",
5
5
  "type": "module",
6
6
  "scripts": {