@luxass/eslint-config 4.2.2 → 4.2.4
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/{chunk-IASQD7KX.mjs → chunk-3ZMCYBTA.mjs} +2 -14
- package/dist/chunk-MX3BZIQW.mjs +117 -0
- package/dist/{chunk-K6TLNQJF.mjs → chunk-RAIFRO2A.mjs} +0 -1
- package/dist/configs/astro.cjs +45 -7
- package/dist/configs/astro.d.cts +1 -1
- package/dist/configs/astro.d.ts +1 -1
- package/dist/configs/astro.mjs +1 -1
- package/dist/configs/comments.d.cts +1 -1
- package/dist/configs/comments.d.ts +1 -1
- package/dist/configs/formatters.d.cts +1 -1
- package/dist/configs/formatters.d.ts +1 -1
- package/dist/configs/ignores.d.cts +1 -1
- package/dist/configs/ignores.d.ts +1 -1
- package/dist/configs/imports.d.cts +1 -1
- package/dist/configs/imports.d.ts +1 -1
- package/dist/configs/index.cjs +373 -22
- package/dist/configs/index.d.cts +1 -1
- package/dist/configs/index.d.ts +1 -1
- package/dist/configs/index.mjs +12 -4
- package/dist/configs/javascript.cjs +0 -1
- package/dist/configs/javascript.d.cts +1 -1
- package/dist/configs/javascript.d.ts +1 -1
- package/dist/configs/javascript.mjs +1 -1
- package/dist/configs/jsdoc.d.cts +1 -1
- package/dist/configs/jsdoc.d.ts +1 -1
- package/dist/configs/jsonc.d.cts +1 -1
- package/dist/configs/jsonc.d.ts +1 -1
- package/dist/configs/markdown.d.cts +1 -1
- package/dist/configs/markdown.d.ts +1 -1
- package/dist/configs/nextjs.d.cts +1 -1
- package/dist/configs/nextjs.d.ts +1 -1
- package/dist/configs/node.d.cts +1 -1
- package/dist/configs/node.d.ts +1 -1
- package/dist/configs/perfectionist.d.cts +1 -1
- package/dist/configs/perfectionist.d.ts +1 -1
- package/dist/configs/react.d.cts +1 -1
- package/dist/configs/react.d.ts +1 -1
- package/dist/configs/solid.d.cts +1 -1
- package/dist/configs/solid.d.ts +1 -1
- package/dist/configs/sort.d.cts +1 -1
- package/dist/configs/sort.d.ts +1 -1
- package/dist/configs/stylistic.d.cts +1 -1
- package/dist/configs/stylistic.d.ts +1 -1
- package/dist/configs/tailwindcss.d.cts +1 -1
- package/dist/configs/tailwindcss.d.ts +1 -1
- package/dist/configs/test.d.cts +1 -1
- package/dist/configs/test.d.ts +1 -1
- package/dist/configs/toml.d.cts +1 -1
- package/dist/configs/toml.d.ts +1 -1
- package/dist/configs/typescript.cjs +2 -14
- package/dist/configs/typescript.d.cts +1 -1
- package/dist/configs/typescript.d.ts +1 -1
- package/dist/configs/typescript.mjs +1 -1
- package/dist/configs/unicorn.d.cts +1 -1
- package/dist/configs/unicorn.d.ts +1 -1
- package/dist/configs/unocss.d.cts +1 -1
- package/dist/configs/unocss.d.ts +1 -1
- package/dist/configs/vue.d.cts +1 -1
- package/dist/configs/vue.d.ts +1 -1
- package/dist/configs/yaml.d.cts +1 -1
- package/dist/configs/yaml.d.ts +1 -1
- package/dist/index.cjs +62 -83
- package/dist/index.d.cts +2 -12
- package/dist/index.d.ts +2 -12
- package/dist/index.mjs +11 -34
- package/dist/{types-A-NO9UF1.d.cts → types-HqEzZfQU.d.cts} +6 -6
- package/dist/{types-A-NO9UF1.d.ts → types-HqEzZfQU.d.ts} +6 -6
- package/package.json +1 -1
- package/dist/chunk-GBLPCM3X.mjs +0 -79
- /package/dist/{chunk-ME2OAMS3.mjs → chunk-YGZJUKJC.mjs} +0 -0
|
@@ -434,11 +434,6 @@ interface FormattersOptions {
|
|
|
434
434
|
}
|
|
435
435
|
declare function formatters(options?: FormattersOptions | true, stylistic?: StylisticConfig): Promise<FlatConfigItem[]>;
|
|
436
436
|
|
|
437
|
-
interface NoOnlyTestsOptions {
|
|
438
|
-
blocks?: string[];
|
|
439
|
-
focus?: string[];
|
|
440
|
-
}
|
|
441
|
-
|
|
442
437
|
interface TOMLOptions {
|
|
443
438
|
/**
|
|
444
439
|
* Override rules.
|
|
@@ -487,6 +482,11 @@ interface SolidOptions {
|
|
|
487
482
|
}
|
|
488
483
|
declare function solid(options?: SolidOptions): Promise<FlatConfigItem[]>;
|
|
489
484
|
|
|
485
|
+
interface NoOnlyTestsOptions {
|
|
486
|
+
blocks?: string[];
|
|
487
|
+
focus?: string[];
|
|
488
|
+
}
|
|
489
|
+
|
|
490
490
|
type WrapRuleConfig<T extends {
|
|
491
491
|
[key: string]: any;
|
|
492
492
|
}> = {
|
|
@@ -665,4 +665,4 @@ interface ConfigOptions {
|
|
|
665
665
|
solid?: boolean | SolidOptions;
|
|
666
666
|
}
|
|
667
667
|
|
|
668
|
-
export { type AstroOptions as A, type ConfigOptions as C, type FormattersOptions as F, type JavaScriptOptions as J, type NextJSOptions as N, type ReactOptions as R, type StylisticConfig as S, type TypeScriptOptions as T, type UnoCSSOptions as U, type VueOptions as V, type YAMLOptions as Y, jsonc as a, type JSONOptions as b, type StylisticOptions as c, test as d, type TestOptions as e, astro as f, tailwindcss as g, type TailwindCSSOptions as h, formatters as i, javascript as j,
|
|
668
|
+
export { type AstroOptions as A, type ConfigOptions as C, type FormattersOptions as F, type JavaScriptOptions as J, type NextJSOptions as N, type ReactOptions as R, type StylisticConfig as S, type TypeScriptOptions as T, type UnoCSSOptions as U, type VueOptions as V, type YAMLOptions as Y, jsonc as a, type JSONOptions as b, type StylisticOptions as c, test as d, type TestOptions as e, astro as f, tailwindcss as g, type TailwindCSSOptions as h, formatters as i, javascript as j, toml as k, type TOMLOptions as l, solid as m, nextjs as n, type SolidOptions as o, type FlatConfigItem as p, type Awaitable as q, react as r, stylistic as s, typescript as t, unocss as u, vue as v, type UserConfigItem as w, StylisticConfigDefaults as x, yaml as y };
|
package/package.json
CHANGED
package/dist/chunk-GBLPCM3X.mjs
DELETED
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
interop
|
|
3
|
-
} from "./chunk-4YBQZLPS.mjs";
|
|
4
|
-
import {
|
|
5
|
-
GLOB_ASTRO
|
|
6
|
-
} from "./chunk-ATRL3UZP.mjs";
|
|
7
|
-
|
|
8
|
-
// src/configs/astro.ts
|
|
9
|
-
async function astro(options) {
|
|
10
|
-
const {
|
|
11
|
-
a11y = false,
|
|
12
|
-
files = [GLOB_ASTRO],
|
|
13
|
-
overrides = {},
|
|
14
|
-
typescript = true
|
|
15
|
-
} = options;
|
|
16
|
-
const [
|
|
17
|
-
pluginAstro,
|
|
18
|
-
parserAstro,
|
|
19
|
-
pluginA11y
|
|
20
|
-
] = await Promise.all([
|
|
21
|
-
interop(import("eslint-plugin-astro")),
|
|
22
|
-
interop(import("astro-eslint-parser")),
|
|
23
|
-
...a11y ? [interop(import("eslint-plugin-jsx-a11y"))] : []
|
|
24
|
-
]);
|
|
25
|
-
return [
|
|
26
|
-
{
|
|
27
|
-
name: "luxass:astro:setup",
|
|
28
|
-
plugins: {
|
|
29
|
-
astro: pluginAstro,
|
|
30
|
-
...a11y ? { "jsx-a11y": pluginA11y } : {}
|
|
31
|
-
}
|
|
32
|
-
},
|
|
33
|
-
{
|
|
34
|
-
name: "luxass:astro:rules",
|
|
35
|
-
files,
|
|
36
|
-
languageOptions: {
|
|
37
|
-
// @ts-expect-error hmmm
|
|
38
|
-
globals: {
|
|
39
|
-
...pluginAstro.configs.base.overrides[0].env
|
|
40
|
-
},
|
|
41
|
-
parser: parserAstro,
|
|
42
|
-
parserOptions: {
|
|
43
|
-
extraFileExtensions: [".astro"],
|
|
44
|
-
parser: typescript ? await interop(import("@typescript-eslint/parser")) : null,
|
|
45
|
-
sourceType: "module"
|
|
46
|
-
}
|
|
47
|
-
},
|
|
48
|
-
// @ts-expect-error hmmm
|
|
49
|
-
rules: {
|
|
50
|
-
"style/jsx-closing-tag-location": "off",
|
|
51
|
-
"style/jsx-indent": "off",
|
|
52
|
-
"style/jsx-one-expression-per-line": "off",
|
|
53
|
-
...pluginAstro.configs.all.rules,
|
|
54
|
-
"style/multiline-ternary": ["error", "never"],
|
|
55
|
-
...overrides
|
|
56
|
-
}
|
|
57
|
-
},
|
|
58
|
-
{
|
|
59
|
-
name: "luxass:astro:rules:scripts",
|
|
60
|
-
files: [
|
|
61
|
-
"**/*.astro/*.js",
|
|
62
|
-
"*.astro/*.js"
|
|
63
|
-
],
|
|
64
|
-
languageOptions: {
|
|
65
|
-
// @ts-expect-error hmmm
|
|
66
|
-
globals: {
|
|
67
|
-
...pluginAstro.configs.base.overrides[1].env
|
|
68
|
-
},
|
|
69
|
-
parserOptions: {
|
|
70
|
-
sourceType: "module"
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
];
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
export {
|
|
78
|
-
astro
|
|
79
|
-
};
|
|
File without changes
|