@luxass/eslint-config 4.2.6 → 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 +4 -5
- package/dist/index.cjs +145 -446
- package/dist/index.d.cts +733 -12
- package/dist/index.d.ts +733 -12
- package/dist/{configs/index.cjs → index.js} +288 -516
- package/package.json +51 -85
- package/dist/chunk-2IR43M6N.mjs +0 -48
- package/dist/chunk-47ISSTHW.mjs +0 -291
- package/dist/chunk-4YBQZLPS.mjs +0 -68
- package/dist/chunk-4YT54JFZ.mjs +0 -48
- package/dist/chunk-5NK24IKQ.mjs +0 -26
- package/dist/chunk-AJS3TMZE.mjs +0 -63
- package/dist/chunk-C6FE5KXJ.mjs +0 -104
- package/dist/chunk-DAJA5AV3.mjs +0 -29
- package/dist/chunk-DCOLHWHC.mjs +0 -269
- package/dist/chunk-E4RVBKZB.mjs +0 -207
- package/dist/chunk-HZNHG5PB.mjs +0 -45
- package/dist/chunk-KOXCJL3C.mjs +0 -109
- package/dist/chunk-PFCAWBCD.mjs +0 -93
- package/dist/chunk-PFYV2TWZ.mjs +0 -117
- package/dist/chunk-QT6FHTFU.mjs +0 -92
- package/dist/chunk-RDZJT36Z.mjs +0 -57
- package/dist/chunk-RVSUTDCE.mjs +0 -57
- package/dist/chunk-TWAETZPX.mjs +0 -149
- package/dist/chunk-WSQOWO67.mjs +0 -16
- package/dist/chunk-XBASVDU6.mjs +0 -215
- package/dist/chunk-XD3UVRU7.mjs +0 -274
- package/dist/chunk-XGI647GZ.mjs +0 -81
- package/dist/chunk-XMXYE5WC.mjs +0 -183
- package/dist/chunk-YNMFVYL6.mjs +0 -69
- package/dist/chunk-YO3IYQ2L.mjs +0 -220
- package/dist/chunk-YZCJUX6Z.mjs +0 -0
- 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/css/tailwindcss.cjs +0 -148
- package/dist/configs/css/tailwindcss.d.cts +0 -11
- package/dist/configs/css/tailwindcss.d.ts +0 -11
- package/dist/configs/css/tailwindcss.mjs +0 -8
- package/dist/configs/css/unocss.cjs +0 -133
- package/dist/configs/css/unocss.d.cts +0 -11
- package/dist/configs/css/unocss.d.ts +0 -11
- package/dist/configs/css/unocss.mjs +0 -8
- package/dist/configs/data/json.cjs +0 -155
- package/dist/configs/data/json.d.cts +0 -11
- package/dist/configs/data/json.d.ts +0 -11
- package/dist/configs/data/json.mjs +0 -8
- package/dist/configs/data/toml.cjs +0 -131
- package/dist/configs/data/toml.d.cts +0 -11
- package/dist/configs/data/toml.d.ts +0 -11
- package/dist/configs/data/toml.mjs +0 -8
- package/dist/configs/data/yaml.cjs +0 -143
- package/dist/configs/data/yaml.d.cts +0 -11
- package/dist/configs/data/yaml.d.ts +0 -11
- package/dist/configs/data/yaml.mjs +0 -8
- package/dist/configs/docs/jsdoc.cjs +0 -85
- package/dist/configs/docs/jsdoc.d.cts +0 -27
- package/dist/configs/docs/jsdoc.d.ts +0 -27
- package/dist/configs/docs/jsdoc.mjs +0 -7
- package/dist/configs/docs/markdown.cjs +0 -164
- package/dist/configs/docs/markdown.d.cts +0 -35
- package/dist/configs/docs/markdown.d.ts +0 -35
- package/dist/configs/docs/markdown.mjs +0 -8
- 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/frameworks/astro.cjs +0 -179
- package/dist/configs/frameworks/astro.d.cts +0 -11
- package/dist/configs/frameworks/astro.d.ts +0 -11
- package/dist/configs/frameworks/astro.mjs +0 -8
- package/dist/configs/frameworks/nextjs.cjs +0 -180
- package/dist/configs/frameworks/nextjs.d.cts +0 -11
- package/dist/configs/frameworks/nextjs.d.ts +0 -11
- package/dist/configs/frameworks/nextjs.mjs +0 -8
- package/dist/configs/frameworks/react.cjs +0 -377
- package/dist/configs/frameworks/react.d.cts +0 -11
- package/dist/configs/frameworks/react.d.ts +0 -11
- package/dist/configs/frameworks/react.mjs +0 -8
- package/dist/configs/frameworks/solid.cjs +0 -360
- package/dist/configs/frameworks/solid.d.cts +0 -11
- package/dist/configs/frameworks/solid.d.ts +0 -11
- package/dist/configs/frameworks/solid.mjs +0 -8
- package/dist/configs/frameworks/vue.cjs +0 -293
- package/dist/configs/frameworks/vue.d.cts +0 -11
- package/dist/configs/frameworks/vue.d.ts +0 -11
- package/dist/configs/frameworks/vue.mjs +0 -8
- 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 -19
- package/dist/configs/index.d.ts +0 -19
- package/dist/configs/index.mjs +0 -99
- 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/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/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/test.cjs +0 -210
- package/dist/configs/test.d.cts +0 -11
- package/dist/configs/test.d.ts +0 -11
- package/dist/configs/test.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/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 -278
- package/dist/types-HqEzZfQU.d.cts +0 -668
- package/dist/types-HqEzZfQU.d.ts +0 -668
|
@@ -1,155 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __create = Object.create;
|
|
3
|
-
var __defProp = Object.defineProperty;
|
|
4
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
-
var __export = (target, all) => {
|
|
9
|
-
for (var name in all)
|
|
10
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
-
};
|
|
12
|
-
var __copyProps = (to, from, except, desc) => {
|
|
13
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
-
for (let key of __getOwnPropNames(from))
|
|
15
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
16
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
|
-
}
|
|
18
|
-
return to;
|
|
19
|
-
};
|
|
20
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
-
mod
|
|
27
|
-
));
|
|
28
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
-
|
|
30
|
-
// src/configs/data/json.ts
|
|
31
|
-
var json_exports = {};
|
|
32
|
-
__export(json_exports, {
|
|
33
|
-
jsonc: () => jsonc
|
|
34
|
-
});
|
|
35
|
-
module.exports = __toCommonJS(json_exports);
|
|
36
|
-
|
|
37
|
-
// src/globs.ts
|
|
38
|
-
var GLOB_SRC_EXT = "?([cm])[jt]s?(x)";
|
|
39
|
-
var GLOB_SRC = `**/*.${GLOB_SRC_EXT}`;
|
|
40
|
-
var GLOB_JSON = "**/*.json";
|
|
41
|
-
var GLOB_JSON5 = "**/*.json5";
|
|
42
|
-
var GLOB_JSONC = "**/*.jsonc";
|
|
43
|
-
var GLOB_MARKDOWN = "**/*.md";
|
|
44
|
-
var GLOB_MARKDOWN_CODE = `${GLOB_MARKDOWN}/${GLOB_SRC}`;
|
|
45
|
-
var GLOB_TESTS = [
|
|
46
|
-
`**/__tests__/**/*.${GLOB_SRC_EXT}`,
|
|
47
|
-
`**/*.spec.${GLOB_SRC_EXT}`,
|
|
48
|
-
`**/*.test.${GLOB_SRC_EXT}`,
|
|
49
|
-
`**/*.bench.${GLOB_SRC_EXT}`,
|
|
50
|
-
`**/*.benchmark.${GLOB_SRC_EXT}`
|
|
51
|
-
];
|
|
52
|
-
var GLOB_NEXTJS_ROUTES = [
|
|
53
|
-
`**/app/**/page.${GLOB_SRC_EXT}`,
|
|
54
|
-
`**/app/**/layout.${GLOB_SRC_EXT}`,
|
|
55
|
-
`**/app/**/error.${GLOB_SRC_EXT}`,
|
|
56
|
-
`**/app/**/template.${GLOB_SRC_EXT}`,
|
|
57
|
-
`**/app/**/not-found.${GLOB_SRC_EXT}`,
|
|
58
|
-
`**/app/**/loading.${GLOB_SRC_EXT}`,
|
|
59
|
-
`**/app/**/robots.${GLOB_SRC_EXT}`,
|
|
60
|
-
`**/app/**/sitemap.${GLOB_SRC_EXT}`,
|
|
61
|
-
`**/pages/**/*.${GLOB_SRC_EXT}`
|
|
62
|
-
];
|
|
63
|
-
|
|
64
|
-
// src/utils.ts
|
|
65
|
-
var import_node_process = __toESM(require("process"), 1);
|
|
66
|
-
var import_local_pkg = require("local-pkg");
|
|
67
|
-
async function interop(m) {
|
|
68
|
-
const resolved = await m;
|
|
69
|
-
return resolved.default || resolved;
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
// src/configs/data/json.ts
|
|
73
|
-
async function jsonc(options = {}) {
|
|
74
|
-
const {
|
|
75
|
-
files = [GLOB_JSON, GLOB_JSON5, GLOB_JSONC],
|
|
76
|
-
overrides = {},
|
|
77
|
-
stylistic = true
|
|
78
|
-
} = options;
|
|
79
|
-
const [
|
|
80
|
-
pluginJsonc,
|
|
81
|
-
parserJsonc
|
|
82
|
-
] = await Promise.all([
|
|
83
|
-
interop(import("eslint-plugin-jsonc")),
|
|
84
|
-
interop(import("jsonc-eslint-parser"))
|
|
85
|
-
]);
|
|
86
|
-
return [
|
|
87
|
-
{
|
|
88
|
-
name: "luxass:jsonc:setup",
|
|
89
|
-
plugins: {
|
|
90
|
-
jsonc: pluginJsonc
|
|
91
|
-
}
|
|
92
|
-
},
|
|
93
|
-
{
|
|
94
|
-
name: "luxass:jsonc:rules",
|
|
95
|
-
files,
|
|
96
|
-
languageOptions: {
|
|
97
|
-
parser: parserJsonc
|
|
98
|
-
},
|
|
99
|
-
rules: {
|
|
100
|
-
"jsonc/no-bigint-literals": "error",
|
|
101
|
-
"jsonc/no-binary-expression": "error",
|
|
102
|
-
"jsonc/no-binary-numeric-literals": "error",
|
|
103
|
-
"jsonc/no-dupe-keys": "error",
|
|
104
|
-
"jsonc/no-escape-sequence-in-identifier": "error",
|
|
105
|
-
"jsonc/no-floating-decimal": "error",
|
|
106
|
-
"jsonc/no-hexadecimal-numeric-literals": "error",
|
|
107
|
-
"jsonc/no-infinity": "error",
|
|
108
|
-
"jsonc/no-multi-str": "error",
|
|
109
|
-
"jsonc/no-nan": "error",
|
|
110
|
-
"jsonc/no-number-props": "error",
|
|
111
|
-
"jsonc/no-numeric-separators": "error",
|
|
112
|
-
"jsonc/no-octal": "error",
|
|
113
|
-
"jsonc/no-octal-escape": "error",
|
|
114
|
-
"jsonc/no-octal-numeric-literals": "error",
|
|
115
|
-
"jsonc/no-parenthesized": "error",
|
|
116
|
-
"jsonc/no-plus-sign": "error",
|
|
117
|
-
"jsonc/no-regexp-literals": "error",
|
|
118
|
-
"jsonc/no-sparse-arrays": "error",
|
|
119
|
-
"jsonc/no-template-literals": "error",
|
|
120
|
-
"jsonc/no-undefined-value": "error",
|
|
121
|
-
"jsonc/no-unicode-codepoint-escapes": "error",
|
|
122
|
-
"jsonc/no-useless-escape": "error",
|
|
123
|
-
"jsonc/space-unary-ops": "error",
|
|
124
|
-
"jsonc/valid-json-number": "error",
|
|
125
|
-
"jsonc/vue-custom-block/no-parsing-error": "error",
|
|
126
|
-
...stylistic ? {
|
|
127
|
-
"jsonc/array-bracket-spacing": ["error", "never"],
|
|
128
|
-
"jsonc/comma-dangle": ["error", "never"],
|
|
129
|
-
"jsonc/comma-style": ["error", "last"],
|
|
130
|
-
"jsonc/indent": ["error", 2],
|
|
131
|
-
"jsonc/key-spacing": [
|
|
132
|
-
"error",
|
|
133
|
-
{ afterColon: true, beforeColon: false }
|
|
134
|
-
],
|
|
135
|
-
"jsonc/object-curly-newline": [
|
|
136
|
-
"error",
|
|
137
|
-
{ consistent: true, multiline: true }
|
|
138
|
-
],
|
|
139
|
-
"jsonc/object-curly-spacing": ["error", "always"],
|
|
140
|
-
"jsonc/object-property-newline": [
|
|
141
|
-
"error",
|
|
142
|
-
{ allowMultiplePropertiesPerLine: true }
|
|
143
|
-
],
|
|
144
|
-
"jsonc/quote-props": "error",
|
|
145
|
-
"jsonc/quotes": "error"
|
|
146
|
-
} : {},
|
|
147
|
-
...overrides
|
|
148
|
-
}
|
|
149
|
-
}
|
|
150
|
-
];
|
|
151
|
-
}
|
|
152
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
153
|
-
0 && (module.exports = {
|
|
154
|
-
jsonc
|
|
155
|
-
});
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
export { b as JSONOptions, a as jsonc } from '../../types-HqEzZfQU.cjs';
|
|
2
|
-
import 'eslint-config-flat-gitignore';
|
|
3
|
-
import '@antfu/eslint-define-config';
|
|
4
|
-
import '@eslint-types/jsdoc/types';
|
|
5
|
-
import '@eslint-types/typescript-eslint/types';
|
|
6
|
-
import '@eslint-types/unicorn/types';
|
|
7
|
-
import 'eslint-plugin-antfu';
|
|
8
|
-
import '@stylistic/eslint-plugin';
|
|
9
|
-
import 'eslint';
|
|
10
|
-
import '@typescript-eslint/parser';
|
|
11
|
-
import 'eslint-processor-vue-blocks';
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
export { b as JSONOptions, a as jsonc } from '../../types-HqEzZfQU.js';
|
|
2
|
-
import 'eslint-config-flat-gitignore';
|
|
3
|
-
import '@antfu/eslint-define-config';
|
|
4
|
-
import '@eslint-types/jsdoc/types';
|
|
5
|
-
import '@eslint-types/typescript-eslint/types';
|
|
6
|
-
import '@eslint-types/unicorn/types';
|
|
7
|
-
import 'eslint-plugin-antfu';
|
|
8
|
-
import '@stylistic/eslint-plugin';
|
|
9
|
-
import 'eslint';
|
|
10
|
-
import '@typescript-eslint/parser';
|
|
11
|
-
import 'eslint-processor-vue-blocks';
|
|
@@ -1,131 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __create = Object.create;
|
|
3
|
-
var __defProp = Object.defineProperty;
|
|
4
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
-
var __export = (target, all) => {
|
|
9
|
-
for (var name in all)
|
|
10
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
-
};
|
|
12
|
-
var __copyProps = (to, from, except, desc) => {
|
|
13
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
-
for (let key of __getOwnPropNames(from))
|
|
15
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
16
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
|
-
}
|
|
18
|
-
return to;
|
|
19
|
-
};
|
|
20
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
-
mod
|
|
27
|
-
));
|
|
28
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
-
|
|
30
|
-
// src/configs/data/toml.ts
|
|
31
|
-
var toml_exports = {};
|
|
32
|
-
__export(toml_exports, {
|
|
33
|
-
toml: () => toml
|
|
34
|
-
});
|
|
35
|
-
module.exports = __toCommonJS(toml_exports);
|
|
36
|
-
|
|
37
|
-
// src/globs.ts
|
|
38
|
-
var GLOB_SRC_EXT = "?([cm])[jt]s?(x)";
|
|
39
|
-
var GLOB_SRC = `**/*.${GLOB_SRC_EXT}`;
|
|
40
|
-
var GLOB_MARKDOWN = "**/*.md";
|
|
41
|
-
var GLOB_TOML = "**/*.toml";
|
|
42
|
-
var GLOB_MARKDOWN_CODE = `${GLOB_MARKDOWN}/${GLOB_SRC}`;
|
|
43
|
-
var GLOB_TESTS = [
|
|
44
|
-
`**/__tests__/**/*.${GLOB_SRC_EXT}`,
|
|
45
|
-
`**/*.spec.${GLOB_SRC_EXT}`,
|
|
46
|
-
`**/*.test.${GLOB_SRC_EXT}`,
|
|
47
|
-
`**/*.bench.${GLOB_SRC_EXT}`,
|
|
48
|
-
`**/*.benchmark.${GLOB_SRC_EXT}`
|
|
49
|
-
];
|
|
50
|
-
var GLOB_NEXTJS_ROUTES = [
|
|
51
|
-
`**/app/**/page.${GLOB_SRC_EXT}`,
|
|
52
|
-
`**/app/**/layout.${GLOB_SRC_EXT}`,
|
|
53
|
-
`**/app/**/error.${GLOB_SRC_EXT}`,
|
|
54
|
-
`**/app/**/template.${GLOB_SRC_EXT}`,
|
|
55
|
-
`**/app/**/not-found.${GLOB_SRC_EXT}`,
|
|
56
|
-
`**/app/**/loading.${GLOB_SRC_EXT}`,
|
|
57
|
-
`**/app/**/robots.${GLOB_SRC_EXT}`,
|
|
58
|
-
`**/app/**/sitemap.${GLOB_SRC_EXT}`,
|
|
59
|
-
`**/pages/**/*.${GLOB_SRC_EXT}`
|
|
60
|
-
];
|
|
61
|
-
|
|
62
|
-
// src/utils.ts
|
|
63
|
-
var import_node_process = __toESM(require("process"), 1);
|
|
64
|
-
var import_local_pkg = require("local-pkg");
|
|
65
|
-
async function interop(m) {
|
|
66
|
-
const resolved = await m;
|
|
67
|
-
return resolved.default || resolved;
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
// src/configs/data/toml.ts
|
|
71
|
-
async function toml(options = {}) {
|
|
72
|
-
const {
|
|
73
|
-
files = [GLOB_TOML],
|
|
74
|
-
overrides = {},
|
|
75
|
-
stylistic = true
|
|
76
|
-
} = options;
|
|
77
|
-
const {
|
|
78
|
-
indent = 2
|
|
79
|
-
} = typeof stylistic === "boolean" ? {} : stylistic;
|
|
80
|
-
const [
|
|
81
|
-
pluginToml,
|
|
82
|
-
parserToml
|
|
83
|
-
] = await Promise.all([
|
|
84
|
-
interop(import("eslint-plugin-toml")),
|
|
85
|
-
interop(import("toml-eslint-parser"))
|
|
86
|
-
]);
|
|
87
|
-
return [
|
|
88
|
-
{
|
|
89
|
-
name: "luxass:toml:setup",
|
|
90
|
-
plugins: {
|
|
91
|
-
toml: pluginToml
|
|
92
|
-
}
|
|
93
|
-
},
|
|
94
|
-
{
|
|
95
|
-
name: "luxass:toml:rules",
|
|
96
|
-
files,
|
|
97
|
-
languageOptions: {
|
|
98
|
-
parser: parserToml
|
|
99
|
-
},
|
|
100
|
-
rules: {
|
|
101
|
-
"style/spaced-comment": "off",
|
|
102
|
-
"toml/comma-style": "error",
|
|
103
|
-
"toml/keys-order": "error",
|
|
104
|
-
"toml/no-space-dots": "error",
|
|
105
|
-
"toml/no-unreadable-number-separator": "error",
|
|
106
|
-
"toml/precision-of-fractional-seconds": "error",
|
|
107
|
-
"toml/precision-of-integer": "error",
|
|
108
|
-
"toml/tables-order": "error",
|
|
109
|
-
"toml/vue-custom-block/no-parsing-error": "error",
|
|
110
|
-
...stylistic ? {
|
|
111
|
-
"toml/array-bracket-newline": "error",
|
|
112
|
-
"toml/array-bracket-spacing": "error",
|
|
113
|
-
"toml/array-element-newline": "error",
|
|
114
|
-
"toml/indent": ["error", indent === "tab" ? 2 : indent],
|
|
115
|
-
"toml/inline-table-curly-spacing": "error",
|
|
116
|
-
"toml/key-spacing": "error",
|
|
117
|
-
"toml/padding-line-between-pairs": "error",
|
|
118
|
-
"toml/padding-line-between-tables": "error",
|
|
119
|
-
"toml/quoted-keys": "error",
|
|
120
|
-
"toml/spaced-comment": "error",
|
|
121
|
-
"toml/table-bracket-spacing": "error"
|
|
122
|
-
} : {},
|
|
123
|
-
...overrides
|
|
124
|
-
}
|
|
125
|
-
}
|
|
126
|
-
];
|
|
127
|
-
}
|
|
128
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
129
|
-
0 && (module.exports = {
|
|
130
|
-
toml
|
|
131
|
-
});
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
export { l as TOMLOptions, k as toml } from '../../types-HqEzZfQU.cjs';
|
|
2
|
-
import 'eslint-config-flat-gitignore';
|
|
3
|
-
import '@antfu/eslint-define-config';
|
|
4
|
-
import '@eslint-types/jsdoc/types';
|
|
5
|
-
import '@eslint-types/typescript-eslint/types';
|
|
6
|
-
import '@eslint-types/unicorn/types';
|
|
7
|
-
import 'eslint-plugin-antfu';
|
|
8
|
-
import '@stylistic/eslint-plugin';
|
|
9
|
-
import 'eslint';
|
|
10
|
-
import '@typescript-eslint/parser';
|
|
11
|
-
import 'eslint-processor-vue-blocks';
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
export { l as TOMLOptions, k as toml } from '../../types-HqEzZfQU.js';
|
|
2
|
-
import 'eslint-config-flat-gitignore';
|
|
3
|
-
import '@antfu/eslint-define-config';
|
|
4
|
-
import '@eslint-types/jsdoc/types';
|
|
5
|
-
import '@eslint-types/typescript-eslint/types';
|
|
6
|
-
import '@eslint-types/unicorn/types';
|
|
7
|
-
import 'eslint-plugin-antfu';
|
|
8
|
-
import '@stylistic/eslint-plugin';
|
|
9
|
-
import 'eslint';
|
|
10
|
-
import '@typescript-eslint/parser';
|
|
11
|
-
import 'eslint-processor-vue-blocks';
|
|
@@ -1,143 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __create = Object.create;
|
|
3
|
-
var __defProp = Object.defineProperty;
|
|
4
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
-
var __export = (target, all) => {
|
|
9
|
-
for (var name in all)
|
|
10
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
-
};
|
|
12
|
-
var __copyProps = (to, from, except, desc) => {
|
|
13
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
-
for (let key of __getOwnPropNames(from))
|
|
15
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
16
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
|
-
}
|
|
18
|
-
return to;
|
|
19
|
-
};
|
|
20
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
-
mod
|
|
27
|
-
));
|
|
28
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
-
|
|
30
|
-
// src/configs/data/yaml.ts
|
|
31
|
-
var yaml_exports = {};
|
|
32
|
-
__export(yaml_exports, {
|
|
33
|
-
yaml: () => yaml
|
|
34
|
-
});
|
|
35
|
-
module.exports = __toCommonJS(yaml_exports);
|
|
36
|
-
|
|
37
|
-
// src/globs.ts
|
|
38
|
-
var GLOB_SRC_EXT = "?([cm])[jt]s?(x)";
|
|
39
|
-
var GLOB_SRC = `**/*.${GLOB_SRC_EXT}`;
|
|
40
|
-
var GLOB_MARKDOWN = "**/*.md";
|
|
41
|
-
var GLOB_YAML = "**/*.y?(a)ml";
|
|
42
|
-
var GLOB_MARKDOWN_CODE = `${GLOB_MARKDOWN}/${GLOB_SRC}`;
|
|
43
|
-
var GLOB_TESTS = [
|
|
44
|
-
`**/__tests__/**/*.${GLOB_SRC_EXT}`,
|
|
45
|
-
`**/*.spec.${GLOB_SRC_EXT}`,
|
|
46
|
-
`**/*.test.${GLOB_SRC_EXT}`,
|
|
47
|
-
`**/*.bench.${GLOB_SRC_EXT}`,
|
|
48
|
-
`**/*.benchmark.${GLOB_SRC_EXT}`
|
|
49
|
-
];
|
|
50
|
-
var GLOB_NEXTJS_ROUTES = [
|
|
51
|
-
`**/app/**/page.${GLOB_SRC_EXT}`,
|
|
52
|
-
`**/app/**/layout.${GLOB_SRC_EXT}`,
|
|
53
|
-
`**/app/**/error.${GLOB_SRC_EXT}`,
|
|
54
|
-
`**/app/**/template.${GLOB_SRC_EXT}`,
|
|
55
|
-
`**/app/**/not-found.${GLOB_SRC_EXT}`,
|
|
56
|
-
`**/app/**/loading.${GLOB_SRC_EXT}`,
|
|
57
|
-
`**/app/**/robots.${GLOB_SRC_EXT}`,
|
|
58
|
-
`**/app/**/sitemap.${GLOB_SRC_EXT}`,
|
|
59
|
-
`**/pages/**/*.${GLOB_SRC_EXT}`
|
|
60
|
-
];
|
|
61
|
-
|
|
62
|
-
// src/utils.ts
|
|
63
|
-
var import_node_process = __toESM(require("process"), 1);
|
|
64
|
-
var import_local_pkg = require("local-pkg");
|
|
65
|
-
async function interop(m) {
|
|
66
|
-
const resolved = await m;
|
|
67
|
-
return resolved.default || resolved;
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
// src/configs/data/yaml.ts
|
|
71
|
-
async function yaml(options = {}) {
|
|
72
|
-
const {
|
|
73
|
-
files = [GLOB_YAML],
|
|
74
|
-
overrides = {},
|
|
75
|
-
stylistic = true
|
|
76
|
-
} = options;
|
|
77
|
-
const [
|
|
78
|
-
pluginYaml,
|
|
79
|
-
parserYaml
|
|
80
|
-
] = await Promise.all([
|
|
81
|
-
interop(import("eslint-plugin-yml")),
|
|
82
|
-
interop(import("yaml-eslint-parser"))
|
|
83
|
-
]);
|
|
84
|
-
const {
|
|
85
|
-
indent = 2,
|
|
86
|
-
quotes = "double"
|
|
87
|
-
} = typeof stylistic === "boolean" ? {} : stylistic;
|
|
88
|
-
return [
|
|
89
|
-
{
|
|
90
|
-
name: "luxass:yaml:setup",
|
|
91
|
-
plugins: {
|
|
92
|
-
yaml: pluginYaml
|
|
93
|
-
}
|
|
94
|
-
},
|
|
95
|
-
{
|
|
96
|
-
name: "luxass:yaml:rules",
|
|
97
|
-
files,
|
|
98
|
-
languageOptions: {
|
|
99
|
-
parser: parserYaml
|
|
100
|
-
},
|
|
101
|
-
rules: {
|
|
102
|
-
"style/spaced-comment": "off",
|
|
103
|
-
"yaml/block-mapping": "error",
|
|
104
|
-
"yaml/block-sequence": "error",
|
|
105
|
-
"yaml/no-empty-key": "error",
|
|
106
|
-
"yaml/no-empty-mapping-value": "error",
|
|
107
|
-
"yaml/no-empty-sequence-entry": "error",
|
|
108
|
-
"yaml/no-irregular-whitespace": "error",
|
|
109
|
-
"yaml/plain-scalar": "error",
|
|
110
|
-
"yaml/vue-custom-block/no-parsing-error": "error",
|
|
111
|
-
...stylistic ? {
|
|
112
|
-
"yaml/block-mapping-question-indicator-newline": "error",
|
|
113
|
-
"yaml/block-sequence-hyphen-indicator-newline": "error",
|
|
114
|
-
"yaml/flow-mapping-curly-newline": "error",
|
|
115
|
-
"yaml/flow-mapping-curly-spacing": "error",
|
|
116
|
-
"yaml/flow-sequence-bracket-newline": "error",
|
|
117
|
-
"yaml/flow-sequence-bracket-spacing": "error",
|
|
118
|
-
"yaml/indent": ["error", indent === "tab" ? 2 : indent],
|
|
119
|
-
"yaml/key-spacing": "error",
|
|
120
|
-
"yaml/no-tab-indent": "error",
|
|
121
|
-
"yaml/quotes": [
|
|
122
|
-
"error",
|
|
123
|
-
{ avoidEscape: false, prefer: quotes }
|
|
124
|
-
],
|
|
125
|
-
"yaml/spaced-comment": "error"
|
|
126
|
-
} : {},
|
|
127
|
-
...overrides
|
|
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
|
-
}
|
|
137
|
-
}
|
|
138
|
-
];
|
|
139
|
-
}
|
|
140
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
141
|
-
0 && (module.exports = {
|
|
142
|
-
yaml
|
|
143
|
-
});
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
export { Y as YAMLOptions, y as yaml } from '../../types-HqEzZfQU.cjs';
|
|
2
|
-
import 'eslint-config-flat-gitignore';
|
|
3
|
-
import '@antfu/eslint-define-config';
|
|
4
|
-
import '@eslint-types/jsdoc/types';
|
|
5
|
-
import '@eslint-types/typescript-eslint/types';
|
|
6
|
-
import '@eslint-types/unicorn/types';
|
|
7
|
-
import 'eslint-plugin-antfu';
|
|
8
|
-
import '@stylistic/eslint-plugin';
|
|
9
|
-
import 'eslint';
|
|
10
|
-
import '@typescript-eslint/parser';
|
|
11
|
-
import 'eslint-processor-vue-blocks';
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
export { Y as YAMLOptions, y as yaml } from '../../types-HqEzZfQU.js';
|
|
2
|
-
import 'eslint-config-flat-gitignore';
|
|
3
|
-
import '@antfu/eslint-define-config';
|
|
4
|
-
import '@eslint-types/jsdoc/types';
|
|
5
|
-
import '@eslint-types/typescript-eslint/types';
|
|
6
|
-
import '@eslint-types/unicorn/types';
|
|
7
|
-
import 'eslint-plugin-antfu';
|
|
8
|
-
import '@stylistic/eslint-plugin';
|
|
9
|
-
import 'eslint';
|
|
10
|
-
import '@typescript-eslint/parser';
|
|
11
|
-
import 'eslint-processor-vue-blocks';
|
|
@@ -1,85 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __create = Object.create;
|
|
3
|
-
var __defProp = Object.defineProperty;
|
|
4
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
-
var __export = (target, all) => {
|
|
9
|
-
for (var name in all)
|
|
10
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
-
};
|
|
12
|
-
var __copyProps = (to, from, except, desc) => {
|
|
13
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
-
for (let key of __getOwnPropNames(from))
|
|
15
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
16
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
|
-
}
|
|
18
|
-
return to;
|
|
19
|
-
};
|
|
20
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
-
mod
|
|
27
|
-
));
|
|
28
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
-
|
|
30
|
-
// src/configs/docs/jsdoc.ts
|
|
31
|
-
var jsdoc_exports = {};
|
|
32
|
-
__export(jsdoc_exports, {
|
|
33
|
-
jsdoc: () => jsdoc
|
|
34
|
-
});
|
|
35
|
-
module.exports = __toCommonJS(jsdoc_exports);
|
|
36
|
-
|
|
37
|
-
// src/utils.ts
|
|
38
|
-
var import_node_process = __toESM(require("process"), 1);
|
|
39
|
-
var import_local_pkg = require("local-pkg");
|
|
40
|
-
async function interop(m) {
|
|
41
|
-
const resolved = await m;
|
|
42
|
-
return resolved.default || resolved;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
// src/configs/docs/jsdoc.ts
|
|
46
|
-
async function jsdoc(options = {}) {
|
|
47
|
-
const {
|
|
48
|
-
overrides,
|
|
49
|
-
stylistic = true
|
|
50
|
-
} = options;
|
|
51
|
-
return [
|
|
52
|
-
{
|
|
53
|
-
name: "luxass:jsdoc",
|
|
54
|
-
plugins: {
|
|
55
|
-
jsdoc: await interop(import("eslint-plugin-jsdoc"))
|
|
56
|
-
},
|
|
57
|
-
rules: {
|
|
58
|
-
"jsdoc/check-access": "warn",
|
|
59
|
-
"jsdoc/check-param-names": "warn",
|
|
60
|
-
"jsdoc/check-property-names": "warn",
|
|
61
|
-
"jsdoc/check-types": "warn",
|
|
62
|
-
"jsdoc/empty-tags": "warn",
|
|
63
|
-
"jsdoc/implements-on-classes": "warn",
|
|
64
|
-
"jsdoc/no-defaults": "warn",
|
|
65
|
-
"jsdoc/no-multi-asterisks": "warn",
|
|
66
|
-
"jsdoc/require-param-name": "warn",
|
|
67
|
-
"jsdoc/require-property": "warn",
|
|
68
|
-
"jsdoc/require-property-description": "warn",
|
|
69
|
-
"jsdoc/require-property-name": "warn",
|
|
70
|
-
"jsdoc/require-returns-check": "warn",
|
|
71
|
-
"jsdoc/require-returns-description": "warn",
|
|
72
|
-
"jsdoc/require-yields-check": "warn",
|
|
73
|
-
...stylistic ? {
|
|
74
|
-
"jsdoc/check-alignment": "warn",
|
|
75
|
-
"jsdoc/multiline-blocks": "warn"
|
|
76
|
-
} : {},
|
|
77
|
-
...overrides
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
];
|
|
81
|
-
}
|
|
82
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
83
|
-
0 && (module.exports = {
|
|
84
|
-
jsdoc
|
|
85
|
-
});
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { S as StylisticConfig, p as FlatConfigItem } from '../../types-HqEzZfQU.cjs';
|
|
2
|
-
import 'eslint-config-flat-gitignore';
|
|
3
|
-
import '@antfu/eslint-define-config';
|
|
4
|
-
import '@eslint-types/jsdoc/types';
|
|
5
|
-
import '@eslint-types/typescript-eslint/types';
|
|
6
|
-
import '@eslint-types/unicorn/types';
|
|
7
|
-
import 'eslint-plugin-antfu';
|
|
8
|
-
import '@stylistic/eslint-plugin';
|
|
9
|
-
import 'eslint';
|
|
10
|
-
import '@typescript-eslint/parser';
|
|
11
|
-
import 'eslint-processor-vue-blocks';
|
|
12
|
-
|
|
13
|
-
interface JSDOCOptions {
|
|
14
|
-
/**
|
|
15
|
-
* Enable stylistic rules.
|
|
16
|
-
*
|
|
17
|
-
* @default true
|
|
18
|
-
*/
|
|
19
|
-
stylistic?: boolean | StylisticConfig;
|
|
20
|
-
/**
|
|
21
|
-
* Overrides for the config.
|
|
22
|
-
*/
|
|
23
|
-
overrides?: FlatConfigItem["rules"];
|
|
24
|
-
}
|
|
25
|
-
declare function jsdoc(options?: JSDOCOptions): Promise<FlatConfigItem[]>;
|
|
26
|
-
|
|
27
|
-
export { type JSDOCOptions, jsdoc };
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { S as StylisticConfig, p as FlatConfigItem } from '../../types-HqEzZfQU.js';
|
|
2
|
-
import 'eslint-config-flat-gitignore';
|
|
3
|
-
import '@antfu/eslint-define-config';
|
|
4
|
-
import '@eslint-types/jsdoc/types';
|
|
5
|
-
import '@eslint-types/typescript-eslint/types';
|
|
6
|
-
import '@eslint-types/unicorn/types';
|
|
7
|
-
import 'eslint-plugin-antfu';
|
|
8
|
-
import '@stylistic/eslint-plugin';
|
|
9
|
-
import 'eslint';
|
|
10
|
-
import '@typescript-eslint/parser';
|
|
11
|
-
import 'eslint-processor-vue-blocks';
|
|
12
|
-
|
|
13
|
-
interface JSDOCOptions {
|
|
14
|
-
/**
|
|
15
|
-
* Enable stylistic rules.
|
|
16
|
-
*
|
|
17
|
-
* @default true
|
|
18
|
-
*/
|
|
19
|
-
stylistic?: boolean | StylisticConfig;
|
|
20
|
-
/**
|
|
21
|
-
* Overrides for the config.
|
|
22
|
-
*/
|
|
23
|
-
overrides?: FlatConfigItem["rules"];
|
|
24
|
-
}
|
|
25
|
-
declare function jsdoc(options?: JSDOCOptions): Promise<FlatConfigItem[]>;
|
|
26
|
-
|
|
27
|
-
export { type JSDOCOptions, jsdoc };
|