@luxass/eslint-config 4.2.5 → 4.2.7
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/README.md +35 -54
- package/dist/index.cjs +166 -479
- package/dist/index.d.cts +733 -12
- package/dist/index.d.ts +733 -12
- package/dist/{configs/index.cjs → index.js} +300 -542
- package/package.json +51 -86
- package/dist/chunk-4YBQZLPS.mjs +0 -68
- package/dist/chunk-4YT54JFZ.mjs +0 -48
- package/dist/chunk-5NK24IKQ.mjs +0 -26
- package/dist/chunk-6T7MXPCT.mjs +0 -17
- package/dist/chunk-7ODEIBF5.mjs +0 -144
- package/dist/chunk-AQRBQAKE.mjs +0 -48
- package/dist/chunk-DAJA5AV3.mjs +0 -29
- package/dist/chunk-DCOLHWHC.mjs +0 -269
- package/dist/chunk-DVQQVCGF.mjs +0 -45
- package/dist/chunk-EHWA727G.mjs +0 -69
- package/dist/chunk-FNOIGW47.mjs +0 -104
- package/dist/chunk-KOXCJL3C.mjs +0 -109
- package/dist/chunk-MMSZW2UW.mjs +0 -92
- package/dist/chunk-MT5P5EKH.mjs +0 -207
- package/dist/chunk-O2BXTQHK.mjs +0 -117
- package/dist/chunk-QDSV5ONX.mjs +0 -93
- package/dist/chunk-QMGT2Z63.mjs +0 -57
- package/dist/chunk-RVSUTDCE.mjs +0 -57
- package/dist/chunk-SPD4DGYN.mjs +0 -274
- package/dist/chunk-UITQW3RA.mjs +0 -293
- package/dist/chunk-V57HXOSW.mjs +0 -81
- package/dist/chunk-WDSV2EFG.mjs +0 -7
- package/dist/chunk-WOBGA3K2.mjs +0 -63
- package/dist/chunk-WSQOWO67.mjs +0 -16
- package/dist/chunk-XBASVDU6.mjs +0 -215
- package/dist/chunk-XPKGXA67.mjs +0 -183
- package/dist/chunk-YGZJUKJC.mjs +0 -0
- package/dist/chunk-YO3IYQ2L.mjs +0 -220
- package/dist/configs/astro.cjs +0 -179
- package/dist/configs/astro.d.cts +0 -11
- package/dist/configs/astro.d.ts +0 -11
- package/dist/configs/astro.mjs +0 -8
- package/dist/configs/comments.cjs +0 -63
- package/dist/configs/comments.d.cts +0 -15
- package/dist/configs/comments.d.ts +0 -15
- package/dist/configs/comments.mjs +0 -6
- package/dist/configs/formatters.cjs +0 -274
- package/dist/configs/formatters.d.cts +0 -11
- package/dist/configs/formatters.d.ts +0 -11
- package/dist/configs/formatters.mjs +0 -9
- package/dist/configs/ignores.cjs +0 -96
- package/dist/configs/ignores.d.cts +0 -15
- package/dist/configs/ignores.d.ts +0 -15
- package/dist/configs/ignores.mjs +0 -7
- package/dist/configs/imports.cjs +0 -104
- package/dist/configs/imports.d.cts +0 -23
- package/dist/configs/imports.d.ts +0 -23
- package/dist/configs/imports.mjs +0 -7
- package/dist/configs/index.d.cts +0 -20
- package/dist/configs/index.d.ts +0 -20
- package/dist/configs/index.mjs +0 -104
- package/dist/configs/javascript.cjs +0 -324
- package/dist/configs/javascript.d.cts +0 -11
- package/dist/configs/javascript.d.ts +0 -11
- package/dist/configs/javascript.mjs +0 -7
- package/dist/configs/jsdoc.cjs +0 -85
- package/dist/configs/jsdoc.d.cts +0 -27
- package/dist/configs/jsdoc.d.ts +0 -27
- package/dist/configs/jsdoc.mjs +0 -7
- package/dist/configs/jsonc.cjs +0 -155
- package/dist/configs/jsonc.d.cts +0 -11
- package/dist/configs/jsonc.d.ts +0 -11
- package/dist/configs/jsonc.mjs +0 -8
- package/dist/configs/markdown.cjs +0 -164
- package/dist/configs/markdown.d.cts +0 -35
- package/dist/configs/markdown.d.ts +0 -35
- package/dist/configs/markdown.mjs +0 -8
- package/dist/configs/nextjs.cjs +0 -180
- package/dist/configs/nextjs.d.cts +0 -11
- package/dist/configs/nextjs.d.ts +0 -11
- package/dist/configs/nextjs.mjs +0 -8
- package/dist/configs/node.cjs +0 -60
- package/dist/configs/node.d.cts +0 -15
- package/dist/configs/node.d.ts +0 -15
- package/dist/configs/node.mjs +0 -6
- package/dist/configs/perfectionist.cjs +0 -51
- package/dist/configs/perfectionist.d.cts +0 -20
- package/dist/configs/perfectionist.d.ts +0 -20
- package/dist/configs/perfectionist.mjs +0 -6
- package/dist/configs/react.cjs +0 -379
- package/dist/configs/react.d.cts +0 -11
- package/dist/configs/react.d.ts +0 -11
- package/dist/configs/react.mjs +0 -8
- package/dist/configs/solid.cjs +0 -360
- package/dist/configs/solid.d.cts +0 -11
- package/dist/configs/solid.d.ts +0 -11
- package/dist/configs/solid.mjs +0 -8
- package/dist/configs/sort.cjs +0 -240
- package/dist/configs/sort.d.cts +0 -26
- package/dist/configs/sort.d.ts +0 -26
- package/dist/configs/sort.mjs +0 -8
- package/dist/configs/stylistic.cjs +0 -98
- package/dist/configs/stylistic.d.cts +0 -11
- package/dist/configs/stylistic.d.ts +0 -11
- package/dist/configs/stylistic.mjs +0 -9
- package/dist/configs/tailwindcss.cjs +0 -148
- package/dist/configs/tailwindcss.d.cts +0 -11
- package/dist/configs/tailwindcss.d.ts +0 -11
- package/dist/configs/tailwindcss.mjs +0 -8
- package/dist/configs/test.cjs +0 -206
- package/dist/configs/test.d.cts +0 -11
- package/dist/configs/test.d.ts +0 -11
- package/dist/configs/test.mjs +0 -9
- package/dist/configs/toml.cjs +0 -131
- package/dist/configs/toml.d.cts +0 -11
- package/dist/configs/toml.d.ts +0 -11
- package/dist/configs/toml.mjs +0 -8
- package/dist/configs/typescript.cjs +0 -291
- package/dist/configs/typescript.d.cts +0 -11
- package/dist/configs/typescript.d.ts +0 -11
- package/dist/configs/typescript.mjs +0 -8
- package/dist/configs/unicorn.cjs +0 -91
- package/dist/configs/unicorn.d.cts +0 -15
- package/dist/configs/unicorn.d.ts +0 -15
- package/dist/configs/unicorn.mjs +0 -6
- package/dist/configs/unocss.cjs +0 -133
- package/dist/configs/unocss.d.cts +0 -11
- package/dist/configs/unocss.d.ts +0 -11
- package/dist/configs/unocss.mjs +0 -8
- package/dist/configs/vue.cjs +0 -293
- package/dist/configs/vue.d.cts +0 -11
- package/dist/configs/vue.d.ts +0 -11
- package/dist/configs/vue.mjs +0 -8
- package/dist/configs/yaml.cjs +0 -143
- package/dist/configs/yaml.d.cts +0 -11
- package/dist/configs/yaml.d.ts +0 -11
- package/dist/configs/yaml.mjs +0 -8
- package/dist/custom-rules/utils.cjs +0 -31
- package/dist/custom-rules/utils.d.cts +0 -6
- package/dist/custom-rules/utils.d.ts +0 -6
- package/dist/custom-rules/utils.mjs +0 -6
- package/dist/globs.cjs +0 -158
- package/dist/globs.d.cts +0 -28
- package/dist/globs.d.ts +0 -28
- package/dist/globs.mjs +0 -56
- package/dist/index.mjs +0 -284
- package/dist/types-HqEzZfQU.d.cts +0 -668
- package/dist/types-HqEzZfQU.d.ts +0 -668
package/dist/globs.cjs
DELETED
|
@@ -1,158 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __export = (target, all) => {
|
|
7
|
-
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
-
};
|
|
10
|
-
var __copyProps = (to, from, except, desc) => {
|
|
11
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
-
for (let key of __getOwnPropNames(from))
|
|
13
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
-
}
|
|
16
|
-
return to;
|
|
17
|
-
};
|
|
18
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
-
|
|
20
|
-
// src/globs.ts
|
|
21
|
-
var globs_exports = {};
|
|
22
|
-
__export(globs_exports, {
|
|
23
|
-
GLOB_ASTRO: () => GLOB_ASTRO,
|
|
24
|
-
GLOB_CSS: () => GLOB_CSS,
|
|
25
|
-
GLOB_EXCLUDE: () => GLOB_EXCLUDE,
|
|
26
|
-
GLOB_HTML: () => GLOB_HTML,
|
|
27
|
-
GLOB_JS: () => GLOB_JS,
|
|
28
|
-
GLOB_JSON: () => GLOB_JSON,
|
|
29
|
-
GLOB_JSON5: () => GLOB_JSON5,
|
|
30
|
-
GLOB_JSONC: () => GLOB_JSONC,
|
|
31
|
-
GLOB_JSX: () => GLOB_JSX,
|
|
32
|
-
GLOB_LESS: () => GLOB_LESS,
|
|
33
|
-
GLOB_MARKDOWN: () => GLOB_MARKDOWN,
|
|
34
|
-
GLOB_MARKDOWN_CODE: () => GLOB_MARKDOWN_CODE,
|
|
35
|
-
GLOB_MARKDOWN_IN_MARKDOWN: () => GLOB_MARKDOWN_IN_MARKDOWN,
|
|
36
|
-
GLOB_NEXTJS_OG: () => GLOB_NEXTJS_OG,
|
|
37
|
-
GLOB_NEXTJS_ROUTES: () => GLOB_NEXTJS_ROUTES,
|
|
38
|
-
GLOB_POSTCSS: () => GLOB_POSTCSS,
|
|
39
|
-
GLOB_SCSS: () => GLOB_SCSS,
|
|
40
|
-
GLOB_SRC: () => GLOB_SRC,
|
|
41
|
-
GLOB_SRC_EXT: () => GLOB_SRC_EXT,
|
|
42
|
-
GLOB_STYLE: () => GLOB_STYLE,
|
|
43
|
-
GLOB_TESTS: () => GLOB_TESTS,
|
|
44
|
-
GLOB_TOML: () => GLOB_TOML,
|
|
45
|
-
GLOB_TS: () => GLOB_TS,
|
|
46
|
-
GLOB_TSX: () => GLOB_TSX,
|
|
47
|
-
GLOB_VUE: () => GLOB_VUE,
|
|
48
|
-
GLOB_YAML: () => GLOB_YAML
|
|
49
|
-
});
|
|
50
|
-
module.exports = __toCommonJS(globs_exports);
|
|
51
|
-
var GLOB_SRC_EXT = "?([cm])[jt]s?(x)";
|
|
52
|
-
var GLOB_SRC = `**/*.${GLOB_SRC_EXT}`;
|
|
53
|
-
var GLOB_JS = "**/*.?([cm])js";
|
|
54
|
-
var GLOB_JSX = "**/*.?([cm])jsx";
|
|
55
|
-
var GLOB_TS = "**/*.?([cm])ts";
|
|
56
|
-
var GLOB_TSX = "**/*.?([cm])tsx";
|
|
57
|
-
var GLOB_STYLE = "**/*.{c,le,sc}ss";
|
|
58
|
-
var GLOB_CSS = "**/*.css";
|
|
59
|
-
var GLOB_POSTCSS = "**/*.{p,post}css";
|
|
60
|
-
var GLOB_LESS = "**/*.less";
|
|
61
|
-
var GLOB_SCSS = "**/*.scss";
|
|
62
|
-
var GLOB_JSON = "**/*.json";
|
|
63
|
-
var GLOB_JSON5 = "**/*.json5";
|
|
64
|
-
var GLOB_JSONC = "**/*.jsonc";
|
|
65
|
-
var GLOB_MARKDOWN = "**/*.md";
|
|
66
|
-
var GLOB_MARKDOWN_IN_MARKDOWN = "**/*.md/*.md";
|
|
67
|
-
var GLOB_VUE = "**/*.vue";
|
|
68
|
-
var GLOB_YAML = "**/*.y?(a)ml";
|
|
69
|
-
var GLOB_TOML = "**/*.toml";
|
|
70
|
-
var GLOB_HTML = "**/*.htm?(l)";
|
|
71
|
-
var GLOB_ASTRO = "**/*.astro";
|
|
72
|
-
var GLOB_MARKDOWN_CODE = `${GLOB_MARKDOWN}/${GLOB_SRC}`;
|
|
73
|
-
var GLOB_TESTS = [
|
|
74
|
-
`**/__tests__/**/*.${GLOB_SRC_EXT}`,
|
|
75
|
-
`**/*.spec.${GLOB_SRC_EXT}`,
|
|
76
|
-
`**/*.test.${GLOB_SRC_EXT}`,
|
|
77
|
-
`**/*.bench.${GLOB_SRC_EXT}`,
|
|
78
|
-
`**/*.benchmark.${GLOB_SRC_EXT}`
|
|
79
|
-
];
|
|
80
|
-
var GLOB_NEXTJS_OG = [
|
|
81
|
-
`**/app/**/opengraph-image.[jt]s?(x)`,
|
|
82
|
-
`**/app/**/twitter-image.[jt]s?(x)`,
|
|
83
|
-
`**/app/**/route.[jt]s?(x)`
|
|
84
|
-
];
|
|
85
|
-
var GLOB_NEXTJS_ROUTES = [
|
|
86
|
-
`**/app/**/page.${GLOB_SRC_EXT}`,
|
|
87
|
-
`**/app/**/layout.${GLOB_SRC_EXT}`,
|
|
88
|
-
`**/app/**/error.${GLOB_SRC_EXT}`,
|
|
89
|
-
`**/app/**/template.${GLOB_SRC_EXT}`,
|
|
90
|
-
`**/app/**/not-found.${GLOB_SRC_EXT}`,
|
|
91
|
-
`**/app/**/loading.${GLOB_SRC_EXT}`,
|
|
92
|
-
`**/app/**/robots.${GLOB_SRC_EXT}`,
|
|
93
|
-
`**/app/**/sitemap.${GLOB_SRC_EXT}`,
|
|
94
|
-
`**/pages/**/*.${GLOB_SRC_EXT}`
|
|
95
|
-
];
|
|
96
|
-
var GLOB_EXCLUDE = [
|
|
97
|
-
"**/node_modules",
|
|
98
|
-
"**/dist",
|
|
99
|
-
"**/out",
|
|
100
|
-
"**/build",
|
|
101
|
-
"**/package-lock.json",
|
|
102
|
-
"**/yarn.lock",
|
|
103
|
-
"**/pnpm-lock.yaml",
|
|
104
|
-
"**/bun.lockb",
|
|
105
|
-
"**/output",
|
|
106
|
-
"**/coverage",
|
|
107
|
-
"**/temp",
|
|
108
|
-
"**/.temp",
|
|
109
|
-
"**/tmp",
|
|
110
|
-
"**/.tmp",
|
|
111
|
-
"**/.history",
|
|
112
|
-
"**/.vitepress/cache",
|
|
113
|
-
"**/.nuxt",
|
|
114
|
-
"**/.next",
|
|
115
|
-
"**/.vercel",
|
|
116
|
-
"**/.netlify",
|
|
117
|
-
"**/.changeset",
|
|
118
|
-
"**/.idea",
|
|
119
|
-
"**/.cache",
|
|
120
|
-
"**/.output",
|
|
121
|
-
"**/.vite-inspect",
|
|
122
|
-
"**/.astro",
|
|
123
|
-
"**/CHANGELOG*.md",
|
|
124
|
-
"**/*.min.*",
|
|
125
|
-
"**/LICENSE*",
|
|
126
|
-
"**/__snapshots__",
|
|
127
|
-
"**/auto-import?(s).d.ts",
|
|
128
|
-
"**/components.d.ts"
|
|
129
|
-
];
|
|
130
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
131
|
-
0 && (module.exports = {
|
|
132
|
-
GLOB_ASTRO,
|
|
133
|
-
GLOB_CSS,
|
|
134
|
-
GLOB_EXCLUDE,
|
|
135
|
-
GLOB_HTML,
|
|
136
|
-
GLOB_JS,
|
|
137
|
-
GLOB_JSON,
|
|
138
|
-
GLOB_JSON5,
|
|
139
|
-
GLOB_JSONC,
|
|
140
|
-
GLOB_JSX,
|
|
141
|
-
GLOB_LESS,
|
|
142
|
-
GLOB_MARKDOWN,
|
|
143
|
-
GLOB_MARKDOWN_CODE,
|
|
144
|
-
GLOB_MARKDOWN_IN_MARKDOWN,
|
|
145
|
-
GLOB_NEXTJS_OG,
|
|
146
|
-
GLOB_NEXTJS_ROUTES,
|
|
147
|
-
GLOB_POSTCSS,
|
|
148
|
-
GLOB_SCSS,
|
|
149
|
-
GLOB_SRC,
|
|
150
|
-
GLOB_SRC_EXT,
|
|
151
|
-
GLOB_STYLE,
|
|
152
|
-
GLOB_TESTS,
|
|
153
|
-
GLOB_TOML,
|
|
154
|
-
GLOB_TS,
|
|
155
|
-
GLOB_TSX,
|
|
156
|
-
GLOB_VUE,
|
|
157
|
-
GLOB_YAML
|
|
158
|
-
});
|
package/dist/globs.d.cts
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
declare const GLOB_SRC_EXT = "?([cm])[jt]s?(x)";
|
|
2
|
-
declare const GLOB_SRC = "**/*.?([cm])[jt]s?(x)";
|
|
3
|
-
declare const GLOB_JS = "**/*.?([cm])js";
|
|
4
|
-
declare const GLOB_JSX = "**/*.?([cm])jsx";
|
|
5
|
-
declare const GLOB_TS = "**/*.?([cm])ts";
|
|
6
|
-
declare const GLOB_TSX = "**/*.?([cm])tsx";
|
|
7
|
-
declare const GLOB_STYLE = "**/*.{c,le,sc}ss";
|
|
8
|
-
declare const GLOB_CSS = "**/*.css";
|
|
9
|
-
declare const GLOB_POSTCSS = "**/*.{p,post}css";
|
|
10
|
-
declare const GLOB_LESS = "**/*.less";
|
|
11
|
-
declare const GLOB_SCSS = "**/*.scss";
|
|
12
|
-
declare const GLOB_JSON = "**/*.json";
|
|
13
|
-
declare const GLOB_JSON5 = "**/*.json5";
|
|
14
|
-
declare const GLOB_JSONC = "**/*.jsonc";
|
|
15
|
-
declare const GLOB_MARKDOWN = "**/*.md";
|
|
16
|
-
declare const GLOB_MARKDOWN_IN_MARKDOWN = "**/*.md/*.md";
|
|
17
|
-
declare const GLOB_VUE = "**/*.vue";
|
|
18
|
-
declare const GLOB_YAML = "**/*.y?(a)ml";
|
|
19
|
-
declare const GLOB_TOML = "**/*.toml";
|
|
20
|
-
declare const GLOB_HTML = "**/*.htm?(l)";
|
|
21
|
-
declare const GLOB_ASTRO = "**/*.astro";
|
|
22
|
-
declare const GLOB_MARKDOWN_CODE = "**/*.md/**/*.?([cm])[jt]s?(x)";
|
|
23
|
-
declare const GLOB_TESTS: string[];
|
|
24
|
-
declare const GLOB_NEXTJS_OG: string[];
|
|
25
|
-
declare const GLOB_NEXTJS_ROUTES: string[];
|
|
26
|
-
declare const GLOB_EXCLUDE: string[];
|
|
27
|
-
|
|
28
|
-
export { GLOB_ASTRO, GLOB_CSS, GLOB_EXCLUDE, GLOB_HTML, GLOB_JS, GLOB_JSON, GLOB_JSON5, GLOB_JSONC, GLOB_JSX, GLOB_LESS, GLOB_MARKDOWN, GLOB_MARKDOWN_CODE, GLOB_MARKDOWN_IN_MARKDOWN, GLOB_NEXTJS_OG, GLOB_NEXTJS_ROUTES, GLOB_POSTCSS, GLOB_SCSS, GLOB_SRC, GLOB_SRC_EXT, GLOB_STYLE, GLOB_TESTS, GLOB_TOML, GLOB_TS, GLOB_TSX, GLOB_VUE, GLOB_YAML };
|
package/dist/globs.d.ts
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
declare const GLOB_SRC_EXT = "?([cm])[jt]s?(x)";
|
|
2
|
-
declare const GLOB_SRC = "**/*.?([cm])[jt]s?(x)";
|
|
3
|
-
declare const GLOB_JS = "**/*.?([cm])js";
|
|
4
|
-
declare const GLOB_JSX = "**/*.?([cm])jsx";
|
|
5
|
-
declare const GLOB_TS = "**/*.?([cm])ts";
|
|
6
|
-
declare const GLOB_TSX = "**/*.?([cm])tsx";
|
|
7
|
-
declare const GLOB_STYLE = "**/*.{c,le,sc}ss";
|
|
8
|
-
declare const GLOB_CSS = "**/*.css";
|
|
9
|
-
declare const GLOB_POSTCSS = "**/*.{p,post}css";
|
|
10
|
-
declare const GLOB_LESS = "**/*.less";
|
|
11
|
-
declare const GLOB_SCSS = "**/*.scss";
|
|
12
|
-
declare const GLOB_JSON = "**/*.json";
|
|
13
|
-
declare const GLOB_JSON5 = "**/*.json5";
|
|
14
|
-
declare const GLOB_JSONC = "**/*.jsonc";
|
|
15
|
-
declare const GLOB_MARKDOWN = "**/*.md";
|
|
16
|
-
declare const GLOB_MARKDOWN_IN_MARKDOWN = "**/*.md/*.md";
|
|
17
|
-
declare const GLOB_VUE = "**/*.vue";
|
|
18
|
-
declare const GLOB_YAML = "**/*.y?(a)ml";
|
|
19
|
-
declare const GLOB_TOML = "**/*.toml";
|
|
20
|
-
declare const GLOB_HTML = "**/*.htm?(l)";
|
|
21
|
-
declare const GLOB_ASTRO = "**/*.astro";
|
|
22
|
-
declare const GLOB_MARKDOWN_CODE = "**/*.md/**/*.?([cm])[jt]s?(x)";
|
|
23
|
-
declare const GLOB_TESTS: string[];
|
|
24
|
-
declare const GLOB_NEXTJS_OG: string[];
|
|
25
|
-
declare const GLOB_NEXTJS_ROUTES: string[];
|
|
26
|
-
declare const GLOB_EXCLUDE: string[];
|
|
27
|
-
|
|
28
|
-
export { GLOB_ASTRO, GLOB_CSS, GLOB_EXCLUDE, GLOB_HTML, GLOB_JS, GLOB_JSON, GLOB_JSON5, GLOB_JSONC, GLOB_JSX, GLOB_LESS, GLOB_MARKDOWN, GLOB_MARKDOWN_CODE, GLOB_MARKDOWN_IN_MARKDOWN, GLOB_NEXTJS_OG, GLOB_NEXTJS_ROUTES, GLOB_POSTCSS, GLOB_SCSS, GLOB_SRC, GLOB_SRC_EXT, GLOB_STYLE, GLOB_TESTS, GLOB_TOML, GLOB_TS, GLOB_TSX, GLOB_VUE, GLOB_YAML };
|
package/dist/globs.mjs
DELETED
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
GLOB_ASTRO,
|
|
3
|
-
GLOB_CSS,
|
|
4
|
-
GLOB_EXCLUDE,
|
|
5
|
-
GLOB_HTML,
|
|
6
|
-
GLOB_JS,
|
|
7
|
-
GLOB_JSON,
|
|
8
|
-
GLOB_JSON5,
|
|
9
|
-
GLOB_JSONC,
|
|
10
|
-
GLOB_JSX,
|
|
11
|
-
GLOB_LESS,
|
|
12
|
-
GLOB_MARKDOWN,
|
|
13
|
-
GLOB_MARKDOWN_CODE,
|
|
14
|
-
GLOB_MARKDOWN_IN_MARKDOWN,
|
|
15
|
-
GLOB_NEXTJS_OG,
|
|
16
|
-
GLOB_NEXTJS_ROUTES,
|
|
17
|
-
GLOB_POSTCSS,
|
|
18
|
-
GLOB_SCSS,
|
|
19
|
-
GLOB_SRC,
|
|
20
|
-
GLOB_SRC_EXT,
|
|
21
|
-
GLOB_STYLE,
|
|
22
|
-
GLOB_TESTS,
|
|
23
|
-
GLOB_TOML,
|
|
24
|
-
GLOB_TS,
|
|
25
|
-
GLOB_TSX,
|
|
26
|
-
GLOB_VUE,
|
|
27
|
-
GLOB_YAML
|
|
28
|
-
} from "./chunk-KOXCJL3C.mjs";
|
|
29
|
-
export {
|
|
30
|
-
GLOB_ASTRO,
|
|
31
|
-
GLOB_CSS,
|
|
32
|
-
GLOB_EXCLUDE,
|
|
33
|
-
GLOB_HTML,
|
|
34
|
-
GLOB_JS,
|
|
35
|
-
GLOB_JSON,
|
|
36
|
-
GLOB_JSON5,
|
|
37
|
-
GLOB_JSONC,
|
|
38
|
-
GLOB_JSX,
|
|
39
|
-
GLOB_LESS,
|
|
40
|
-
GLOB_MARKDOWN,
|
|
41
|
-
GLOB_MARKDOWN_CODE,
|
|
42
|
-
GLOB_MARKDOWN_IN_MARKDOWN,
|
|
43
|
-
GLOB_NEXTJS_OG,
|
|
44
|
-
GLOB_NEXTJS_ROUTES,
|
|
45
|
-
GLOB_POSTCSS,
|
|
46
|
-
GLOB_SCSS,
|
|
47
|
-
GLOB_SRC,
|
|
48
|
-
GLOB_SRC_EXT,
|
|
49
|
-
GLOB_STYLE,
|
|
50
|
-
GLOB_TESTS,
|
|
51
|
-
GLOB_TOML,
|
|
52
|
-
GLOB_TS,
|
|
53
|
-
GLOB_TSX,
|
|
54
|
-
GLOB_VUE,
|
|
55
|
-
GLOB_YAML
|
|
56
|
-
};
|
package/dist/index.mjs
DELETED
|
@@ -1,284 +0,0 @@
|
|
|
1
|
-
import "./chunk-YGZJUKJC.mjs";
|
|
2
|
-
import {
|
|
3
|
-
unocss
|
|
4
|
-
} from "./chunk-AQRBQAKE.mjs";
|
|
5
|
-
import {
|
|
6
|
-
vue
|
|
7
|
-
} from "./chunk-MT5P5EKH.mjs";
|
|
8
|
-
import {
|
|
9
|
-
yaml
|
|
10
|
-
} from "./chunk-V57HXOSW.mjs";
|
|
11
|
-
import {
|
|
12
|
-
solid
|
|
13
|
-
} from "./chunk-SPD4DGYN.mjs";
|
|
14
|
-
import {
|
|
15
|
-
sortPackageJson,
|
|
16
|
-
sortTsconfig
|
|
17
|
-
} from "./chunk-XBASVDU6.mjs";
|
|
18
|
-
import {
|
|
19
|
-
tailwindcss
|
|
20
|
-
} from "./chunk-WOBGA3K2.mjs";
|
|
21
|
-
import {
|
|
22
|
-
test
|
|
23
|
-
} from "./chunk-7ODEIBF5.mjs";
|
|
24
|
-
import "./chunk-WDSV2EFG.mjs";
|
|
25
|
-
import {
|
|
26
|
-
toml
|
|
27
|
-
} from "./chunk-EHWA727G.mjs";
|
|
28
|
-
import {
|
|
29
|
-
typescript
|
|
30
|
-
} from "./chunk-YO3IYQ2L.mjs";
|
|
31
|
-
import {
|
|
32
|
-
unicorn
|
|
33
|
-
} from "./chunk-RVSUTDCE.mjs";
|
|
34
|
-
import {
|
|
35
|
-
javascript
|
|
36
|
-
} from "./chunk-DCOLHWHC.mjs";
|
|
37
|
-
import {
|
|
38
|
-
jsdoc
|
|
39
|
-
} from "./chunk-DVQQVCGF.mjs";
|
|
40
|
-
import {
|
|
41
|
-
jsonc
|
|
42
|
-
} from "./chunk-QDSV5ONX.mjs";
|
|
43
|
-
import {
|
|
44
|
-
markdown
|
|
45
|
-
} from "./chunk-FNOIGW47.mjs";
|
|
46
|
-
import {
|
|
47
|
-
nextjs
|
|
48
|
-
} from "./chunk-MMSZW2UW.mjs";
|
|
49
|
-
import {
|
|
50
|
-
node
|
|
51
|
-
} from "./chunk-5NK24IKQ.mjs";
|
|
52
|
-
import {
|
|
53
|
-
perfectionist
|
|
54
|
-
} from "./chunk-6T7MXPCT.mjs";
|
|
55
|
-
import {
|
|
56
|
-
react
|
|
57
|
-
} from "./chunk-UITQW3RA.mjs";
|
|
58
|
-
import {
|
|
59
|
-
astro
|
|
60
|
-
} from "./chunk-O2BXTQHK.mjs";
|
|
61
|
-
import {
|
|
62
|
-
comments
|
|
63
|
-
} from "./chunk-DAJA5AV3.mjs";
|
|
64
|
-
import {
|
|
65
|
-
formatters
|
|
66
|
-
} from "./chunk-XPKGXA67.mjs";
|
|
67
|
-
import {
|
|
68
|
-
stylistic
|
|
69
|
-
} from "./chunk-QMGT2Z63.mjs";
|
|
70
|
-
import {
|
|
71
|
-
combine,
|
|
72
|
-
getOverrides,
|
|
73
|
-
interop,
|
|
74
|
-
resolveSubOptions
|
|
75
|
-
} from "./chunk-4YBQZLPS.mjs";
|
|
76
|
-
import {
|
|
77
|
-
ignores
|
|
78
|
-
} from "./chunk-WSQOWO67.mjs";
|
|
79
|
-
import {
|
|
80
|
-
imports
|
|
81
|
-
} from "./chunk-4YT54JFZ.mjs";
|
|
82
|
-
import "./chunk-KOXCJL3C.mjs";
|
|
83
|
-
|
|
84
|
-
// src/factory.ts
|
|
85
|
-
import process from "node:process";
|
|
86
|
-
import { existsSync } from "node:fs";
|
|
87
|
-
import { isPackageExists } from "local-pkg";
|
|
88
|
-
|
|
89
|
-
// src/constants.ts
|
|
90
|
-
var VUE_PACKAGES = ["vue", "nuxt", "vitepress", "@slidev/cli"];
|
|
91
|
-
var FLAT_CONFIG_PROPS = [
|
|
92
|
-
"files",
|
|
93
|
-
"ignores",
|
|
94
|
-
"languageOptions",
|
|
95
|
-
"linterOptions",
|
|
96
|
-
"processor",
|
|
97
|
-
"plugins",
|
|
98
|
-
"rules",
|
|
99
|
-
"settings"
|
|
100
|
-
];
|
|
101
|
-
|
|
102
|
-
// src/factory.ts
|
|
103
|
-
async function luxass(options = {}, ...userConfigs) {
|
|
104
|
-
const {
|
|
105
|
-
astro: enableAstro = isPackageExists("astro"),
|
|
106
|
-
editor = !!((process.env.VSCODE_PID || process.env.JETBRAINS_IDE || process.env.VIM) && !process.env.CI),
|
|
107
|
-
exts = [],
|
|
108
|
-
gitignore: enableGitignore = true,
|
|
109
|
-
nextjs: enableNextJS = false,
|
|
110
|
-
react: enableReact = false,
|
|
111
|
-
solid: enableSolid = false,
|
|
112
|
-
tailwindcss: enableTailwindCSS = false,
|
|
113
|
-
typescript: enableTypeScript = isPackageExists("typescript"),
|
|
114
|
-
unocss: enableUnoCSS = false,
|
|
115
|
-
vue: enableVue = VUE_PACKAGES.some((i) => isPackageExists(i))
|
|
116
|
-
} = options;
|
|
117
|
-
const stylisticOptions = options.stylistic === false ? false : typeof options.stylistic === "object" ? options.stylistic : {};
|
|
118
|
-
if (stylisticOptions && !("jsx" in stylisticOptions)) {
|
|
119
|
-
stylisticOptions.jsx = options.jsx ?? true;
|
|
120
|
-
}
|
|
121
|
-
const configs = [];
|
|
122
|
-
if (enableGitignore) {
|
|
123
|
-
if (typeof enableGitignore !== "boolean") {
|
|
124
|
-
configs.push(interop(import("eslint-config-flat-gitignore")).then((plugin) => [plugin(enableGitignore)]));
|
|
125
|
-
} else {
|
|
126
|
-
if (existsSync(".gitignore")) {
|
|
127
|
-
configs.push(interop(import("eslint-config-flat-gitignore")).then((plugin) => [plugin()]));
|
|
128
|
-
}
|
|
129
|
-
}
|
|
130
|
-
}
|
|
131
|
-
configs.push(
|
|
132
|
-
ignores(),
|
|
133
|
-
javascript({
|
|
134
|
-
editor,
|
|
135
|
-
overrides: getOverrides(options, "javascript")
|
|
136
|
-
}),
|
|
137
|
-
comments(),
|
|
138
|
-
node(),
|
|
139
|
-
jsdoc({
|
|
140
|
-
stylistic: stylisticOptions
|
|
141
|
-
}),
|
|
142
|
-
imports({
|
|
143
|
-
stylistic: stylisticOptions
|
|
144
|
-
}),
|
|
145
|
-
unicorn(),
|
|
146
|
-
perfectionist()
|
|
147
|
-
);
|
|
148
|
-
if (enableVue) {
|
|
149
|
-
exts.push("vue");
|
|
150
|
-
}
|
|
151
|
-
if (enableTypeScript) {
|
|
152
|
-
configs.push(typescript({
|
|
153
|
-
...resolveSubOptions(options, "typescript"),
|
|
154
|
-
exts,
|
|
155
|
-
overrides: getOverrides(options, "typescript")
|
|
156
|
-
}));
|
|
157
|
-
}
|
|
158
|
-
if (stylisticOptions) {
|
|
159
|
-
configs.push(stylistic({
|
|
160
|
-
...stylisticOptions,
|
|
161
|
-
overrides: getOverrides(options, "stylistic")
|
|
162
|
-
}));
|
|
163
|
-
}
|
|
164
|
-
if (options.test ?? true) {
|
|
165
|
-
configs.push(test({
|
|
166
|
-
editor,
|
|
167
|
-
overrides: getOverrides(options, "test")
|
|
168
|
-
}));
|
|
169
|
-
}
|
|
170
|
-
if (enableReact || enableNextJS) {
|
|
171
|
-
configs.push(react({
|
|
172
|
-
overrides: getOverrides(options, "react"),
|
|
173
|
-
typescript: !!enableTypeScript
|
|
174
|
-
}));
|
|
175
|
-
}
|
|
176
|
-
if (enableNextJS) {
|
|
177
|
-
configs.push(
|
|
178
|
-
nextjs({
|
|
179
|
-
...resolveSubOptions(options, "nextjs"),
|
|
180
|
-
overrides: getOverrides(options, "nextjs")
|
|
181
|
-
})
|
|
182
|
-
);
|
|
183
|
-
}
|
|
184
|
-
if (enableSolid) {
|
|
185
|
-
configs.push(
|
|
186
|
-
// TODO: Analyze if this way is better for performance
|
|
187
|
-
// await interop(import("./configs/solid")).then((plugin) => plugin.solid({
|
|
188
|
-
// ...resolveSubOptions(options, "solid"),
|
|
189
|
-
// overrides: getOverrides(options, "solid"),
|
|
190
|
-
// typescript: !!enableTypeScript,
|
|
191
|
-
// })),
|
|
192
|
-
solid({
|
|
193
|
-
...resolveSubOptions(options, "solid"),
|
|
194
|
-
overrides: getOverrides(options, "solid"),
|
|
195
|
-
typescript: !!enableTypeScript
|
|
196
|
-
})
|
|
197
|
-
);
|
|
198
|
-
}
|
|
199
|
-
if (enableVue) {
|
|
200
|
-
configs.push(
|
|
201
|
-
vue({
|
|
202
|
-
...resolveSubOptions(options, "vue"),
|
|
203
|
-
overrides: getOverrides(options, "vue"),
|
|
204
|
-
stylistic: stylisticOptions,
|
|
205
|
-
typescript: !!enableTypeScript
|
|
206
|
-
})
|
|
207
|
-
);
|
|
208
|
-
}
|
|
209
|
-
if (enableAstro) {
|
|
210
|
-
configs.push(
|
|
211
|
-
astro({
|
|
212
|
-
...resolveSubOptions(options, "astro"),
|
|
213
|
-
overrides: getOverrides(options, "astro"),
|
|
214
|
-
typescript: !!enableTypeScript
|
|
215
|
-
})
|
|
216
|
-
);
|
|
217
|
-
}
|
|
218
|
-
if (enableUnoCSS) {
|
|
219
|
-
configs.push(unocss({
|
|
220
|
-
...resolveSubOptions(options, "unocss"),
|
|
221
|
-
overrides: getOverrides(options, "unocss")
|
|
222
|
-
}));
|
|
223
|
-
}
|
|
224
|
-
if (enableTailwindCSS) {
|
|
225
|
-
configs.push(tailwindcss({
|
|
226
|
-
...resolveSubOptions(options, "tailwindcss"),
|
|
227
|
-
overrides: getOverrides(options, "tailwindcss")
|
|
228
|
-
}));
|
|
229
|
-
}
|
|
230
|
-
if (options.jsonc ?? true) {
|
|
231
|
-
configs.push(
|
|
232
|
-
jsonc({
|
|
233
|
-
overrides: getOverrides(options, "jsonc"),
|
|
234
|
-
stylistic: stylisticOptions
|
|
235
|
-
}),
|
|
236
|
-
sortPackageJson(),
|
|
237
|
-
sortTsconfig()
|
|
238
|
-
);
|
|
239
|
-
}
|
|
240
|
-
if (options.yaml ?? true) {
|
|
241
|
-
configs.push(yaml({
|
|
242
|
-
overrides: getOverrides(options, "yaml"),
|
|
243
|
-
stylistic: stylisticOptions
|
|
244
|
-
}));
|
|
245
|
-
}
|
|
246
|
-
if (options.toml ?? true) {
|
|
247
|
-
configs.push(toml({
|
|
248
|
-
overrides: getOverrides(options, "toml"),
|
|
249
|
-
stylistic: stylisticOptions
|
|
250
|
-
}));
|
|
251
|
-
}
|
|
252
|
-
if (options.markdown ?? true) {
|
|
253
|
-
configs.push(
|
|
254
|
-
markdown({
|
|
255
|
-
exts,
|
|
256
|
-
overrides: getOverrides(options, "markdown")
|
|
257
|
-
})
|
|
258
|
-
);
|
|
259
|
-
}
|
|
260
|
-
if (options.formatters) {
|
|
261
|
-
configs.push(formatters(
|
|
262
|
-
options.formatters,
|
|
263
|
-
typeof stylisticOptions === "boolean" ? {} : stylisticOptions
|
|
264
|
-
));
|
|
265
|
-
}
|
|
266
|
-
const fusedConfig = FLAT_CONFIG_PROPS.reduce((acc, key) => {
|
|
267
|
-
if (key in options) {
|
|
268
|
-
acc[key] = options[key];
|
|
269
|
-
}
|
|
270
|
-
return acc;
|
|
271
|
-
}, {});
|
|
272
|
-
if (Object.keys(fusedConfig).length) {
|
|
273
|
-
configs.push([fusedConfig]);
|
|
274
|
-
}
|
|
275
|
-
const merged = combine(...configs, ...userConfigs);
|
|
276
|
-
return merged;
|
|
277
|
-
}
|
|
278
|
-
|
|
279
|
-
// src/index.ts
|
|
280
|
-
var src_default = luxass;
|
|
281
|
-
export {
|
|
282
|
-
src_default as default,
|
|
283
|
-
luxass
|
|
284
|
-
};
|