@ariel-salgado/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.d.mts +2 -1
- package/dist/index.mjs +3 -3
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -17389,7 +17389,7 @@ interface OptionsConfig extends OptionsComponentExts, OptionsProjectType {
|
|
|
17389
17389
|
*
|
|
17390
17390
|
* @default false
|
|
17391
17391
|
*/
|
|
17392
|
-
tailwindcss?: boolean |
|
|
17392
|
+
tailwindcss?: boolean | TailwindCSSOptions;
|
|
17393
17393
|
/**
|
|
17394
17394
|
* Enable pnpm (workspace/catalogs) support.
|
|
17395
17395
|
*
|
|
@@ -17422,6 +17422,7 @@ interface OptionsConfig extends OptionsComponentExts, OptionsProjectType {
|
|
|
17422
17422
|
yaml?: TypedFlatConfigItem['rules'];
|
|
17423
17423
|
toml?: TypedFlatConfigItem['rules'];
|
|
17424
17424
|
svelte?: TypedFlatConfigItem['rules'];
|
|
17425
|
+
tailwindcss?: TypedFlatConfigItem['rules'];
|
|
17425
17426
|
};
|
|
17426
17427
|
}
|
|
17427
17428
|
//#endregion
|
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { FlatConfigComposer } from "eslint-flat-config-utils";
|
|
2
|
+
import { findUp } from "find-up-simple";
|
|
2
3
|
import plugin_e18e from "@e18e/eslint-plugin";
|
|
3
4
|
import plugin_comments from "@eslint-community/eslint-plugin-eslint-comments";
|
|
4
5
|
import "eslint-config-flat-gitignore";
|
|
@@ -12,7 +13,6 @@ import plugin_unicorn from "eslint-plugin-unicorn";
|
|
|
12
13
|
import plugin_unused_imports from "eslint-plugin-unused-imports";
|
|
13
14
|
import process from "node:process";
|
|
14
15
|
import { readFile } from "node:fs/promises";
|
|
15
|
-
import { findUp } from "find-up-simple";
|
|
16
16
|
import { isPackageExists } from "local-pkg";
|
|
17
17
|
import globals from "globals";
|
|
18
18
|
import { fileURLToPath } from "node:url";
|
|
@@ -1389,7 +1389,7 @@ async function svelte(options = {}) {
|
|
|
1389
1389
|
//#endregion
|
|
1390
1390
|
//#region src/configs/tailwindcss.ts
|
|
1391
1391
|
async function tailwindcss(options = {}) {
|
|
1392
|
-
const { files = [GLOB_SVELTE], overrides = {}, entryPoint = "src/app.css", printWidth = 100, stylistic = true, cwd = "." } = options;
|
|
1392
|
+
const { files = [GLOB_HTML, GLOB_SVELTE], overrides = {}, entryPoint = "src/app.css", printWidth = 100, stylistic = true, cwd = "." } = options;
|
|
1393
1393
|
const { indent = "tab" } = typeof stylistic === "boolean" ? {} : stylistic;
|
|
1394
1394
|
const packages_to_ensure = ["eslint-plugin-better-tailwindcss"];
|
|
1395
1395
|
if (has_svelte()) packages_to_ensure.push("svelte-eslint-parser");
|
|
@@ -1740,7 +1740,7 @@ const default_plugin_renaming = {
|
|
|
1740
1740
|
* The merged ESLint configurations.
|
|
1741
1741
|
*/
|
|
1742
1742
|
function defineConfig(options = {}, ...userConfigs) {
|
|
1743
|
-
const { autoRenamePlugins = true, componentExts = [], e18e: enableE18e = true, gitignore: enableGitignore = true, ignores: userIgnores = [], imports: enableImports = true, jsdoc: enableJsdoc = true, node: enableNode = true, pnpm: enableCatalogs =
|
|
1743
|
+
const { autoRenamePlugins = true, componentExts = [], e18e: enableE18e = true, gitignore: enableGitignore = true, ignores: userIgnores = [], imports: enableImports = true, jsdoc: enableJsdoc = true, node: enableNode = true, pnpm: enableCatalogs = !!findUp("pnpm-workspace.yaml"), regexp: enableRegexp = true, svelte: enableSvelte = has_svelte(), tailwindcss: enableTailwindcss = has_tailwindcss(), type: appType = "app", typescript: enableTypeScript = has_typescript(), unicorn: enableUnicorn = true } = options;
|
|
1744
1744
|
const is_in_editor = is_in_editor_env();
|
|
1745
1745
|
const stylistic_options = options.stylistic === false ? false : typeof options.stylistic === "object" ? options.stylistic : {};
|
|
1746
1746
|
const configs = [];
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ariel-salgado/eslint-config",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.1",
|
|
5
5
|
"description": "Eslint config for @ariel-salgado.",
|
|
6
6
|
"author": "Ariel Salgado <ariel.salgado.acevedo@gmail.com> (https://github.com/ariel-salgado/)",
|
|
7
7
|
"license": "MIT",
|