@will-stone/eslint-config 27.0.0 → 27.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.
Files changed (2) hide show
  1. package/dist/index.js +11 -10
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -13,14 +13,14 @@ import C from "eslint-plugin-unicorn";
13
13
  import { globbySync as N } from "globby";
14
14
  import { readFileSync as E } from "node:fs";
15
15
  import L from "node:path";
16
- import A from "debug";
17
- const c = "?([cm])[jt]s?(x)", d = `**/*.${c}`, j = "**/*.?([cm])ts", x = "**/*.?([cm])tsx", S = [
16
+ import S from "debug";
17
+ const c = "?([cm])[jt]s?(x)", d = `**/*.${c}`, j = "**/*.?([cm])ts", x = "**/*.?([cm])tsx", T = [
18
18
  `**/__tests__/**/*.${c}`,
19
19
  `**/*.spec.${c}`,
20
20
  `**/*.test.${c}`,
21
21
  `**/*.bench.${c}`,
22
22
  `**/*.benchmark.${c}`
23
- ], T = "**/*.astro", B = "**/*.astro/*.ts", I = "**/*.{jsx,tsx,astro}", G = [
23
+ ], A = "**/*.astro", I = "**/*.astro/*.ts", B = "**/*.{jsx,tsx,astro}", G = [
24
24
  "**/node_modules",
25
25
  "**/dist",
26
26
  "**/package-lock.json",
@@ -57,7 +57,7 @@ async function K(r) {
57
57
  ]);
58
58
  return [
59
59
  {
60
- files: [T],
60
+ files: [A],
61
61
  languageOptions: {
62
62
  globals: e.environments.astro.globals,
63
63
  parser: o,
@@ -229,7 +229,7 @@ function $() {
229
229
  "no-dupe-else-if": "error",
230
230
  "no-dupe-keys": "error",
231
231
  "no-duplicate-case": "error",
232
- "no-duplicate-imports": "error",
232
+ "no-duplicate-imports": ["error", { allowSeparateTypeImports: !0 }],
233
233
  "no-else-return": "warn",
234
234
  "no-empty": "error",
235
235
  "no-empty-character-class": "error",
@@ -1082,7 +1082,7 @@ async function X({
1082
1082
  const e = r === !1 || r === !0 ? {} : r, o = await s(import("eslint-plugin-tailwindcss"));
1083
1083
  return [
1084
1084
  {
1085
- files: [I],
1085
+ files: [B],
1086
1086
  name: "will-stone/tailwind",
1087
1087
  plugins: { tailwindcss: o },
1088
1088
  rules: {
@@ -1119,7 +1119,7 @@ for (const r of w.configs["flat/all"])
1119
1119
  function H() {
1120
1120
  return [
1121
1121
  {
1122
- files: [B, j, x],
1122
+ files: [I, j, x],
1123
1123
  languageOptions: {
1124
1124
  parser: g,
1125
1125
  parserOptions: {
@@ -1252,7 +1252,8 @@ function H() {
1252
1252
  // Too confusing to fix.
1253
1253
  "@typescript-eslint/no-unsafe-argument": "off",
1254
1254
  "@typescript-eslint/no-unsafe-assignment": "error",
1255
- "@typescript-eslint/no-unsafe-call": "error",
1255
+ // Doesn't seem to help and makes code more verbose.
1256
+ "@typescript-eslint/no-unsafe-call": "off",
1256
1257
  "@typescript-eslint/no-unsafe-enum-comparison": "error",
1257
1258
  "@typescript-eslint/no-unsafe-member-access": "error",
1258
1259
  "@typescript-eslint/no-unsafe-return": "error",
@@ -1484,7 +1485,7 @@ async function Q(r) {
1484
1485
  const e = await s(import("@vitest/eslint-plugin"));
1485
1486
  return [
1486
1487
  {
1487
- files: S,
1488
+ files: T,
1488
1489
  name: "will-stone/vitest",
1489
1490
  plugins: { vitest: e },
1490
1491
  rules: {
@@ -1632,7 +1633,7 @@ function Z(r, e) {
1632
1633
  }
1633
1634
  return t;
1634
1635
  }
1635
- const ee = A("eslint:ws");
1636
+ const ee = S("eslint:ws");
1636
1637
  async function re(r) {
1637
1638
  const e = [], o = Object.values(m).map(({ dep: n }) => n), t = Z(o, r.cwd), l = m.filter(({ dep: n, optionName: a }) => (
1638
1639
  // Is forced on.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@will-stone/eslint-config",
3
- "version": "27.0.0",
3
+ "version": "27.0.2",
4
4
  "description": "Will Stone's ESLint config",
5
5
  "keywords": [
6
6
  "eslint-config"