@will-stone/eslint-config 27.0.0 → 27.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 +9 -9
- 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
|
|
17
|
-
const c = "?([cm])[jt]s?(x)", d = `**/*.${c}`, j = "**/*.?([cm])ts", x = "**/*.?([cm])tsx",
|
|
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
|
-
],
|
|
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: [
|
|
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: [
|
|
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: [
|
|
1122
|
+
files: [I, j, x],
|
|
1123
1123
|
languageOptions: {
|
|
1124
1124
|
parser: g,
|
|
1125
1125
|
parserOptions: {
|
|
@@ -1484,7 +1484,7 @@ async function Q(r) {
|
|
|
1484
1484
|
const e = await s(import("@vitest/eslint-plugin"));
|
|
1485
1485
|
return [
|
|
1486
1486
|
{
|
|
1487
|
-
files:
|
|
1487
|
+
files: T,
|
|
1488
1488
|
name: "will-stone/vitest",
|
|
1489
1489
|
plugins: { vitest: e },
|
|
1490
1490
|
rules: {
|
|
@@ -1632,7 +1632,7 @@ function Z(r, e) {
|
|
|
1632
1632
|
}
|
|
1633
1633
|
return t;
|
|
1634
1634
|
}
|
|
1635
|
-
const ee =
|
|
1635
|
+
const ee = S("eslint:ws");
|
|
1636
1636
|
async function re(r) {
|
|
1637
1637
|
const e = [], o = Object.values(m).map(({ dep: n }) => n), t = Z(o, r.cwd), l = m.filter(({ dep: n, optionName: a }) => (
|
|
1638
1638
|
// Is forced on.
|