@ariel-salgado/eslint-config 0.0.1 → 0.0.2

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.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { FlatGitignoreOptions } from "eslint-config-flat-gitignore";
2
1
  import { FlatConfigComposer } from "eslint-flat-config-utils";
2
+ import { FlatGitignoreOptions } from "eslint-config-flat-gitignore";
3
3
  import { StylisticCustomizeOptions } from "@stylistic/eslint-plugin";
4
4
  import { ParserOptions } from "@typescript-eslint/parser";
5
5
  import { Linter } from "eslint";
package/dist/index.js CHANGED
@@ -1,5 +1,6 @@
1
- import { fileURLToPath } from "node:url";
2
1
  import { isPackageExists } from "local-pkg";
2
+ import { FlatConfigComposer } from "eslint-flat-config-utils";
3
+ import { fileURLToPath } from "node:url";
3
4
  import process$1 from "node:process";
4
5
  import plugin_node from "eslint-plugin-n";
5
6
  import plugin_ariel from "eslint-plugin-ariel";
@@ -13,7 +14,6 @@ import plugin_unused_imports from "eslint-plugin-unused-imports";
13
14
  import plugin_comments from "@eslint-community/eslint-plugin-eslint-comments";
14
15
  import { mergeProcessors, processorPassThrough } from "eslint-merge-processors";
15
16
  import globals from "globals";
16
- import { FlatConfigComposer } from "eslint-flat-config-utils";
17
17
 
18
18
  //#region src/utils.ts
19
19
  const scope_url = fileURLToPath(new URL(".", import.meta.url));
@@ -1365,11 +1365,7 @@ async function typescript(options = {}) {
1365
1365
  //#endregion
1366
1366
  //#region src/configs/tailwindcss.ts
1367
1367
  async function tailwindcss(options = {}) {
1368
- const { files = [
1369
- GLOB_CSS,
1370
- GLOB_SVELTE,
1371
- GLOB_HTML
1372
- ], overrides = {} } = options;
1368
+ const { files = [GLOB_SVELTE], overrides = {} } = options;
1373
1369
  await ensure_packages(["tailwindcss", "eslint-plugin-better-tailwindcss"]);
1374
1370
  const plugin_tailwindcss = await interop_default(import("eslint-plugin-better-tailwindcss"));
1375
1371
  return [{
@@ -1390,19 +1386,45 @@ async function perfectionist() {
1390
1386
  rules: {
1391
1387
  "perfectionist/sort-exports": ["error", {
1392
1388
  order: "asc",
1393
- type: "line-length"
1389
+ type: "line-length",
1390
+ groups: ["type-export", "value-export"],
1391
+ newlinesBetween: 1
1394
1392
  }],
1395
1393
  "perfectionist/sort-imports": ["error", {
1396
1394
  type: "line-length",
1397
1395
  order: "asc",
1398
1396
  groups: [
1399
- "type",
1397
+ "type-default",
1398
+ "type-named",
1400
1399
  "side-effect",
1401
- "sibling",
1400
+ "external-default",
1401
+ "external-named",
1402
+ "internal",
1402
1403
  "parent",
1403
- "index",
1404
- "external",
1405
- "internal"
1404
+ "sibling",
1405
+ "index"
1406
+ ],
1407
+ customGroups: [
1408
+ {
1409
+ groupName: "type-default",
1410
+ selector: "type",
1411
+ modifiers: ["default"]
1412
+ },
1413
+ {
1414
+ groupName: "type-named",
1415
+ selector: "type",
1416
+ modifiers: ["named"]
1417
+ },
1418
+ {
1419
+ groupName: "external-default",
1420
+ selector: "external",
1421
+ modifiers: ["default"]
1422
+ },
1423
+ {
1424
+ groupName: "external-named",
1425
+ selector: "external",
1426
+ modifiers: ["named"]
1427
+ }
1406
1428
  ],
1407
1429
  newlinesBetween: "always",
1408
1430
  sortSideEffects: true
@@ -1410,10 +1432,6 @@ async function perfectionist() {
1410
1432
  "perfectionist/sort-named-exports": ["error", {
1411
1433
  order: "asc",
1412
1434
  type: "line-length"
1413
- }],
1414
- "perfectionist/sort-named-imports": ["error", {
1415
- order: "asc",
1416
- type: "line-length"
1417
1435
  }]
1418
1436
  }
1419
1437
  }];
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@ariel-salgado/eslint-config",
3
3
  "type": "module",
4
- "version": "0.0.1",
4
+ "version": "0.0.2",
5
5
  "description": "ESLint config for @ariel-salgado.",
6
6
  "author": "Ariel Salgado <ariel.salgado.acevedo@gmail.com>",
7
7
  "license": "MIT",