@isentinel/eslint-config 0.7.2 → 0.7.3
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 +10 -10
- package/dist/{chunk-NI656Y5M.js → chunk-NKAA53II.js} +2 -2
- package/dist/cli.cjs +30 -30
- package/dist/cli.js +31 -31
- package/dist/index.cjs +58 -54
- package/dist/index.d.cts +1048 -701
- package/dist/index.d.ts +1048 -701
- package/dist/index.js +56 -52
- package/package.json +20 -20
package/dist/index.cjs
CHANGED
|
@@ -33,19 +33,19 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
33
33
|
));
|
|
34
34
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
35
35
|
|
|
36
|
-
// node_modules/.pnpm/tsup@8.1.
|
|
36
|
+
// node_modules/.pnpm/tsup@8.2.3_jiti@1.21.6_postcss@8.4.38_tsx@4.15.4_typescript@5.5.4_yaml@2.4.5/node_modules/tsup/assets/cjs_shims.js
|
|
37
37
|
var getImportMetaUrl, importMetaUrl;
|
|
38
38
|
var init_cjs_shims = __esm({
|
|
39
|
-
"node_modules/.pnpm/tsup@8.1.
|
|
39
|
+
"node_modules/.pnpm/tsup@8.2.3_jiti@1.21.6_postcss@8.4.38_tsx@4.15.4_typescript@5.5.4_yaml@2.4.5/node_modules/tsup/assets/cjs_shims.js"() {
|
|
40
40
|
"use strict";
|
|
41
|
-
getImportMetaUrl = () => typeof document === "undefined" ? new URL(
|
|
41
|
+
getImportMetaUrl = () => typeof document === "undefined" ? new URL(`file:${__filename}`).href : document.currentScript && document.currentScript.src || new URL("main.js", document.baseURI).href;
|
|
42
42
|
importMetaUrl = /* @__PURE__ */ getImportMetaUrl();
|
|
43
43
|
}
|
|
44
44
|
});
|
|
45
45
|
|
|
46
|
-
// node_modules/.pnpm/eslint-plugin-simple-import-sort@12.1.1_eslint@9.
|
|
46
|
+
// node_modules/.pnpm/eslint-plugin-simple-import-sort@12.1.1_eslint@9.8.0/node_modules/eslint-plugin-simple-import-sort/shared.js
|
|
47
47
|
var require_shared = __commonJS({
|
|
48
|
-
"node_modules/.pnpm/eslint-plugin-simple-import-sort@12.1.1_eslint@9.
|
|
48
|
+
"node_modules/.pnpm/eslint-plugin-simple-import-sort@12.1.1_eslint@9.8.0/node_modules/eslint-plugin-simple-import-sort/shared.js"(exports2, module2) {
|
|
49
49
|
"use strict";
|
|
50
50
|
init_cjs_shims();
|
|
51
51
|
function extractChunks(parentNode, isPartOfChunk) {
|
|
@@ -584,9 +584,9 @@ var require_shared = __commonJS({
|
|
|
584
584
|
}
|
|
585
585
|
});
|
|
586
586
|
|
|
587
|
-
// node_modules/.pnpm/eslint-plugin-simple-import-sort@12.1.1_eslint@9.
|
|
587
|
+
// node_modules/.pnpm/eslint-plugin-simple-import-sort@12.1.1_eslint@9.8.0/node_modules/eslint-plugin-simple-import-sort/imports.js
|
|
588
588
|
var require_imports = __commonJS({
|
|
589
|
-
"node_modules/.pnpm/eslint-plugin-simple-import-sort@12.1.1_eslint@9.
|
|
589
|
+
"node_modules/.pnpm/eslint-plugin-simple-import-sort@12.1.1_eslint@9.8.0/node_modules/eslint-plugin-simple-import-sort/imports.js"(exports2, module2) {
|
|
590
590
|
"use strict";
|
|
591
591
|
init_cjs_shims();
|
|
592
592
|
var shared = require_shared();
|
|
@@ -712,9 +712,9 @@ var require_imports = __commonJS({
|
|
|
712
712
|
}
|
|
713
713
|
});
|
|
714
714
|
|
|
715
|
-
// node_modules/.pnpm/eslint-plugin-simple-import-sort@12.1.1_eslint@9.
|
|
715
|
+
// node_modules/.pnpm/eslint-plugin-simple-import-sort@12.1.1_eslint@9.8.0/node_modules/eslint-plugin-simple-import-sort/exports.js
|
|
716
716
|
var require_exports = __commonJS({
|
|
717
|
-
"node_modules/.pnpm/eslint-plugin-simple-import-sort@12.1.1_eslint@9.
|
|
717
|
+
"node_modules/.pnpm/eslint-plugin-simple-import-sort@12.1.1_eslint@9.8.0/node_modules/eslint-plugin-simple-import-sort/exports.js"(exports2, module2) {
|
|
718
718
|
"use strict";
|
|
719
719
|
init_cjs_shims();
|
|
720
720
|
var shared = require_shared();
|
|
@@ -804,9 +804,9 @@ var require_exports = __commonJS({
|
|
|
804
804
|
}
|
|
805
805
|
});
|
|
806
806
|
|
|
807
|
-
// node_modules/.pnpm/eslint-plugin-simple-import-sort@12.1.1_eslint@9.
|
|
807
|
+
// node_modules/.pnpm/eslint-plugin-simple-import-sort@12.1.1_eslint@9.8.0/node_modules/eslint-plugin-simple-import-sort/index.js
|
|
808
808
|
var require_eslint_plugin_simple_import_sort = __commonJS({
|
|
809
|
-
"node_modules/.pnpm/eslint-plugin-simple-import-sort@12.1.1_eslint@9.
|
|
809
|
+
"node_modules/.pnpm/eslint-plugin-simple-import-sort@12.1.1_eslint@9.8.0/node_modules/eslint-plugin-simple-import-sort/index.js"(exports2, module2) {
|
|
810
810
|
"use strict";
|
|
811
811
|
init_cjs_shims();
|
|
812
812
|
var importsRule = require_imports();
|
|
@@ -975,7 +975,7 @@ var import_isentinel_eslint_plugin_roblox_ts = __toESM(require("isentinel-eslint
|
|
|
975
975
|
async function comments() {
|
|
976
976
|
return [
|
|
977
977
|
{
|
|
978
|
-
name: "style
|
|
978
|
+
name: "style/eslint/comments",
|
|
979
979
|
plugins: {
|
|
980
980
|
"comment-length": (0, import_compat.fixupPluginRules)(import_eslint_plugin_comment_length.default),
|
|
981
981
|
"eslint-comments": import_eslint_plugin_eslint_comments.default
|
|
@@ -1137,7 +1137,7 @@ async function stylistic(options = {}) {
|
|
|
1137
1137
|
});
|
|
1138
1138
|
return [
|
|
1139
1139
|
{
|
|
1140
|
-
name: "style
|
|
1140
|
+
name: "style/stylistic",
|
|
1141
1141
|
plugins: {
|
|
1142
1142
|
antfu: import_eslint_plugin_antfu.default,
|
|
1143
1143
|
"arrow-style": import_eslint_plugin_arrow_return_style.default,
|
|
@@ -1220,7 +1220,7 @@ async function formatters(options = {}, stylistic2 = {}, markdownEnabled = true)
|
|
|
1220
1220
|
);
|
|
1221
1221
|
const configs = [
|
|
1222
1222
|
{
|
|
1223
|
-
name: "style
|
|
1223
|
+
name: "style/formatters/setup",
|
|
1224
1224
|
plugins: {
|
|
1225
1225
|
format: import_eslint_plugin_format.default
|
|
1226
1226
|
}
|
|
@@ -1233,7 +1233,7 @@ async function formatters(options = {}, stylistic2 = {}, markdownEnabled = true)
|
|
|
1233
1233
|
languageOptions: {
|
|
1234
1234
|
parser: import_eslint_plugin_format.default.parserPlain
|
|
1235
1235
|
},
|
|
1236
|
-
name: "style
|
|
1236
|
+
name: "style/formatter/css",
|
|
1237
1237
|
rules: {
|
|
1238
1238
|
"format/prettier": [
|
|
1239
1239
|
"error",
|
|
@@ -1249,7 +1249,7 @@ async function formatters(options = {}, stylistic2 = {}, markdownEnabled = true)
|
|
|
1249
1249
|
languageOptions: {
|
|
1250
1250
|
parser: import_eslint_plugin_format.default.parserPlain
|
|
1251
1251
|
},
|
|
1252
|
-
name: "style
|
|
1252
|
+
name: "style/formatter/scss",
|
|
1253
1253
|
rules: {
|
|
1254
1254
|
"format/prettier": [
|
|
1255
1255
|
"error",
|
|
@@ -1265,7 +1265,7 @@ async function formatters(options = {}, stylistic2 = {}, markdownEnabled = true)
|
|
|
1265
1265
|
languageOptions: {
|
|
1266
1266
|
parser: import_eslint_plugin_format.default.parserPlain
|
|
1267
1267
|
},
|
|
1268
|
-
name: "style
|
|
1268
|
+
name: "style/formatter/less",
|
|
1269
1269
|
rules: {
|
|
1270
1270
|
"format/prettier": [
|
|
1271
1271
|
"error",
|
|
@@ -1284,7 +1284,7 @@ async function formatters(options = {}, stylistic2 = {}, markdownEnabled = true)
|
|
|
1284
1284
|
languageOptions: {
|
|
1285
1285
|
parser: import_eslint_plugin_format.default.parserPlain
|
|
1286
1286
|
},
|
|
1287
|
-
name: "style
|
|
1287
|
+
name: "style/formatter/html",
|
|
1288
1288
|
rules: {
|
|
1289
1289
|
"format/prettier": [
|
|
1290
1290
|
"error",
|
|
@@ -1303,7 +1303,7 @@ async function formatters(options = {}, stylistic2 = {}, markdownEnabled = true)
|
|
|
1303
1303
|
languageOptions: {
|
|
1304
1304
|
parser: import_eslint_plugin_format.default.parserPlain
|
|
1305
1305
|
},
|
|
1306
|
-
name: "style
|
|
1306
|
+
name: "style/formatter/markdown",
|
|
1307
1307
|
rules: {
|
|
1308
1308
|
[`format/${formatter}`]: [
|
|
1309
1309
|
"error",
|
|
@@ -1325,7 +1325,7 @@ async function formatters(options = {}, stylistic2 = {}, markdownEnabled = true)
|
|
|
1325
1325
|
languageOptions: {
|
|
1326
1326
|
parser: import_eslint_plugin_format.default.parserPlain
|
|
1327
1327
|
},
|
|
1328
|
-
name: "style
|
|
1328
|
+
name: "style/formatter/graphql",
|
|
1329
1329
|
rules: {
|
|
1330
1330
|
"format/prettier": [
|
|
1331
1331
|
"error",
|
|
@@ -1345,7 +1345,8 @@ init_cjs_shims();
|
|
|
1345
1345
|
async function ignores() {
|
|
1346
1346
|
return [
|
|
1347
1347
|
{
|
|
1348
|
-
ignores: [...GLOB_EXCLUDE, GLOB_JS]
|
|
1348
|
+
ignores: [...GLOB_EXCLUDE, GLOB_JS],
|
|
1349
|
+
name: "style/ignores"
|
|
1349
1350
|
}
|
|
1350
1351
|
];
|
|
1351
1352
|
}
|
|
@@ -1356,7 +1357,7 @@ async function imports(options = {}) {
|
|
|
1356
1357
|
const { stylistic: stylistic2 = true } = options;
|
|
1357
1358
|
return [
|
|
1358
1359
|
{
|
|
1359
|
-
name: "style
|
|
1360
|
+
name: "style/imports",
|
|
1360
1361
|
plugins: {
|
|
1361
1362
|
antfu: import_eslint_plugin_antfu.default,
|
|
1362
1363
|
import: pluginImport
|
|
@@ -1386,7 +1387,7 @@ async function imports(options = {}) {
|
|
|
1386
1387
|
sourceType: "script"
|
|
1387
1388
|
}
|
|
1388
1389
|
},
|
|
1389
|
-
name: "style
|
|
1390
|
+
name: "style/import-sort",
|
|
1390
1391
|
plugins: {
|
|
1391
1392
|
"simple-import-sort": import_eslint_plugin_simple_import_sort.default
|
|
1392
1393
|
},
|
|
@@ -1417,7 +1418,7 @@ async function jsdoc(options = {}) {
|
|
|
1417
1418
|
const { stylistic: stylistic2 = true } = options;
|
|
1418
1419
|
return [
|
|
1419
1420
|
{
|
|
1420
|
-
name: "style
|
|
1421
|
+
name: "style/jsdoc",
|
|
1421
1422
|
plugins: {
|
|
1422
1423
|
jsdoc: await interopDefault(import("eslint-plugin-jsdoc"))
|
|
1423
1424
|
},
|
|
@@ -1480,7 +1481,7 @@ async function jsonc(options = {}) {
|
|
|
1480
1481
|
]);
|
|
1481
1482
|
return [
|
|
1482
1483
|
{
|
|
1483
|
-
name: "style
|
|
1484
|
+
name: "style/jsonc/setup",
|
|
1484
1485
|
plugins: {
|
|
1485
1486
|
jsonc: pluginJsonc
|
|
1486
1487
|
}
|
|
@@ -1490,7 +1491,7 @@ async function jsonc(options = {}) {
|
|
|
1490
1491
|
languageOptions: {
|
|
1491
1492
|
parser: parserJsonc
|
|
1492
1493
|
},
|
|
1493
|
-
name: "style
|
|
1494
|
+
name: "style/jsonc/rules",
|
|
1494
1495
|
rules: {
|
|
1495
1496
|
"jsonc/no-bigint-literals": "error",
|
|
1496
1497
|
"jsonc/no-binary-expression": "error",
|
|
@@ -1556,7 +1557,7 @@ async function markdown(options = {}) {
|
|
|
1556
1557
|
const markdownPlugin = await interopDefault(import("eslint-plugin-markdown"));
|
|
1557
1558
|
return [
|
|
1558
1559
|
{
|
|
1559
|
-
name: "style
|
|
1560
|
+
name: "style/markdown/setup",
|
|
1560
1561
|
plugins: {
|
|
1561
1562
|
markdownPlugin
|
|
1562
1563
|
}
|
|
@@ -1564,7 +1565,7 @@ async function markdown(options = {}) {
|
|
|
1564
1565
|
{
|
|
1565
1566
|
files,
|
|
1566
1567
|
ignores: [GLOB_MARKDOWN_IN_MARKDOWN],
|
|
1567
|
-
name: "style
|
|
1568
|
+
name: "style/markdown/processor",
|
|
1568
1569
|
// `eslint-plugin-markdown` only creates virtual files for code blocks,
|
|
1569
1570
|
// but not the markdown file itself. We use `eslint-merge-processors` to
|
|
1570
1571
|
// add a pass-through processor for the markdown file itself.
|
|
@@ -1575,7 +1576,7 @@ async function markdown(options = {}) {
|
|
|
1575
1576
|
languageOptions: {
|
|
1576
1577
|
parser: parserPlain
|
|
1577
1578
|
},
|
|
1578
|
-
name: "style
|
|
1579
|
+
name: "style/markdown/parser"
|
|
1579
1580
|
},
|
|
1580
1581
|
{
|
|
1581
1582
|
files: [
|
|
@@ -1589,7 +1590,7 @@ async function markdown(options = {}) {
|
|
|
1589
1590
|
}
|
|
1590
1591
|
}
|
|
1591
1592
|
},
|
|
1592
|
-
name: "style
|
|
1593
|
+
name: "style/markdown/disables",
|
|
1593
1594
|
rules: {
|
|
1594
1595
|
"import/newline-after-import": "off",
|
|
1595
1596
|
"no-alert": "off",
|
|
@@ -1629,7 +1630,7 @@ async function packageJson() {
|
|
|
1629
1630
|
languageOptions: {
|
|
1630
1631
|
parser: await interopDefault(import("jsonc-eslint-parser"))
|
|
1631
1632
|
},
|
|
1632
|
-
name: "style
|
|
1633
|
+
name: "style/package-json",
|
|
1633
1634
|
plugins: {
|
|
1634
1635
|
"package-json": pluginPackageJson
|
|
1635
1636
|
},
|
|
@@ -1653,7 +1654,7 @@ init_cjs_shims();
|
|
|
1653
1654
|
async function perfectionist() {
|
|
1654
1655
|
return [
|
|
1655
1656
|
{
|
|
1656
|
-
name: "style
|
|
1657
|
+
name: "style/perfectionist",
|
|
1657
1658
|
plugins: {
|
|
1658
1659
|
perfectionist: import_eslint_plugin_perfectionist.default
|
|
1659
1660
|
},
|
|
@@ -1667,7 +1668,9 @@ async function perfectionist() {
|
|
|
1667
1668
|
"perfectionist/sort-maps": ["error", { type: "natural" }],
|
|
1668
1669
|
"perfectionist/sort-object-types": ["error", { type: "natural" }],
|
|
1669
1670
|
"perfectionist/sort-objects": ["error", { type: "natural" }],
|
|
1670
|
-
"perfectionist/sort-
|
|
1671
|
+
"perfectionist/sort-switch-case": ["error", { type: "natural" }],
|
|
1672
|
+
"perfectionist/sort-union-types": ["error", { type: "natural" }],
|
|
1673
|
+
"perfectionist/sort-variable-declarations": ["error", { type: "natural" }]
|
|
1671
1674
|
}
|
|
1672
1675
|
}
|
|
1673
1676
|
];
|
|
@@ -1704,6 +1707,7 @@ async function prettier(options) {
|
|
|
1704
1707
|
return [
|
|
1705
1708
|
{
|
|
1706
1709
|
files,
|
|
1710
|
+
name: "style/prettier",
|
|
1707
1711
|
plugins: {
|
|
1708
1712
|
format: import_eslint_plugin_format.default
|
|
1709
1713
|
},
|
|
@@ -1818,7 +1822,7 @@ init_cjs_shims();
|
|
|
1818
1822
|
async function promise() {
|
|
1819
1823
|
return [
|
|
1820
1824
|
{
|
|
1821
|
-
name: "style
|
|
1825
|
+
name: "style/promise",
|
|
1822
1826
|
plugins: {
|
|
1823
1827
|
promise: import_eslint_plugin_promise.default
|
|
1824
1828
|
},
|
|
@@ -1876,7 +1880,7 @@ async function react(options = {}) {
|
|
|
1876
1880
|
const tsconfigPath = options?.tsconfigPath ? toArray(options.tsconfigPath) : void 0;
|
|
1877
1881
|
return [
|
|
1878
1882
|
{
|
|
1879
|
-
name: "style
|
|
1883
|
+
name: "style/react:setup",
|
|
1880
1884
|
plugins: {
|
|
1881
1885
|
react: plugins["@eslint-react"],
|
|
1882
1886
|
"react-hooks": (0, import_compat2.fixupPluginRules)(pluginReactHooks),
|
|
@@ -1899,7 +1903,7 @@ async function react(options = {}) {
|
|
|
1899
1903
|
},
|
|
1900
1904
|
sourceType: "module"
|
|
1901
1905
|
},
|
|
1902
|
-
name: "style
|
|
1906
|
+
name: "style/react:rules",
|
|
1903
1907
|
rules: {
|
|
1904
1908
|
// recommended rules from @eslint-react
|
|
1905
1909
|
"react/ensure-forward-ref-using-ref": "warn",
|
|
@@ -1914,14 +1918,14 @@ async function react(options = {}) {
|
|
|
1914
1918
|
"react/no-class-component": "error",
|
|
1915
1919
|
"react/no-clone-element": "warn",
|
|
1916
1920
|
"react/no-comment-textnodes": "warn",
|
|
1917
|
-
"react/no-
|
|
1921
|
+
"react/no-complex-conditional-rendering": "error",
|
|
1918
1922
|
"react/no-component-will-mount": "error",
|
|
1919
1923
|
"react/no-component-will-receive-props": "error",
|
|
1920
1924
|
"react/no-component-will-update": "error",
|
|
1921
1925
|
"react/no-create-ref": "error",
|
|
1922
1926
|
"react/no-direct-mutation-state": "error",
|
|
1923
1927
|
"react/no-duplicate-key": "error",
|
|
1924
|
-
"react/no-implicit-key": "
|
|
1928
|
+
"react/no-implicit-key": "error",
|
|
1925
1929
|
"react/no-leaked-conditional-rendering": "warn",
|
|
1926
1930
|
"react/no-missing-key": "error",
|
|
1927
1931
|
"react/no-nested-components": "warn",
|
|
@@ -2030,7 +2034,7 @@ async function roblox(options = {}, formatLua = true) {
|
|
|
2030
2034
|
...parserOptions
|
|
2031
2035
|
}
|
|
2032
2036
|
},
|
|
2033
|
-
name: "style
|
|
2037
|
+
name: "style/roblox",
|
|
2034
2038
|
plugins: {
|
|
2035
2039
|
roblox: import_isentinel_eslint_plugin_roblox_ts.default
|
|
2036
2040
|
},
|
|
@@ -2082,7 +2086,7 @@ var import_compat3 = require("@eslint/compat");
|
|
|
2082
2086
|
async function shopify() {
|
|
2083
2087
|
return [
|
|
2084
2088
|
{
|
|
2085
|
-
name: "style
|
|
2089
|
+
name: "style/shopify",
|
|
2086
2090
|
plugins: {
|
|
2087
2091
|
shopify: (0, import_compat3.fixupPluginRules)(import_eslint_plugin2.default)
|
|
2088
2092
|
},
|
|
@@ -2092,8 +2096,8 @@ async function shopify() {
|
|
|
2092
2096
|
"shopify/prefer-module-scope-constants": "error",
|
|
2093
2097
|
"shopify/react-hooks-strict-return": "error",
|
|
2094
2098
|
"shopify/strict-component-boundaries": "error",
|
|
2095
|
-
"shopify/typescript
|
|
2096
|
-
"shopify/typescript
|
|
2099
|
+
"shopify/typescript-prefer-pascal-case-enums": "error",
|
|
2100
|
+
"shopify/typescript-prefer-singular-enums": "error"
|
|
2097
2101
|
},
|
|
2098
2102
|
// Shopify has a dependency on 'eslint-plugin-react' so we need to
|
|
2099
2103
|
// set the react version to avoid the warning.
|
|
@@ -2111,7 +2115,7 @@ init_cjs_shims();
|
|
|
2111
2115
|
async function sonarjs() {
|
|
2112
2116
|
return [
|
|
2113
2117
|
{
|
|
2114
|
-
name: "style
|
|
2118
|
+
name: "style/sonarjs",
|
|
2115
2119
|
plugins: {
|
|
2116
2120
|
sonar: pluginSonar
|
|
2117
2121
|
},
|
|
@@ -2160,7 +2164,7 @@ function sortTsconfig() {
|
|
|
2160
2164
|
return [
|
|
2161
2165
|
{
|
|
2162
2166
|
files: ["**/tsconfig.json", "**/tsconfig.*.json"],
|
|
2163
|
-
name: "style
|
|
2167
|
+
name: "style/sort-tsconfig",
|
|
2164
2168
|
rules: {
|
|
2165
2169
|
"jsonc/sort-keys": [
|
|
2166
2170
|
"error",
|
|
@@ -2302,7 +2306,7 @@ async function spelling(options = {}) {
|
|
|
2302
2306
|
return [
|
|
2303
2307
|
{
|
|
2304
2308
|
files,
|
|
2305
|
-
name: "style
|
|
2309
|
+
name: "style/spelling",
|
|
2306
2310
|
plugins: {
|
|
2307
2311
|
["@cspell"]: import_eslint_plugin.default
|
|
2308
2312
|
},
|
|
@@ -2347,7 +2351,7 @@ async function toml(options = {}) {
|
|
|
2347
2351
|
]);
|
|
2348
2352
|
return [
|
|
2349
2353
|
{
|
|
2350
|
-
name: "
|
|
2354
|
+
name: "style/toml/setup",
|
|
2351
2355
|
plugins: {
|
|
2352
2356
|
toml: pluginToml
|
|
2353
2357
|
}
|
|
@@ -2357,7 +2361,7 @@ async function toml(options = {}) {
|
|
|
2357
2361
|
languageOptions: {
|
|
2358
2362
|
parser: parserToml
|
|
2359
2363
|
},
|
|
2360
|
-
name: "
|
|
2364
|
+
name: "style/toml/rules",
|
|
2361
2365
|
rules: {
|
|
2362
2366
|
"style/spaced-comment": "off",
|
|
2363
2367
|
"toml/comma-style": "error",
|
|
@@ -2472,7 +2476,7 @@ async function typescript(options = {}) {
|
|
|
2472
2476
|
{
|
|
2473
2477
|
// Install the plugins without globs, so they can be configured
|
|
2474
2478
|
// separately.
|
|
2475
|
-
name: "style
|
|
2479
|
+
name: "style/typescript:setup",
|
|
2476
2480
|
plugins: {
|
|
2477
2481
|
antfu: import_eslint_plugin_antfu.default,
|
|
2478
2482
|
"no-autofix": import_eslint_plugin_no_autofix.default,
|
|
@@ -2496,7 +2500,7 @@ async function typescript(options = {}) {
|
|
|
2496
2500
|
...parserOptions
|
|
2497
2501
|
}
|
|
2498
2502
|
},
|
|
2499
|
-
name: "style
|
|
2503
|
+
name: "style/typescript:rules",
|
|
2500
2504
|
rules: {
|
|
2501
2505
|
...renameRules(pluginTs.configs["eslint-recommended"].overrides?.[0].rules ?? {}, {
|
|
2502
2506
|
"@typescript-eslint": "ts"
|
|
@@ -2565,7 +2569,7 @@ async function typescript(options = {}) {
|
|
|
2565
2569
|
"object-shorthand": "error",
|
|
2566
2570
|
"prefer-const": "off",
|
|
2567
2571
|
"prefer-destructuring": "off",
|
|
2568
|
-
"ts/adjacent-overload-signatures": "
|
|
2572
|
+
"ts/adjacent-overload-signatures": "off",
|
|
2569
2573
|
"ts/array-type": [
|
|
2570
2574
|
"error",
|
|
2571
2575
|
{
|
|
@@ -2639,7 +2643,7 @@ async function typescript(options = {}) {
|
|
|
2639
2643
|
},
|
|
2640
2644
|
{
|
|
2641
2645
|
files: ["**/*.d.ts"],
|
|
2642
|
-
name: "style
|
|
2646
|
+
name: "style/typescript:dts-overrides",
|
|
2643
2647
|
rules: {
|
|
2644
2648
|
"eslint-comments/no-unlimited-disable": "off",
|
|
2645
2649
|
"import/no-duplicates": "off",
|
|
@@ -2656,7 +2660,7 @@ init_cjs_shims();
|
|
|
2656
2660
|
async function unicorn() {
|
|
2657
2661
|
return [
|
|
2658
2662
|
{
|
|
2659
|
-
name: "style
|
|
2663
|
+
name: "style/unicorn",
|
|
2660
2664
|
plugins: {
|
|
2661
2665
|
unicorn: import_eslint_plugin_unicorn.default
|
|
2662
2666
|
},
|
|
@@ -2761,7 +2765,7 @@ async function yaml(options = {}) {
|
|
|
2761
2765
|
]);
|
|
2762
2766
|
return [
|
|
2763
2767
|
{
|
|
2764
|
-
name: "style
|
|
2768
|
+
name: "style/yaml:setup",
|
|
2765
2769
|
plugins: {
|
|
2766
2770
|
yaml: pluginYaml
|
|
2767
2771
|
}
|
|
@@ -2771,7 +2775,7 @@ async function yaml(options = {}) {
|
|
|
2771
2775
|
languageOptions: {
|
|
2772
2776
|
parser: parserYaml
|
|
2773
2777
|
},
|
|
2774
|
-
name: "style
|
|
2778
|
+
name: "style/yaml:rules",
|
|
2775
2779
|
rules: {
|
|
2776
2780
|
"style/spaced-comment": "off",
|
|
2777
2781
|
"yaml/block-mapping": "error",
|