@luxass/eslint-config 4.0.0-beta.9 → 4.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/README.md +351 -48
- package/dist/{chunk-TQ476NL2.mjs → chunk-4YBQZLPS.mjs} +13 -2
- package/dist/{chunk-NDNDG7BH.mjs → chunk-5NK24IKQ.mjs} +2 -5
- package/dist/{chunk-2SW2E3TH.mjs → chunk-5SDSWPKR.mjs} +14 -4
- package/dist/chunk-6T7MXPCT.mjs +17 -0
- package/dist/{chunk-SPQZTV4E.mjs → chunk-7R4FYLS2.mjs} +19 -14
- package/dist/{chunk-ADP4MYOS.mjs → chunk-ANUYBAYV.mjs} +1 -1
- package/dist/{chunk-R4NSLRAE.mjs → chunk-ATRL3UZP.mjs} +14 -8
- package/dist/{chunk-P3N5WLFL.mjs → chunk-BXBN56WI.mjs} +11 -7
- package/dist/chunk-CJ3ZUYUJ.mjs +183 -0
- package/dist/chunk-DAJA5AV3.mjs +29 -0
- package/dist/{chunk-FK567E7G.mjs → chunk-DVQQVCGF.mjs} +7 -3
- package/dist/chunk-FU5SRKZU.mjs +104 -0
- package/dist/{chunk-LQLF2CMA.mjs → chunk-GBLPCM3X.mjs} +14 -17
- package/dist/chunk-KJ7ZCBK4.mjs +48 -0
- package/dist/{chunk-QZTI72NS.mjs → chunk-PYS26PF3.mjs} +13 -9
- package/dist/chunk-Q57BF3CR.mjs +63 -0
- package/dist/{chunk-3QHLEAXK.mjs → chunk-RDZJT36Z.mjs} +22 -8
- package/dist/chunk-RNFKNSHW.mjs +293 -0
- package/dist/{chunk-HE56XDG6.mjs → chunk-RVSUTDCE.mjs} +15 -5
- package/dist/chunk-UMUUVFB7.mjs +69 -0
- package/dist/{chunk-NUG6FLHN.mjs → chunk-VZ2YFMWH.mjs} +54 -11
- package/dist/chunk-WDSV2EFG.mjs +7 -0
- package/dist/{chunk-M5WNLLBT.mjs → chunk-WOYZWHPM.mjs} +20 -7
- package/dist/chunk-WRURTO5T.mjs +144 -0
- package/dist/{chunk-BAKUP7QM.mjs → chunk-Z7F6QSYQ.mjs} +44 -34
- package/dist/configs/astro.cjs +11 -21
- package/dist/configs/astro.d.cts +3 -6
- package/dist/configs/astro.d.ts +3 -6
- package/dist/configs/astro.mjs +3 -3
- package/dist/configs/comments.cjs +9 -12
- package/dist/configs/comments.d.cts +3 -2
- package/dist/configs/comments.d.ts +3 -2
- package/dist/configs/comments.mjs +1 -2
- package/dist/configs/formatters.cjs +274 -0
- package/dist/configs/formatters.d.cts +11 -0
- package/dist/configs/formatters.d.ts +11 -0
- package/dist/configs/formatters.mjs +9 -0
- package/dist/configs/ignores.cjs +1 -8
- package/dist/configs/ignores.d.cts +3 -2
- package/dist/configs/ignores.d.ts +3 -2
- package/dist/configs/ignores.mjs +2 -2
- package/dist/configs/imports.cjs +35 -9
- package/dist/configs/imports.d.cts +13 -4
- package/dist/configs/imports.d.ts +13 -4
- package/dist/configs/imports.mjs +2 -2
- package/dist/configs/index.cjs +1487 -1074
- package/dist/configs/index.d.cts +7 -18
- package/dist/configs/index.d.ts +7 -18
- package/dist/configs/index.mjs +40 -36
- package/dist/configs/javascript.cjs +16 -23
- package/dist/configs/javascript.d.cts +3 -6
- package/dist/configs/javascript.d.ts +3 -6
- package/dist/configs/javascript.mjs +2 -3
- package/dist/configs/jsdoc.cjs +6 -2
- package/dist/configs/jsdoc.d.cts +17 -4
- package/dist/configs/jsdoc.d.ts +17 -4
- package/dist/configs/jsdoc.mjs +2 -2
- package/dist/configs/jsonc.cjs +8 -11
- package/dist/configs/jsonc.d.cts +3 -6
- package/dist/configs/jsonc.d.ts +3 -6
- package/dist/configs/jsonc.mjs +3 -3
- package/dist/configs/markdown.cjs +46 -35
- package/dist/configs/markdown.d.cts +25 -4
- package/dist/configs/markdown.d.ts +25 -4
- package/dist/configs/markdown.mjs +3 -3
- package/dist/configs/nextjs.cjs +13 -11
- package/dist/configs/nextjs.d.cts +3 -6
- package/dist/configs/nextjs.d.ts +3 -6
- package/dist/configs/nextjs.mjs +3 -3
- package/dist/configs/node.cjs +0 -10
- package/dist/configs/node.d.cts +3 -2
- package/dist/configs/node.d.ts +3 -2
- package/dist/configs/node.mjs +1 -2
- package/dist/configs/perfectionist.cjs +2 -20
- package/dist/configs/perfectionist.d.cts +4 -3
- package/dist/configs/perfectionist.d.ts +4 -3
- package/dist/configs/perfectionist.mjs +1 -2
- package/dist/configs/react.cjs +206 -203
- package/dist/configs/react.d.cts +3 -6
- package/dist/configs/react.d.ts +3 -6
- package/dist/configs/react.mjs +3 -3
- package/dist/configs/sort.cjs +6 -6
- package/dist/configs/sort.d.cts +3 -2
- package/dist/configs/sort.d.ts +3 -2
- package/dist/configs/sort.mjs +1 -1
- package/dist/configs/stylistic.cjs +20 -11
- package/dist/configs/stylistic.d.cts +4 -7
- package/dist/configs/stylistic.d.ts +4 -7
- package/dist/configs/stylistic.mjs +4 -3
- package/dist/configs/tailwindcss.cjs +33 -47
- package/dist/configs/tailwindcss.d.cts +3 -6
- package/dist/configs/tailwindcss.d.ts +3 -6
- package/dist/configs/tailwindcss.mjs +3 -3
- package/dist/configs/test.cjs +103 -16
- package/dist/configs/test.d.cts +3 -6
- package/dist/configs/test.d.ts +3 -6
- package/dist/configs/test.mjs +4 -3
- package/dist/configs/toml.cjs +131 -0
- package/dist/configs/toml.d.cts +11 -0
- package/dist/configs/toml.d.ts +11 -0
- package/dist/configs/toml.mjs +8 -0
- package/dist/configs/typescript.cjs +39 -43
- package/dist/configs/typescript.d.cts +3 -6
- package/dist/configs/typescript.d.ts +3 -6
- package/dist/configs/typescript.mjs +3 -4
- package/dist/configs/unicorn.cjs +13 -10
- package/dist/configs/unicorn.d.cts +3 -2
- package/dist/configs/unicorn.d.ts +3 -2
- package/dist/configs/unicorn.mjs +1 -2
- package/dist/configs/unocss.cjs +48 -20
- package/dist/configs/unocss.d.cts +3 -6
- package/dist/configs/unocss.d.ts +3 -6
- package/dist/configs/unocss.mjs +3 -3
- package/dist/configs/vue.cjs +51 -15
- package/dist/configs/vue.d.cts +3 -6
- package/dist/configs/vue.d.ts +3 -6
- package/dist/configs/vue.mjs +3 -3
- package/dist/configs/yaml.cjs +17 -11
- package/dist/configs/yaml.d.cts +3 -6
- package/dist/configs/yaml.d.ts +3 -6
- package/dist/configs/yaml.mjs +3 -3
- package/dist/custom-rules/utils.cjs +31 -0
- package/dist/custom-rules/utils.d.cts +6 -0
- package/dist/custom-rules/utils.d.ts +6 -0
- package/dist/custom-rules/utils.mjs +6 -0
- package/dist/globs.cjs +157 -0
- package/dist/globs.d.cts +28 -0
- package/dist/globs.d.ts +28 -0
- package/dist/globs.mjs +56 -0
- package/dist/index.cjs +1267 -839
- package/dist/index.d.cts +10 -44
- package/dist/index.d.ts +10 -44
- package/dist/index.mjs +106 -146
- package/dist/types-spTEGSaV.d.cts +632 -0
- package/dist/types-spTEGSaV.d.ts +632 -0
- package/package.json +69 -37
- package/dist/chunk-24KJPXII.mjs +0 -51
- package/dist/chunk-4HH6LYJ6.mjs +0 -25
- package/dist/chunk-AL47KNVD.mjs +0 -37
- package/dist/chunk-C5VMTRKT.mjs +0 -18
- package/dist/chunk-ERFDRAGW.mjs +0 -86
- package/dist/chunk-HLDEUDLN.mjs +0 -28
- package/dist/chunk-O4O6V7LI.mjs +0 -70
- package/dist/chunk-UBPIYSHC.mjs +0 -284
- package/dist/types-h9izbkUX.d.cts +0 -241
- package/dist/types-h9izbkUX.d.ts +0 -241
- package/dist/{chunk-FKAOMYGL.mjs → chunk-ME2OAMS3.mjs} +0 -0
- package/dist/{chunk-FOIFEV73.mjs → chunk-XBASVDU6.mjs} +6 -6
package/dist/configs/vue.mjs
CHANGED
package/dist/configs/yaml.cjs
CHANGED
|
@@ -36,9 +36,7 @@ module.exports = __toCommonJS(yaml_exports);
|
|
|
36
36
|
|
|
37
37
|
// src/globs.ts
|
|
38
38
|
var GLOB_SRC_EXT = "?([cm])[jt]s?(x)";
|
|
39
|
-
var GLOB_SRC =
|
|
40
|
-
var GLOB_JSX_EXT = "[jt]sx";
|
|
41
|
-
var GLOB_JSX = `**/*.${GLOB_JSX_EXT}`;
|
|
39
|
+
var GLOB_SRC = `**/*.${GLOB_SRC_EXT}`;
|
|
42
40
|
var GLOB_MARKDOWN = "**/*.md";
|
|
43
41
|
var GLOB_YAML = "**/*.y?(a)ml";
|
|
44
42
|
var GLOB_MARKDOWN_CODE = `${GLOB_MARKDOWN}/${GLOB_SRC}`;
|
|
@@ -49,11 +47,6 @@ var GLOB_TESTS = [
|
|
|
49
47
|
`**/*.bench.${GLOB_SRC_EXT}`,
|
|
50
48
|
`**/*.benchmark.${GLOB_SRC_EXT}`
|
|
51
49
|
];
|
|
52
|
-
var GLOB_NEXTJS_OG = [
|
|
53
|
-
`**/app/**/opengraph-image.${GLOB_JSX_EXT}`,
|
|
54
|
-
`**/app/**/twitter-image.${GLOB_JSX_EXT}`,
|
|
55
|
-
`**/app/**/route.${GLOB_JSX_EXT}`
|
|
56
|
-
];
|
|
57
50
|
var GLOB_NEXTJS_ROUTES = [
|
|
58
51
|
`**/app/**/page.${GLOB_SRC_EXT}`,
|
|
59
52
|
`**/app/**/layout.${GLOB_SRC_EXT}`,
|
|
@@ -76,7 +69,11 @@ async function interop(m) {
|
|
|
76
69
|
|
|
77
70
|
// src/configs/yaml.ts
|
|
78
71
|
async function yaml(options = {}) {
|
|
79
|
-
const {
|
|
72
|
+
const {
|
|
73
|
+
files = [GLOB_YAML],
|
|
74
|
+
overrides = {},
|
|
75
|
+
stylistic = true
|
|
76
|
+
} = options;
|
|
80
77
|
const [
|
|
81
78
|
pluginYaml,
|
|
82
79
|
parserYaml
|
|
@@ -96,16 +93,17 @@ async function yaml(options = {}) {
|
|
|
96
93
|
}
|
|
97
94
|
},
|
|
98
95
|
{
|
|
99
|
-
|
|
96
|
+
name: "luxass:yaml:rules",
|
|
97
|
+
files,
|
|
100
98
|
languageOptions: {
|
|
101
99
|
parser: parserYaml
|
|
102
100
|
},
|
|
103
|
-
name: "luxass:yaml:rules",
|
|
104
101
|
rules: {
|
|
105
102
|
"style/spaced-comment": "off",
|
|
106
103
|
"yaml/block-mapping": "error",
|
|
107
104
|
"yaml/block-sequence": "error",
|
|
108
105
|
"yaml/no-empty-key": "error",
|
|
106
|
+
"yaml/no-empty-mapping-value": "error",
|
|
109
107
|
"yaml/no-empty-sequence-entry": "error",
|
|
110
108
|
"yaml/no-irregular-whitespace": "error",
|
|
111
109
|
"yaml/plain-scalar": "error",
|
|
@@ -128,6 +126,14 @@ async function yaml(options = {}) {
|
|
|
128
126
|
} : {},
|
|
129
127
|
...overrides
|
|
130
128
|
}
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
name: "luxass:yaml:github-actions",
|
|
132
|
+
files: ["**/.github/workflows/*.{yml,yaml}"],
|
|
133
|
+
rules: {
|
|
134
|
+
// GitHub Actions supports empty values to enable features
|
|
135
|
+
"yaml/no-empty-mapping-value": "off"
|
|
136
|
+
}
|
|
131
137
|
}
|
|
132
138
|
];
|
|
133
139
|
}
|
package/dist/configs/yaml.d.cts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
export { Y as YAMLOptions, y as yaml } from '../types-spTEGSaV.cjs';
|
|
2
2
|
import 'eslint-config-flat-gitignore';
|
|
3
|
-
import '@typescript-eslint/parser';
|
|
4
3
|
import '@antfu/eslint-define-config';
|
|
5
4
|
import '@eslint-types/jsdoc/types';
|
|
6
5
|
import '@eslint-types/typescript-eslint/types';
|
|
@@ -8,7 +7,5 @@ import '@eslint-types/unicorn/types';
|
|
|
8
7
|
import 'eslint-plugin-antfu';
|
|
9
8
|
import '@stylistic/eslint-plugin';
|
|
10
9
|
import 'eslint';
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
export { yaml };
|
|
10
|
+
import '@typescript-eslint/parser';
|
|
11
|
+
import 'eslint-processor-vue-blocks';
|
package/dist/configs/yaml.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
export { Y as YAMLOptions, y as yaml } from '../types-spTEGSaV.js';
|
|
2
2
|
import 'eslint-config-flat-gitignore';
|
|
3
|
-
import '@typescript-eslint/parser';
|
|
4
3
|
import '@antfu/eslint-define-config';
|
|
5
4
|
import '@eslint-types/jsdoc/types';
|
|
6
5
|
import '@eslint-types/typescript-eslint/types';
|
|
@@ -8,7 +7,5 @@ import '@eslint-types/unicorn/types';
|
|
|
8
7
|
import 'eslint-plugin-antfu';
|
|
9
8
|
import '@stylistic/eslint-plugin';
|
|
10
9
|
import 'eslint';
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
export { yaml };
|
|
10
|
+
import '@typescript-eslint/parser';
|
|
11
|
+
import 'eslint-processor-vue-blocks';
|
package/dist/configs/yaml.mjs
CHANGED
|
@@ -0,0 +1,31 @@
|
|
|
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/custom-rules/utils.ts
|
|
21
|
+
var utils_exports = {};
|
|
22
|
+
__export(utils_exports, {
|
|
23
|
+
createRule: () => createRule
|
|
24
|
+
});
|
|
25
|
+
module.exports = __toCommonJS(utils_exports);
|
|
26
|
+
var import_utils = require("@typescript-eslint/utils");
|
|
27
|
+
var createRule = import_utils.ESLintUtils.RuleCreator((ruleName) => `https://github.com/luxass/eslint-config/blob/main/src/custom-rules/${ruleName}/README.md`);
|
|
28
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
29
|
+
0 && (module.exports = {
|
|
30
|
+
createRule
|
|
31
|
+
});
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { ESLintUtils } from '@typescript-eslint/utils';
|
|
2
|
+
export { ESLintUtils } from '@typescript-eslint/utils';
|
|
3
|
+
|
|
4
|
+
declare const createRule: <TOptions extends readonly unknown[], TMessageIds extends string>({ name, meta, ...rule }: Readonly<ESLintUtils.RuleWithMetaAndName<TOptions, TMessageIds>>) => ESLintUtils.RuleModule<TMessageIds, TOptions, ESLintUtils.RuleListener>;
|
|
5
|
+
|
|
6
|
+
export { createRule };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { ESLintUtils } from '@typescript-eslint/utils';
|
|
2
|
+
export { ESLintUtils } from '@typescript-eslint/utils';
|
|
3
|
+
|
|
4
|
+
declare const createRule: <TOptions extends readonly unknown[], TMessageIds extends string>({ name, meta, ...rule }: Readonly<ESLintUtils.RuleWithMetaAndName<TOptions, TMessageIds>>) => ESLintUtils.RuleModule<TMessageIds, TOptions, ESLintUtils.RuleListener>;
|
|
5
|
+
|
|
6
|
+
export { createRule };
|
package/dist/globs.cjs
ADDED
|
@@ -0,0 +1,157 @@
|
|
|
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
|
+
"**/.changeset",
|
|
117
|
+
"**/.idea",
|
|
118
|
+
"**/.cache",
|
|
119
|
+
"**/.output",
|
|
120
|
+
"**/.vite-inspect",
|
|
121
|
+
"**/.astro",
|
|
122
|
+
"**/CHANGELOG*.md",
|
|
123
|
+
"**/*.min.*",
|
|
124
|
+
"**/LICENSE*",
|
|
125
|
+
"**/__snapshots__",
|
|
126
|
+
"**/auto-import?(s).d.ts",
|
|
127
|
+
"**/components.d.ts"
|
|
128
|
+
];
|
|
129
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
130
|
+
0 && (module.exports = {
|
|
131
|
+
GLOB_ASTRO,
|
|
132
|
+
GLOB_CSS,
|
|
133
|
+
GLOB_EXCLUDE,
|
|
134
|
+
GLOB_HTML,
|
|
135
|
+
GLOB_JS,
|
|
136
|
+
GLOB_JSON,
|
|
137
|
+
GLOB_JSON5,
|
|
138
|
+
GLOB_JSONC,
|
|
139
|
+
GLOB_JSX,
|
|
140
|
+
GLOB_LESS,
|
|
141
|
+
GLOB_MARKDOWN,
|
|
142
|
+
GLOB_MARKDOWN_CODE,
|
|
143
|
+
GLOB_MARKDOWN_IN_MARKDOWN,
|
|
144
|
+
GLOB_NEXTJS_OG,
|
|
145
|
+
GLOB_NEXTJS_ROUTES,
|
|
146
|
+
GLOB_POSTCSS,
|
|
147
|
+
GLOB_SCSS,
|
|
148
|
+
GLOB_SRC,
|
|
149
|
+
GLOB_SRC_EXT,
|
|
150
|
+
GLOB_STYLE,
|
|
151
|
+
GLOB_TESTS,
|
|
152
|
+
GLOB_TOML,
|
|
153
|
+
GLOB_TS,
|
|
154
|
+
GLOB_TSX,
|
|
155
|
+
GLOB_VUE,
|
|
156
|
+
GLOB_YAML
|
|
157
|
+
});
|
package/dist/globs.d.cts
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
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
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
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
ADDED
|
@@ -0,0 +1,56 @@
|
|
|
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-ATRL3UZP.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
|
+
};
|