@richardscull/eslint-config 1.0.0 → 1.0.1
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.
- package/dist/index.js +6 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -14,7 +14,7 @@ import pluginHyoban from 'eslint-plugin-hyoban';
|
|
|
14
14
|
import typescriptEslint from 'typescript-eslint';
|
|
15
15
|
import pluginUnicorn from 'eslint-plugin-unicorn';
|
|
16
16
|
import pluginUnusedImports from 'eslint-plugin-unused-imports';
|
|
17
|
-
import { isPackageExists, getPackageInfo } from 'local-pkg';
|
|
17
|
+
import { isPackageExists, getPackageInfo, isPackageListed } from 'local-pkg';
|
|
18
18
|
import { readPackageUp } from 'read-package-up';
|
|
19
19
|
|
|
20
20
|
function importConfig() {
|
|
@@ -1060,8 +1060,11 @@ async function mergeDefaultOptions(options) {
|
|
|
1060
1060
|
const hasNext = isPackageExists("next");
|
|
1061
1061
|
const hasExpo = isPackageExists("expo");
|
|
1062
1062
|
const hasUnocss = isPackageExists("unocss");
|
|
1063
|
-
const tailwindPackageInfo = await
|
|
1064
|
-
|
|
1063
|
+
const [tailwindPackageInfo, tailwindPackageListed] = await Promise.all([
|
|
1064
|
+
getPackageInfo("tailwindcss"),
|
|
1065
|
+
isPackageListed("tailwindcss")
|
|
1066
|
+
]);
|
|
1067
|
+
const hasTailwindCSS = tailwindPackageListed && !!tailwindPackageInfo?.version;
|
|
1065
1068
|
/// keep-sorted
|
|
1066
1069
|
const defaultOptions = {
|
|
1067
1070
|
fileCase: false,
|