@agilebot/eslint-config 0.8.0 → 0.8.2
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/LICENSE +9 -9
- package/bin/eslint-agilebot +2 -2
- package/dist/cli.d.mts +1 -2
- package/dist/cli.d.ts +1 -2
- package/dist/cli.js +76 -134
- package/dist/cli.mjs +77 -98
- package/dist/constants-uP0zspUv.js +150 -0
- package/dist/constants-zSSLGYP3.mjs +79 -0
- package/dist/index.d.mts +117 -98
- package/dist/index.d.ts +117 -98
- package/dist/index.js +1089 -1142
- package/dist/index.mjs +1091 -1059
- package/package.json +6 -4
- package/dist/chunk-NVFPC5RO.mjs +0 -84
package/LICENSE
CHANGED
@@ -1,9 +1,9 @@
|
|
1
|
-
The MIT License (MIT)
|
2
|
-
|
3
|
-
Copyright (c) 2024 Agilebot, Inc.
|
4
|
-
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
6
|
-
|
7
|
-
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
8
|
-
|
9
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2024 Agilebot, Inc.
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
6
|
+
|
7
|
+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
8
|
+
|
9
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
package/bin/eslint-agilebot
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
#!/usr/bin/env node
|
2
|
-
require('../dist/cli');
|
1
|
+
#!/usr/bin/env node
|
2
|
+
require('../dist/cli');
|
package/dist/cli.d.mts
CHANGED
@@ -1,2 +1 @@
|
|
1
|
-
|
2
|
-
export { }
|
1
|
+
export { };
|
package/dist/cli.d.ts
CHANGED
@@ -1,2 +1 @@
|
|
1
|
-
|
2
|
-
export { }
|
1
|
+
export { };
|
package/dist/cli.js
CHANGED
@@ -1,145 +1,87 @@
|
|
1
|
-
/**
|
2
|
-
* @license @agilebot/eslint-config v0.8.
|
3
|
-
*
|
4
|
-
* Copyright (c) Agilebot, Inc. and its affiliates.
|
5
|
-
*
|
6
|
-
* This source code is licensed under the MIT license found in the
|
7
|
-
* LICENSE file in the root directory of this source tree.
|
8
|
-
*/
|
1
|
+
/**
|
2
|
+
* @license @agilebot/eslint-config v0.8.2
|
3
|
+
*
|
4
|
+
* Copyright (c) Agilebot, Inc. and its affiliates.
|
5
|
+
*
|
6
|
+
* This source code is licensed under the MIT license found in the
|
7
|
+
* LICENSE file in the root directory of this source tree.
|
8
|
+
*/
|
9
9
|
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
17
|
-
var __copyProps = (to, from, except, desc) => {
|
18
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
19
|
-
for (let key of __getOwnPropNames(from))
|
20
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
21
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
22
|
-
}
|
23
|
-
return to;
|
24
|
-
};
|
25
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
26
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
27
|
-
// file that has been converted to a CommonJS file using a Babel-
|
28
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
29
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
30
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
31
|
-
mod
|
32
|
-
));
|
10
|
+
const require_constants = require('./constants-uP0zspUv.js');
|
11
|
+
const yargs = require_constants.__toESM(require("yargs"));
|
12
|
+
const yargs_helpers = require_constants.__toESM(require("yargs/helpers"));
|
13
|
+
const ansis = require_constants.__toESM(require("ansis"));
|
14
|
+
const __agilebot_eslint_utils = require_constants.__toESM(require("@agilebot/eslint-utils"));
|
15
|
+
const node_path = require_constants.__toESM(require("node:path"));
|
33
16
|
|
34
|
-
|
35
|
-
var import_yargs = __toESM(require("yargs"));
|
36
|
-
var import_helpers = require("yargs/helpers");
|
37
|
-
var import_ansis = __toESM(require("ansis"));
|
38
|
-
var import_eslint_utils = require("@agilebot/eslint-utils");
|
39
|
-
|
40
|
-
// src/constants.ts
|
41
|
-
var JS_EXTS = [".js", ".jsx", ".cjs", ".cjsx", ".mjs", ".mjsx"];
|
42
|
-
var TS_EXTS = [".ts", ".tsx", ".cts", ".ctsx", ".mts", ".mtsx"];
|
43
|
-
var DTS_EXTS = [".d.ts", ".d.cts", ".d.mts"];
|
44
|
-
var VUE_EXTS = [".vue"];
|
45
|
-
var DEFAULT_EXTS = [...JS_EXTS, ...TS_EXTS, ...VUE_EXTS];
|
46
|
-
var JS_GLOBS = JS_EXTS.map((ext) => `**/*${ext}`);
|
47
|
-
var TS_GLOBS = TS_EXTS.map((ext) => `**/*${ext}`);
|
48
|
-
var DTS_GLOBS = DTS_EXTS.map((ext) => `**/*${ext}`);
|
49
|
-
var VUE_GLOBS = VUE_EXTS.map((ext) => `**/*${ext}`);
|
50
|
-
var DEFAULT_GLOBS = DEFAULT_EXTS.map((ext) => `**/*${ext}`);
|
51
|
-
var CLI_NAME = "eslint-agilebot";
|
52
|
-
|
53
|
-
// src/cli/stages/eslint.ts
|
54
|
-
var import_node_path = __toESM(require("path"));
|
17
|
+
//#region src/cli/stages/eslint.ts
|
55
18
|
function patch() {
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
};
|
64
|
-
}
|
19
|
+
if (console?.error) {
|
20
|
+
const origConsoleError = console.error;
|
21
|
+
console.error = (...args) => {
|
22
|
+
if (args?.[0]?.includes("React version not specified")) return;
|
23
|
+
origConsoleError(...args);
|
24
|
+
};
|
25
|
+
}
|
65
26
|
}
|
66
27
|
function runBinary() {
|
67
|
-
|
68
|
-
|
69
|
-
|
28
|
+
const pkg = require.resolve("eslint/package.json");
|
29
|
+
const bin = node_path.default.join(pkg, "..", "bin", "eslint.js");
|
30
|
+
require(bin);
|
70
31
|
}
|
71
32
|
|
72
|
-
|
33
|
+
//#endregion
|
34
|
+
//#region src/cli/index.ts
|
73
35
|
function cli() {
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
}
|
120
|
-
if (argv.progress && !(0, import_eslint_utils.isCI)()) {
|
121
|
-
process.argv.splice(
|
122
|
-
2,
|
123
|
-
0,
|
124
|
-
"--plugin",
|
125
|
-
"file-progress",
|
126
|
-
"--rule",
|
127
|
-
"file-progress/activate: 1"
|
128
|
-
);
|
129
|
-
}
|
130
|
-
if (!argv.showWarningsInCi && (0, import_eslint_utils.isCI)()) {
|
131
|
-
console.warn(
|
132
|
-
import_ansis.default.yellow(
|
133
|
-
`Warning: ${CLI_NAME} will report errors only in CI environment`
|
134
|
-
)
|
135
|
-
);
|
136
|
-
process.argv.splice(2, 0, "--quiet");
|
137
|
-
}
|
138
|
-
if (argv.checkIntl) {
|
139
|
-
process.argv.splice(2, 0, "--rule", "@agilebot/intl-id-unused: 1");
|
140
|
-
}
|
141
|
-
runBinary();
|
36
|
+
patch();
|
37
|
+
const argv = (0, yargs.default)((0, yargs_helpers.hideBin)(process.argv)).scriptName(require_constants.CLI_NAME).usage(`${require_constants.CLI_NAME} [options] file.js [file.js] [dir]`).options({
|
38
|
+
config: {
|
39
|
+
alias: "c",
|
40
|
+
type: "string",
|
41
|
+
description: "Use this configuration instead of eslint.config.js, eslint.config.mjs, or eslint.config.cjs"
|
42
|
+
},
|
43
|
+
fix: {
|
44
|
+
type: "boolean",
|
45
|
+
description: "Automatically fix problems",
|
46
|
+
default: true
|
47
|
+
},
|
48
|
+
"check-intl": {
|
49
|
+
type: "boolean",
|
50
|
+
description: "Check for unused intl IDs",
|
51
|
+
default: false
|
52
|
+
},
|
53
|
+
progress: {
|
54
|
+
type: "boolean",
|
55
|
+
description: "Show progress bar",
|
56
|
+
default: false
|
57
|
+
},
|
58
|
+
"show-warnings-in-ci": {
|
59
|
+
type: "boolean",
|
60
|
+
description: "Show warnings in CI environment",
|
61
|
+
default: false
|
62
|
+
}
|
63
|
+
}).alias("h", "help").alias("v", "version").parseSync();
|
64
|
+
process.argv = process.argv.slice(0, 2);
|
65
|
+
if (argv._.length === 0) {
|
66
|
+
console.error(ansis.default.red("Error: 'patterns' must be a non-empty string or an array of non-empty strings"));
|
67
|
+
process.exit(1);
|
68
|
+
}
|
69
|
+
argv._.forEach((pattern) => {
|
70
|
+
process.argv.push(String(pattern));
|
71
|
+
});
|
72
|
+
if (argv.fix) process.argv.splice(2, 0, "--fix");
|
73
|
+
if (argv.config) process.argv.splice(2, 0, "--config", argv.config);
|
74
|
+
if (argv.progress && !(0, __agilebot_eslint_utils.isCI)()) process.argv.splice(2, 0, "--plugin", "file-progress", "--rule", "file-progress/activate: 1");
|
75
|
+
if (!argv.showWarningsInCi && (0, __agilebot_eslint_utils.isCI)()) {
|
76
|
+
console.warn(ansis.default.yellow(`Warning: ${require_constants.CLI_NAME} will report errors only in CI environment`));
|
77
|
+
process.argv.splice(2, 0, "--quiet");
|
78
|
+
}
|
79
|
+
if (argv.checkIntl) process.argv.splice(2, 0, "--rule", "@agilebot/intl-id-unused: 1");
|
80
|
+
runBinary();
|
142
81
|
}
|
143
82
|
|
144
|
-
|
83
|
+
//#endregion
|
84
|
+
//#region src/cli.ts
|
145
85
|
cli();
|
86
|
+
|
87
|
+
//#endregion
|
package/dist/cli.mjs
CHANGED
@@ -1,113 +1,92 @@
|
|
1
|
-
/**
|
2
|
-
* @license @agilebot/eslint-config v0.8.
|
3
|
-
*
|
4
|
-
* Copyright (c) Agilebot, Inc. and its affiliates.
|
5
|
-
*
|
6
|
-
* This source code is licensed under the MIT license found in the
|
7
|
-
* LICENSE file in the root directory of this source tree.
|
8
|
-
*/
|
1
|
+
/**
|
2
|
+
* @license @agilebot/eslint-config v0.8.2
|
3
|
+
*
|
4
|
+
* Copyright (c) Agilebot, Inc. and its affiliates.
|
5
|
+
*
|
6
|
+
* This source code is licensed under the MIT license found in the
|
7
|
+
* LICENSE file in the root directory of this source tree.
|
8
|
+
*/
|
9
9
|
|
10
|
-
import {
|
11
|
-
|
12
|
-
__require
|
13
|
-
} from "./chunk-NVFPC5RO.mjs";
|
14
|
-
|
15
|
-
// src/cli/index.ts
|
10
|
+
import { CLI_NAME } from "./constants-zSSLGYP3.mjs";
|
11
|
+
import { createRequire } from "node:module";
|
16
12
|
import yargs from "yargs";
|
17
13
|
import { hideBin } from "yargs/helpers";
|
18
14
|
import ansis from "ansis";
|
19
15
|
import { isCI } from "@agilebot/eslint-utils";
|
20
|
-
|
21
|
-
// src/cli/stages/eslint.ts
|
22
16
|
import path from "node:path";
|
17
|
+
|
18
|
+
//#region rolldown:runtime
|
19
|
+
var __require = /* @__PURE__ */ createRequire(import.meta.url);
|
20
|
+
|
21
|
+
//#endregion
|
22
|
+
//#region src/cli/stages/eslint.ts
|
23
23
|
function patch() {
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
};
|
32
|
-
}
|
24
|
+
if (console?.error) {
|
25
|
+
const origConsoleError = console.error;
|
26
|
+
console.error = (...args) => {
|
27
|
+
if (args?.[0]?.includes("React version not specified")) return;
|
28
|
+
origConsoleError(...args);
|
29
|
+
};
|
30
|
+
}
|
33
31
|
}
|
34
32
|
function runBinary() {
|
35
|
-
|
36
|
-
|
37
|
-
|
33
|
+
const pkg = __require.resolve("eslint/package.json");
|
34
|
+
const bin = path.join(pkg, "..", "bin", "eslint.js");
|
35
|
+
__require(bin);
|
38
36
|
}
|
39
37
|
|
40
|
-
|
38
|
+
//#endregion
|
39
|
+
//#region src/cli/index.ts
|
41
40
|
function cli() {
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
}
|
88
|
-
if (argv.progress && !isCI()) {
|
89
|
-
process.argv.splice(
|
90
|
-
2,
|
91
|
-
0,
|
92
|
-
"--plugin",
|
93
|
-
"file-progress",
|
94
|
-
"--rule",
|
95
|
-
"file-progress/activate: 1"
|
96
|
-
);
|
97
|
-
}
|
98
|
-
if (!argv.showWarningsInCi && isCI()) {
|
99
|
-
console.warn(
|
100
|
-
ansis.yellow(
|
101
|
-
`Warning: ${CLI_NAME} will report errors only in CI environment`
|
102
|
-
)
|
103
|
-
);
|
104
|
-
process.argv.splice(2, 0, "--quiet");
|
105
|
-
}
|
106
|
-
if (argv.checkIntl) {
|
107
|
-
process.argv.splice(2, 0, "--rule", "@agilebot/intl-id-unused: 1");
|
108
|
-
}
|
109
|
-
runBinary();
|
41
|
+
patch();
|
42
|
+
const argv = yargs(hideBin(process.argv)).scriptName(CLI_NAME).usage(`${CLI_NAME} [options] file.js [file.js] [dir]`).options({
|
43
|
+
config: {
|
44
|
+
alias: "c",
|
45
|
+
type: "string",
|
46
|
+
description: "Use this configuration instead of eslint.config.js, eslint.config.mjs, or eslint.config.cjs"
|
47
|
+
},
|
48
|
+
fix: {
|
49
|
+
type: "boolean",
|
50
|
+
description: "Automatically fix problems",
|
51
|
+
default: true
|
52
|
+
},
|
53
|
+
"check-intl": {
|
54
|
+
type: "boolean",
|
55
|
+
description: "Check for unused intl IDs",
|
56
|
+
default: false
|
57
|
+
},
|
58
|
+
progress: {
|
59
|
+
type: "boolean",
|
60
|
+
description: "Show progress bar",
|
61
|
+
default: false
|
62
|
+
},
|
63
|
+
"show-warnings-in-ci": {
|
64
|
+
type: "boolean",
|
65
|
+
description: "Show warnings in CI environment",
|
66
|
+
default: false
|
67
|
+
}
|
68
|
+
}).alias("h", "help").alias("v", "version").parseSync();
|
69
|
+
process.argv = process.argv.slice(0, 2);
|
70
|
+
if (argv._.length === 0) {
|
71
|
+
console.error(ansis.red("Error: 'patterns' must be a non-empty string or an array of non-empty strings"));
|
72
|
+
process.exit(1);
|
73
|
+
}
|
74
|
+
argv._.forEach((pattern) => {
|
75
|
+
process.argv.push(String(pattern));
|
76
|
+
});
|
77
|
+
if (argv.fix) process.argv.splice(2, 0, "--fix");
|
78
|
+
if (argv.config) process.argv.splice(2, 0, "--config", argv.config);
|
79
|
+
if (argv.progress && !isCI()) process.argv.splice(2, 0, "--plugin", "file-progress", "--rule", "file-progress/activate: 1");
|
80
|
+
if (!argv.showWarningsInCi && isCI()) {
|
81
|
+
console.warn(ansis.yellow(`Warning: ${CLI_NAME} will report errors only in CI environment`));
|
82
|
+
process.argv.splice(2, 0, "--quiet");
|
83
|
+
}
|
84
|
+
if (argv.checkIntl) process.argv.splice(2, 0, "--rule", "@agilebot/intl-id-unused: 1");
|
85
|
+
runBinary();
|
110
86
|
}
|
111
87
|
|
112
|
-
|
88
|
+
//#endregion
|
89
|
+
//#region src/cli.ts
|
113
90
|
cli();
|
91
|
+
|
92
|
+
//#endregion
|
@@ -0,0 +1,150 @@
|
|
1
|
+
/**
|
2
|
+
* @license @agilebot/eslint-config v0.8.2
|
3
|
+
*
|
4
|
+
* Copyright (c) Agilebot, Inc. and its affiliates.
|
5
|
+
*
|
6
|
+
* This source code is licensed under the MIT license found in the
|
7
|
+
* LICENSE file in the root directory of this source tree.
|
8
|
+
*/
|
9
|
+
|
10
|
+
//#region rolldown:runtime
|
11
|
+
var __create = Object.create;
|
12
|
+
var __defProp = Object.defineProperty;
|
13
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
14
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
15
|
+
var __getProtoOf = Object.getPrototypeOf;
|
16
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
17
|
+
var __copyProps = (to, from, except, desc) => {
|
18
|
+
if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
|
19
|
+
key = keys[i];
|
20
|
+
if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
21
|
+
get: ((k) => from[k]).bind(null, key),
|
22
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
23
|
+
});
|
24
|
+
}
|
25
|
+
return to;
|
26
|
+
};
|
27
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
|
28
|
+
value: mod,
|
29
|
+
enumerable: true
|
30
|
+
}) : target, mod));
|
31
|
+
|
32
|
+
//#endregion
|
33
|
+
|
34
|
+
//#region src/constants.ts
|
35
|
+
const JS_EXTS = [
|
36
|
+
".js",
|
37
|
+
".jsx",
|
38
|
+
".cjs",
|
39
|
+
".cjsx",
|
40
|
+
".mjs",
|
41
|
+
".mjsx"
|
42
|
+
];
|
43
|
+
const TS_EXTS = [
|
44
|
+
".ts",
|
45
|
+
".tsx",
|
46
|
+
".cts",
|
47
|
+
".ctsx",
|
48
|
+
".mts",
|
49
|
+
".mtsx"
|
50
|
+
];
|
51
|
+
const DTS_EXTS = [
|
52
|
+
".d.ts",
|
53
|
+
".d.cts",
|
54
|
+
".d.mts"
|
55
|
+
];
|
56
|
+
const VUE_EXTS = [".vue"];
|
57
|
+
const DEFAULT_EXTS = [
|
58
|
+
...JS_EXTS,
|
59
|
+
...TS_EXTS,
|
60
|
+
...VUE_EXTS
|
61
|
+
];
|
62
|
+
const JS_GLOBS = JS_EXTS.map((ext) => `**/*${ext}`);
|
63
|
+
const TS_GLOBS = TS_EXTS.map((ext) => `**/*${ext}`);
|
64
|
+
const DTS_GLOBS = DTS_EXTS.map((ext) => `**/*${ext}`);
|
65
|
+
const VUE_GLOBS = VUE_EXTS.map((ext) => `**/*${ext}`);
|
66
|
+
const DEFAULT_GLOBS = DEFAULT_EXTS.map((ext) => `**/*${ext}`);
|
67
|
+
const IGNORE_GLOBS = [
|
68
|
+
"**/node_modules",
|
69
|
+
"**/dist",
|
70
|
+
"**/package-lock.json",
|
71
|
+
"**/yarn.lock",
|
72
|
+
"**/pnpm-lock.yaml",
|
73
|
+
"**/bun.lockb",
|
74
|
+
"**/output",
|
75
|
+
"**/coverage",
|
76
|
+
"**/temp",
|
77
|
+
"**/.temp",
|
78
|
+
"**/tmp",
|
79
|
+
"**/.tmp",
|
80
|
+
"**/.history",
|
81
|
+
"**/.vitepress/cache",
|
82
|
+
"**/.nuxt",
|
83
|
+
"**/.next",
|
84
|
+
"**/.svelte-kit",
|
85
|
+
"**/.vercel",
|
86
|
+
"**/.changeset",
|
87
|
+
"**/.idea",
|
88
|
+
"**/.cache",
|
89
|
+
"**/.output",
|
90
|
+
"**/.vite-inspect",
|
91
|
+
"**/.yarn",
|
92
|
+
"**/vite.config.*.timestamp-*",
|
93
|
+
"**/CHANGELOG*.md",
|
94
|
+
"**/*.min.*",
|
95
|
+
"**/LICENSE*",
|
96
|
+
"**/__snapshots__",
|
97
|
+
"**/auto-import?(s).d.ts",
|
98
|
+
"**/components.d.ts"
|
99
|
+
];
|
100
|
+
const CLI_NAME = "eslint-agilebot";
|
101
|
+
|
102
|
+
//#endregion
|
103
|
+
Object.defineProperty(exports, 'CLI_NAME', {
|
104
|
+
enumerable: true,
|
105
|
+
get: function () {
|
106
|
+
return CLI_NAME;
|
107
|
+
}
|
108
|
+
});
|
109
|
+
Object.defineProperty(exports, 'DEFAULT_GLOBS', {
|
110
|
+
enumerable: true,
|
111
|
+
get: function () {
|
112
|
+
return DEFAULT_GLOBS;
|
113
|
+
}
|
114
|
+
});
|
115
|
+
Object.defineProperty(exports, 'DTS_GLOBS', {
|
116
|
+
enumerable: true,
|
117
|
+
get: function () {
|
118
|
+
return DTS_GLOBS;
|
119
|
+
}
|
120
|
+
});
|
121
|
+
Object.defineProperty(exports, 'IGNORE_GLOBS', {
|
122
|
+
enumerable: true,
|
123
|
+
get: function () {
|
124
|
+
return IGNORE_GLOBS;
|
125
|
+
}
|
126
|
+
});
|
127
|
+
Object.defineProperty(exports, 'JS_GLOBS', {
|
128
|
+
enumerable: true,
|
129
|
+
get: function () {
|
130
|
+
return JS_GLOBS;
|
131
|
+
}
|
132
|
+
});
|
133
|
+
Object.defineProperty(exports, 'TS_GLOBS', {
|
134
|
+
enumerable: true,
|
135
|
+
get: function () {
|
136
|
+
return TS_GLOBS;
|
137
|
+
}
|
138
|
+
});
|
139
|
+
Object.defineProperty(exports, 'VUE_GLOBS', {
|
140
|
+
enumerable: true,
|
141
|
+
get: function () {
|
142
|
+
return VUE_GLOBS;
|
143
|
+
}
|
144
|
+
});
|
145
|
+
Object.defineProperty(exports, '__toESM', {
|
146
|
+
enumerable: true,
|
147
|
+
get: function () {
|
148
|
+
return __toESM;
|
149
|
+
}
|
150
|
+
});
|