@eienjs/eslint-config 1.9.3 → 1.11.0
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/bin/index.mjs +0 -0
- package/dist/cli/{constants.mjs → constants.js} +1 -3
- package/dist/cli/{constants_generated.mjs → constants_generated.js} +4 -5
- package/dist/cli/{index.mjs → index.js} +3 -5
- package/dist/cli/{run.mjs → run.js} +6 -8
- package/dist/cli/stages/{update_eslint_files.mjs → update_eslint_files.js} +8 -9
- package/dist/cli/stages/{update_package_json.mjs → update_package_json.js} +7 -9
- package/dist/cli/stages/{update_vscode_settings.mjs → update_vscode_settings.js} +9 -10
- package/dist/cli/{utils.mjs → utils.js} +1 -3
- package/dist/{config_presets.d.mts → config_presets.d.ts} +1 -1
- package/dist/{config_presets.mjs → config_presets.js} +1 -2
- package/dist/configs/{adonisjs.d.mts → adonisjs.d.ts} +1 -1
- package/dist/configs/{adonisjs.mjs → adonisjs.js} +3 -5
- package/dist/configs/{astro.d.mts → astro.d.ts} +1 -1
- package/dist/configs/{astro.mjs → astro.js} +3 -5
- package/dist/configs/{command.d.mts → command.d.ts} +1 -1
- package/dist/configs/{command.mjs → command.js} +1 -3
- package/dist/configs/{comments.d.mts → comments.d.ts} +1 -1
- package/dist/configs/{comments.mjs → comments.js} +2 -4
- package/dist/configs/{disables.d.mts → disables.d.ts} +1 -1
- package/dist/configs/{disables.mjs → disables.js} +2 -4
- package/dist/configs/e18e.d.ts +6 -0
- package/dist/configs/e18e.js +20 -0
- package/dist/configs/{formatters.d.mts → formatters.d.ts} +1 -1
- package/dist/configs/{formatters.mjs → formatters.js} +4 -6
- package/dist/configs/{ignores.d.mts → ignores.d.ts} +1 -1
- package/dist/configs/{ignores.mjs → ignores.js} +2 -4
- package/dist/configs/{imports.d.mts → imports.d.ts} +1 -1
- package/dist/configs/{imports.mjs → imports.js} +2 -4
- package/dist/configs/index.d.ts +27 -0
- package/dist/configs/index.js +27 -0
- package/dist/configs/{javascript.d.mts → javascript.d.ts} +1 -1
- package/dist/configs/{javascript.mjs → javascript.js} +2 -5
- package/dist/configs/{jsdoc.d.mts → jsdoc.d.ts} +1 -1
- package/dist/configs/{jsdoc.mjs → jsdoc.js} +6 -6
- package/dist/configs/{jsonc.d.mts → jsonc.d.ts} +1 -1
- package/dist/configs/{jsonc.mjs → jsonc.js} +5 -8
- package/dist/configs/markdown.d.ts +6 -0
- package/dist/configs/{markdown.mjs → markdown.js} +31 -8
- package/dist/configs/{node.d.mts → node.d.ts} +1 -1
- package/dist/configs/{node.mjs → node.js} +6 -6
- package/dist/configs/{nuxt.d.mts → nuxt.d.ts} +1 -1
- package/dist/configs/{nuxt.mjs → nuxt.js} +3 -5
- package/dist/configs/{perfectionist.d.mts → perfectionist.d.ts} +1 -1
- package/dist/configs/{perfectionist.mjs → perfectionist.js} +2 -4
- package/dist/configs/{pnpm.d.mts → pnpm.d.ts} +1 -1
- package/dist/configs/{pnpm.mjs → pnpm.js} +6 -9
- package/dist/configs/{regexp.d.mts → regexp.d.ts} +1 -1
- package/dist/configs/{regexp.mjs → regexp.js} +1 -3
- package/dist/configs/{sort.d.mts → sort.d.ts} +1 -1
- package/dist/configs/{sort.mjs → sort.js} +1 -2
- package/dist/configs/{stylistic.d.mts → stylistic.d.ts} +1 -1
- package/dist/configs/{stylistic.mjs → stylistic.js} +3 -5
- package/dist/configs/{test.d.mts → test.d.ts} +1 -1
- package/dist/configs/{test.mjs → test.js} +3 -5
- package/dist/configs/{toml.d.mts → toml.d.ts} +1 -1
- package/dist/configs/{toml.mjs → toml.js} +3 -5
- package/dist/configs/{typescript.d.mts → typescript.d.ts} +1 -1
- package/dist/configs/{typescript.mjs → typescript.js} +11 -13
- package/dist/configs/{unicorn.d.mts → unicorn.d.ts} +1 -1
- package/dist/configs/{unicorn.mjs → unicorn.js} +3 -5
- package/dist/configs/{vue.d.mts → vue.d.ts} +1 -1
- package/dist/configs/{vue.mjs → vue.js} +3 -5
- package/dist/configs/{yaml.d.mts → yaml.d.ts} +1 -1
- package/dist/configs/{yaml.mjs → yaml.js} +3 -5
- package/dist/{factory.d.mts → factory.d.ts} +2 -2
- package/dist/{factory.mjs → factory.js} +35 -32
- package/dist/{globs.mjs → globs.js} +1 -2
- package/dist/{index.d.mts → index.d.ts} +7 -7
- package/dist/{index.mjs → index.js} +5 -7
- package/dist/node_modules/.pnpm/find-up-simple@1.0.1/node_modules/find-up-simple/{index.mjs → index.js} +3 -5
- package/dist/package.js +4 -0
- package/dist/{plugins.mjs → plugins.js} +2 -2
- package/dist/{typegen.d.mts → typegen.d.ts} +159 -30
- package/dist/{types.d.mts → types.d.ts} +46 -5
- package/dist/{utils.d.mts → utils.d.ts} +1 -1
- package/dist/{utils.mjs → utils.js} +2 -4
- package/package.json +40 -36
- package/dist/configs/index.d.mts +0 -26
- package/dist/configs/index.mjs +0 -27
- package/dist/configs/markdown.d.mts +0 -6
- package/dist/package.mjs +0 -5
- /package/dist/cli/{index.d.mts → index.d.ts} +0 -0
- /package/dist/{globs.d.mts → globs.d.ts} +0 -0
- /package/dist/vendored/{prettier_types.d.mts → prettier_types.d.ts} +0 -0
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import pluginE18e from "@e18e/eslint-plugin";
|
|
1
2
|
import pluginComments from "@eslint-community/eslint-plugin-eslint-comments";
|
|
2
3
|
import pluginAntfu from "eslint-plugin-antfu";
|
|
3
4
|
import pluginImportLite from "eslint-plugin-import-lite";
|
|
@@ -5,5 +6,4 @@ import pluginNode from "eslint-plugin-n";
|
|
|
5
6
|
import pluginPerfectionist from "eslint-plugin-perfectionist";
|
|
6
7
|
import pluginUnicorn from "eslint-plugin-unicorn";
|
|
7
8
|
import pluginUnusedImports from "eslint-plugin-unused-imports";
|
|
8
|
-
|
|
9
|
-
export { pluginAntfu, pluginComments, pluginImportLite, pluginNode, pluginPerfectionist, pluginUnicorn, pluginUnusedImports };
|
|
9
|
+
export { pluginAntfu, pluginComments, pluginE18e, pluginImportLite, pluginNode, pluginPerfectionist, pluginUnicorn, pluginUnusedImports };
|
|
@@ -55,6 +55,7 @@ interface RuleOptions {
|
|
|
55
55
|
/**
|
|
56
56
|
* disallow unused `eslint-disable` comments
|
|
57
57
|
* @see https://eslint-community.github.io/eslint-plugin-eslint-comments/rules/no-unused-disable.html
|
|
58
|
+
* @deprecated
|
|
58
59
|
*/
|
|
59
60
|
'@eslint-community/eslint-comments/no-unused-disable'?: Linter.RuleEntry<[]>;
|
|
60
61
|
/**
|
|
@@ -1725,6 +1726,87 @@ interface RuleOptions {
|
|
|
1725
1726
|
* @see https://eslint.org/docs/latest/rules/dot-notation
|
|
1726
1727
|
*/
|
|
1727
1728
|
'dot-notation'?: Linter.RuleEntry<DotNotation>;
|
|
1729
|
+
/**
|
|
1730
|
+
* Bans a list of dependencies from being used
|
|
1731
|
+
* @see https://github.com/es-tooling/eslint-plugin-depend/blob/main/docs/rules/ban-dependencies.md
|
|
1732
|
+
*/
|
|
1733
|
+
'e18e/ban-dependencies'?: Linter.RuleEntry<E18EBanDependencies>;
|
|
1734
|
+
/**
|
|
1735
|
+
* Prefer optimized alternatives to `indexOf()` equality checks
|
|
1736
|
+
*/
|
|
1737
|
+
'e18e/no-indexof-equality'?: Linter.RuleEntry<[]>;
|
|
1738
|
+
/**
|
|
1739
|
+
* Prefer Array.prototype.at() over length-based indexing
|
|
1740
|
+
*/
|
|
1741
|
+
'e18e/prefer-array-at'?: Linter.RuleEntry<[]>;
|
|
1742
|
+
/**
|
|
1743
|
+
* Prefer Array.prototype.fill() over Array.from or map with constant values
|
|
1744
|
+
*/
|
|
1745
|
+
'e18e/prefer-array-fill'?: Linter.RuleEntry<[]>;
|
|
1746
|
+
/**
|
|
1747
|
+
* Prefer Array.from(iterable, mapper) over [...iterable].map(mapper) to avoid intermediate array allocation
|
|
1748
|
+
*/
|
|
1749
|
+
'e18e/prefer-array-from-map'?: Linter.RuleEntry<[]>;
|
|
1750
|
+
/**
|
|
1751
|
+
* Prefer Array.some() over Array.find() when checking for element existence
|
|
1752
|
+
*/
|
|
1753
|
+
'e18e/prefer-array-some'?: Linter.RuleEntry<[]>;
|
|
1754
|
+
/**
|
|
1755
|
+
* Prefer Array.prototype.toReversed() over copying and reversing arrays
|
|
1756
|
+
*/
|
|
1757
|
+
'e18e/prefer-array-to-reversed'?: Linter.RuleEntry<[]>;
|
|
1758
|
+
/**
|
|
1759
|
+
* Prefer Array.prototype.toSorted() over copying and sorting arrays
|
|
1760
|
+
*/
|
|
1761
|
+
'e18e/prefer-array-to-sorted'?: Linter.RuleEntry<[]>;
|
|
1762
|
+
/**
|
|
1763
|
+
* Prefer Array.prototype.toSpliced() over copying and splicing arrays
|
|
1764
|
+
*/
|
|
1765
|
+
'e18e/prefer-array-to-spliced'?: Linter.RuleEntry<[]>;
|
|
1766
|
+
/**
|
|
1767
|
+
* Prefer Date.now() over new Date().getTime() and +new Date()
|
|
1768
|
+
*/
|
|
1769
|
+
'e18e/prefer-date-now'?: Linter.RuleEntry<[]>;
|
|
1770
|
+
/**
|
|
1771
|
+
* Prefer the exponentiation operator ** over Math.pow()
|
|
1772
|
+
*/
|
|
1773
|
+
'e18e/prefer-exponentiation-operator'?: Linter.RuleEntry<[]>;
|
|
1774
|
+
/**
|
|
1775
|
+
* Prefer .includes() over indexOf() comparisons for arrays and strings
|
|
1776
|
+
*/
|
|
1777
|
+
'e18e/prefer-includes'?: Linter.RuleEntry<[]>;
|
|
1778
|
+
/**
|
|
1779
|
+
* Prefer inline equality checks over temporary object creation for simple comparisons
|
|
1780
|
+
*/
|
|
1781
|
+
'e18e/prefer-inline-equality'?: Linter.RuleEntry<[]>;
|
|
1782
|
+
/**
|
|
1783
|
+
* Prefer nullish coalescing operator (?? and ??=) over verbose null checks
|
|
1784
|
+
*/
|
|
1785
|
+
'e18e/prefer-nullish-coalescing'?: Linter.RuleEntry<[]>;
|
|
1786
|
+
/**
|
|
1787
|
+
* Prefer Object.hasOwn() over Object.prototype.hasOwnProperty.call() and obj.hasOwnProperty()
|
|
1788
|
+
*/
|
|
1789
|
+
'e18e/prefer-object-has-own'?: Linter.RuleEntry<[]>;
|
|
1790
|
+
/**
|
|
1791
|
+
* prefer `RegExp.test()` over `String.match()` and `RegExp.exec()` when only checking for match existence
|
|
1792
|
+
*/
|
|
1793
|
+
'e18e/prefer-regex-test'?: Linter.RuleEntry<[]>;
|
|
1794
|
+
/**
|
|
1795
|
+
* Prefer spread syntax over Array.concat(), Array.from(), Object.assign({}, ...), and Function.apply()
|
|
1796
|
+
*/
|
|
1797
|
+
'e18e/prefer-spread-syntax'?: Linter.RuleEntry<[]>;
|
|
1798
|
+
/**
|
|
1799
|
+
* Prefer defining regular expressions at module scope to avoid re-compilation on every function call
|
|
1800
|
+
*/
|
|
1801
|
+
'e18e/prefer-static-regex'?: Linter.RuleEntry<[]>;
|
|
1802
|
+
/**
|
|
1803
|
+
* Prefer passing function and arguments directly to setTimeout/setInterval instead of wrapping in an arrow function or using bind
|
|
1804
|
+
*/
|
|
1805
|
+
'e18e/prefer-timer-args'?: Linter.RuleEntry<[]>;
|
|
1806
|
+
/**
|
|
1807
|
+
* Prefer URL.canParse() over try-catch blocks for URL validation
|
|
1808
|
+
*/
|
|
1809
|
+
'e18e/prefer-url-canparse'?: Linter.RuleEntry<[]>;
|
|
1728
1810
|
/**
|
|
1729
1811
|
* Require or disallow newline at the end of files
|
|
1730
1812
|
* @see https://eslint.org/docs/latest/rules/eol-last
|
|
@@ -1765,6 +1847,10 @@ interface RuleOptions {
|
|
|
1765
1847
|
* Use dprint to format code
|
|
1766
1848
|
*/
|
|
1767
1849
|
'format/dprint'?: Linter.RuleEntry<FormatDprint>;
|
|
1850
|
+
/**
|
|
1851
|
+
* Use oxfmt to format code
|
|
1852
|
+
*/
|
|
1853
|
+
'format/oxfmt'?: Linter.RuleEntry<FormatOxfmt>;
|
|
1768
1854
|
/**
|
|
1769
1855
|
* Use Prettier to format code
|
|
1770
1856
|
*/
|
|
@@ -4100,7 +4186,7 @@ interface RuleOptions {
|
|
|
4100
4186
|
*/
|
|
4101
4187
|
'quotes'?: Linter.RuleEntry<Quotes>;
|
|
4102
4188
|
/**
|
|
4103
|
-
* Enforce the
|
|
4189
|
+
* Enforce the use of the radix argument when using `parseInt()`
|
|
4104
4190
|
* @see https://eslint.org/docs/latest/rules/radix
|
|
4105
4191
|
*/
|
|
4106
4192
|
'radix'?: Linter.RuleEntry<Radix>;
|
|
@@ -5073,11 +5159,21 @@ interface RuleOptions {
|
|
|
5073
5159
|
* @see https://ota-meshi.github.io/eslint-plugin-toml/rules/indent.html
|
|
5074
5160
|
*/
|
|
5075
5161
|
'toml/indent'?: Linter.RuleEntry<TomlIndent>;
|
|
5162
|
+
/**
|
|
5163
|
+
* enforce linebreaks after opening and before closing braces
|
|
5164
|
+
* @see https://ota-meshi.github.io/eslint-plugin-toml/rules/inline-table-curly-newline.html
|
|
5165
|
+
*/
|
|
5166
|
+
'toml/inline-table-curly-newline'?: Linter.RuleEntry<TomlInlineTableCurlyNewline>;
|
|
5076
5167
|
/**
|
|
5077
5168
|
* enforce consistent spacing inside braces
|
|
5078
5169
|
* @see https://ota-meshi.github.io/eslint-plugin-toml/rules/inline-table-curly-spacing.html
|
|
5079
5170
|
*/
|
|
5080
5171
|
'toml/inline-table-curly-spacing'?: Linter.RuleEntry<TomlInlineTableCurlySpacing>;
|
|
5172
|
+
/**
|
|
5173
|
+
* enforce placing inline table key-value pairs on separate lines
|
|
5174
|
+
* @see https://ota-meshi.github.io/eslint-plugin-toml/rules/inline-table-key-value-newline.html
|
|
5175
|
+
*/
|
|
5176
|
+
'toml/inline-table-key-value-newline'?: Linter.RuleEntry<TomlInlineTableKeyValueNewline>;
|
|
5081
5177
|
/**
|
|
5082
5178
|
* enforce consistent spacing between keys and values in key/value pairs
|
|
5083
5179
|
* @see https://ota-meshi.github.io/eslint-plugin-toml/rules/key-spacing.html
|
|
@@ -7530,33 +7626,33 @@ type StylisticExpListStyle = [] | [{
|
|
|
7530
7626
|
singleLine?: _StylisticExpListStyle_SingleLineConfig;
|
|
7531
7627
|
multiLine?: _StylisticExpListStyle_MultiLineConfig;
|
|
7532
7628
|
overrides?: {
|
|
7533
|
-
"()"?: _StylisticExpListStyle_BaseConfig;
|
|
7534
|
-
"[]"?: _StylisticExpListStyle_BaseConfig;
|
|
7535
|
-
"{}"?: _StylisticExpListStyle_BaseConfig;
|
|
7536
|
-
"<>"?: _StylisticExpListStyle_BaseConfig;
|
|
7537
|
-
ArrayExpression?: _StylisticExpListStyle_BaseConfig;
|
|
7538
|
-
ArrayPattern?: _StylisticExpListStyle_BaseConfig;
|
|
7539
|
-
ArrowFunctionExpression?: _StylisticExpListStyle_BaseConfig;
|
|
7540
|
-
CallExpression?: _StylisticExpListStyle_BaseConfig;
|
|
7541
|
-
ExportNamedDeclaration?: _StylisticExpListStyle_BaseConfig;
|
|
7542
|
-
FunctionDeclaration?: _StylisticExpListStyle_BaseConfig;
|
|
7543
|
-
FunctionExpression?: _StylisticExpListStyle_BaseConfig;
|
|
7544
|
-
IfStatement?: _StylisticExpListStyle_BaseConfig;
|
|
7545
|
-
ImportAttributes?: _StylisticExpListStyle_BaseConfig;
|
|
7546
|
-
ImportDeclaration?: _StylisticExpListStyle_BaseConfig;
|
|
7547
|
-
JSONArrayExpression?: _StylisticExpListStyle_BaseConfig;
|
|
7548
|
-
JSONObjectExpression?: _StylisticExpListStyle_BaseConfig;
|
|
7549
|
-
NewExpression?: _StylisticExpListStyle_BaseConfig;
|
|
7550
|
-
ObjectExpression?: _StylisticExpListStyle_BaseConfig;
|
|
7551
|
-
ObjectPattern?: _StylisticExpListStyle_BaseConfig;
|
|
7552
|
-
TSDeclareFunction?: _StylisticExpListStyle_BaseConfig;
|
|
7553
|
-
TSEnumBody?: _StylisticExpListStyle_BaseConfig;
|
|
7554
|
-
TSFunctionType?: _StylisticExpListStyle_BaseConfig;
|
|
7555
|
-
TSInterfaceBody?: _StylisticExpListStyle_BaseConfig;
|
|
7556
|
-
TSTupleType?: _StylisticExpListStyle_BaseConfig;
|
|
7557
|
-
TSTypeLiteral?: _StylisticExpListStyle_BaseConfig;
|
|
7558
|
-
TSTypeParameterDeclaration?: _StylisticExpListStyle_BaseConfig;
|
|
7559
|
-
TSTypeParameterInstantiation?: _StylisticExpListStyle_BaseConfig;
|
|
7629
|
+
"()"?: (_StylisticExpListStyle_BaseConfig | "off");
|
|
7630
|
+
"[]"?: (_StylisticExpListStyle_BaseConfig | "off");
|
|
7631
|
+
"{}"?: (_StylisticExpListStyle_BaseConfig | "off");
|
|
7632
|
+
"<>"?: (_StylisticExpListStyle_BaseConfig | "off");
|
|
7633
|
+
ArrayExpression?: (_StylisticExpListStyle_BaseConfig | "off");
|
|
7634
|
+
ArrayPattern?: (_StylisticExpListStyle_BaseConfig | "off");
|
|
7635
|
+
ArrowFunctionExpression?: (_StylisticExpListStyle_BaseConfig | "off");
|
|
7636
|
+
CallExpression?: (_StylisticExpListStyle_BaseConfig | "off");
|
|
7637
|
+
ExportNamedDeclaration?: (_StylisticExpListStyle_BaseConfig | "off");
|
|
7638
|
+
FunctionDeclaration?: (_StylisticExpListStyle_BaseConfig | "off");
|
|
7639
|
+
FunctionExpression?: (_StylisticExpListStyle_BaseConfig | "off");
|
|
7640
|
+
IfStatement?: (_StylisticExpListStyle_BaseConfig | "off");
|
|
7641
|
+
ImportAttributes?: (_StylisticExpListStyle_BaseConfig | "off");
|
|
7642
|
+
ImportDeclaration?: (_StylisticExpListStyle_BaseConfig | "off");
|
|
7643
|
+
JSONArrayExpression?: (_StylisticExpListStyle_BaseConfig | "off");
|
|
7644
|
+
JSONObjectExpression?: (_StylisticExpListStyle_BaseConfig | "off");
|
|
7645
|
+
NewExpression?: (_StylisticExpListStyle_BaseConfig | "off");
|
|
7646
|
+
ObjectExpression?: (_StylisticExpListStyle_BaseConfig | "off");
|
|
7647
|
+
ObjectPattern?: (_StylisticExpListStyle_BaseConfig | "off");
|
|
7648
|
+
TSDeclareFunction?: (_StylisticExpListStyle_BaseConfig | "off");
|
|
7649
|
+
TSEnumBody?: (_StylisticExpListStyle_BaseConfig | "off");
|
|
7650
|
+
TSFunctionType?: (_StylisticExpListStyle_BaseConfig | "off");
|
|
7651
|
+
TSInterfaceBody?: (_StylisticExpListStyle_BaseConfig | "off");
|
|
7652
|
+
TSTupleType?: (_StylisticExpListStyle_BaseConfig | "off");
|
|
7653
|
+
TSTypeLiteral?: (_StylisticExpListStyle_BaseConfig | "off");
|
|
7654
|
+
TSTypeParameterDeclaration?: (_StylisticExpListStyle_BaseConfig | "off");
|
|
7655
|
+
TSTypeParameterInstantiation?: (_StylisticExpListStyle_BaseConfig | "off");
|
|
7560
7656
|
};
|
|
7561
7657
|
}];
|
|
7562
7658
|
interface _StylisticExpListStyle_SingleLineConfig {
|
|
@@ -8427,6 +8523,7 @@ type StylisticPaddingLineBetweenStatements = {
|
|
|
8427
8523
|
}[];
|
|
8428
8524
|
interface _StylisticPaddingLineBetweenStatements_SelectorOption {
|
|
8429
8525
|
selector: string;
|
|
8526
|
+
lineMode?: ("any" | "singleline" | "multiline");
|
|
8430
8527
|
} // ----- @stylistic/quote-props -----
|
|
8431
8528
|
type StylisticQuoteProps = ([] | [("always" | "as-needed" | "consistent" | "consistent-as-needed")] | [] | [("always" | "as-needed" | "consistent" | "consistent-as-needed")] | [("always" | "as-needed" | "consistent" | "consistent-as-needed"), {
|
|
8432
8529
|
keywords?: boolean;
|
|
@@ -9285,6 +9382,18 @@ type TypescriptEslintPreferOptionalChain = [] | [{
|
|
|
9285
9382
|
requireNullish?: boolean;
|
|
9286
9383
|
}]; // ----- @typescript-eslint/prefer-promise-reject-errors -----
|
|
9287
9384
|
type TypescriptEslintPreferPromiseRejectErrors = [] | [{
|
|
9385
|
+
allow?: (string | {
|
|
9386
|
+
from: "file";
|
|
9387
|
+
name: (string | [string, ...(string)[]]);
|
|
9388
|
+
path?: string;
|
|
9389
|
+
} | {
|
|
9390
|
+
from: "lib";
|
|
9391
|
+
name: (string | [string, ...(string)[]]);
|
|
9392
|
+
} | {
|
|
9393
|
+
from: "package";
|
|
9394
|
+
name: (string | [string, ...(string)[]]);
|
|
9395
|
+
package: string;
|
|
9396
|
+
})[];
|
|
9288
9397
|
allowEmptyReject?: boolean;
|
|
9289
9398
|
allowThrowingAny?: boolean;
|
|
9290
9399
|
allowThrowingUnknown?: boolean;
|
|
@@ -9561,6 +9670,11 @@ type DotLocation = [] | [("object" | "property")]; // ----- dot-notation -----
|
|
|
9561
9670
|
type DotNotation = [] | [{
|
|
9562
9671
|
allowKeywords?: boolean;
|
|
9563
9672
|
allowPattern?: string;
|
|
9673
|
+
}]; // ----- e18e/ban-dependencies -----
|
|
9674
|
+
type E18EBanDependencies = [] | [{
|
|
9675
|
+
presets?: string[];
|
|
9676
|
+
modules?: string[];
|
|
9677
|
+
allowed?: string[];
|
|
9564
9678
|
}]; // ----- eol-last -----
|
|
9565
9679
|
type EolLast = [] | [("always" | "never" | "unix" | "windows")]; // ----- eqeqeq -----
|
|
9566
9680
|
type Eqeqeq = ([] | ["always"] | ["always", {
|
|
@@ -9573,6 +9687,9 @@ type FormatDprint = [] | [{
|
|
|
9573
9687
|
};
|
|
9574
9688
|
plugins?: unknown[];
|
|
9575
9689
|
[k: string]: unknown | undefined;
|
|
9690
|
+
}]; // ----- format/oxfmt -----
|
|
9691
|
+
type FormatOxfmt = [] | [{
|
|
9692
|
+
[k: string]: unknown | undefined;
|
|
9576
9693
|
}]; // ----- format/prettier -----
|
|
9577
9694
|
type FormatPrettier = [] | [{
|
|
9578
9695
|
parser: string;
|
|
@@ -10365,6 +10482,7 @@ type JsoncObjectCurlyNewline = [] | [((("always" | "never") | {
|
|
|
10365
10482
|
type JsoncObjectCurlySpacing = [] | [("always" | "never")] | [("always" | "never"), {
|
|
10366
10483
|
arraysInObjects?: boolean;
|
|
10367
10484
|
objectsInObjects?: boolean;
|
|
10485
|
+
emptyObjects?: ("ignore" | "always" | "never");
|
|
10368
10486
|
}]; // ----- jsonc/object-property-newline -----
|
|
10369
10487
|
type JsoncObjectPropertyNewline = [] | [{
|
|
10370
10488
|
allowAllPropertiesOnSameLine?: boolean;
|
|
@@ -10974,6 +11092,7 @@ type MaxParams = [] | [(number | {
|
|
|
10974
11092
|
maximum?: number;
|
|
10975
11093
|
max?: number;
|
|
10976
11094
|
countVoidThis?: boolean;
|
|
11095
|
+
countThis?: ("never" | "except-void" | "always");
|
|
10977
11096
|
})]; // ----- max-statements -----
|
|
10978
11097
|
type MaxStatements = [] | [(number | {
|
|
10979
11098
|
maximum?: number;
|
|
@@ -14420,10 +14539,19 @@ type TomlCommaStyle = [] | [("first" | "last")] | [("first" | "last"), {
|
|
|
14420
14539
|
type TomlIndent = [] | [("tab" | number)] | [("tab" | number), {
|
|
14421
14540
|
subTables?: number;
|
|
14422
14541
|
keyValuePairs?: number;
|
|
14423
|
-
}]; // ----- toml/inline-table-curly-
|
|
14542
|
+
}]; // ----- toml/inline-table-curly-newline -----
|
|
14543
|
+
type TomlInlineTableCurlyNewline = [] | [(("always" | "never") | {
|
|
14544
|
+
multiline?: boolean;
|
|
14545
|
+
minProperties?: number;
|
|
14546
|
+
consistent?: boolean;
|
|
14547
|
+
})]; // ----- toml/inline-table-curly-spacing -----
|
|
14424
14548
|
type TomlInlineTableCurlySpacing = [] | [("always" | "never")] | [("always" | "never"), {
|
|
14425
14549
|
arraysInObjects?: boolean;
|
|
14426
14550
|
objectsInObjects?: boolean;
|
|
14551
|
+
emptyObjects?: ("ignore" | "always" | "never");
|
|
14552
|
+
}]; // ----- toml/inline-table-key-value-newline -----
|
|
14553
|
+
type TomlInlineTableKeyValueNewline = [] | [{
|
|
14554
|
+
allowAllPropertiesOnSameLine?: boolean;
|
|
14427
14555
|
}]; // ----- toml/key-spacing -----
|
|
14428
14556
|
type TomlKeySpacing = [] | [({
|
|
14429
14557
|
align?: (("equal" | "value") | {
|
|
@@ -15819,6 +15947,7 @@ type YamlFlowMappingCurlyNewline = [] | [(("always" | "never") | {
|
|
|
15819
15947
|
type YamlFlowMappingCurlySpacing = [] | [("always" | "never")] | [("always" | "never"), {
|
|
15820
15948
|
arraysInObjects?: boolean;
|
|
15821
15949
|
objectsInObjects?: boolean;
|
|
15950
|
+
emptyObjects?: ("ignore" | "always" | "never");
|
|
15822
15951
|
}]; // ----- yaml/flow-sequence-bracket-newline -----
|
|
15823
15952
|
type YamlFlowSequenceBracketNewline = [] | [(("always" | "never" | "consistent") | {
|
|
15824
15953
|
multiline?: boolean;
|
|
@@ -15989,6 +16118,6 @@ type Yoda = [] | [("always" | "never")] | [("always" | "never"), {
|
|
|
15989
16118
|
exceptRange?: boolean;
|
|
15990
16119
|
onlyEquality?: boolean;
|
|
15991
16120
|
}]; // Names of all the configs
|
|
15992
|
-
type ConfigNames = 'eienjs/gitignore' | 'eienjs/ignores' | 'eienjs/javascript/setup' | 'eienjs/javascript/rules' | 'eienjs/eslint-comments/rules' | 'eienjs/command/rules' | 'eienjs/perfectionist/setup' | 'eienjs/node/rules' | 'eienjs/jsdoc/rules' | 'eienjs/imports/rules' | 'eienjs/unicorn/rules' | 'eienjs/unicorn/special-rules' | 'eienjs/typescript/setup' | 'eienjs/typescript/parser' | 'eienjs/typescript/type-aware-parser' | 'eienjs/typescript/rules' | 'eienjs/typescript/rules-type-aware' | 'eienjs/typescript/disables' | 'eienjs/typescript/erasable-syntax-only' | 'eienjs/stylistic/rules' | 'eienjs/regexp/rules' | 'eienjs/test/setup' | 'eienjs/test/rules' | 'eienjs/vue/setup' | 'eienjs/vue/rules' | 'eienjs/vue/composables-disables' | 'eienjs/astro/setup' | 'eienjs/astro/rules' | 'eienjs/adonisjs/rules' | 'eienjs/adonisjs/inertia-rules' | 'eienjs/adonisjs/disables' | 'eienjs/adonisjs/database-disables' | 'eienjs/adonisjs/bin-disables' | 'eienjs/adonisjs/commands-disables' | 'eienjs/adonisjs/middleware-disables' | 'eienjs/adonisjs/transformers-disables' | 'eienjs/adonisjs/exceptions-disables' | 'eienjs/adonisjs/controllers-disables' | 'eienjs/adonisjs/config-disables' | 'eienjs/adonisjs/providers-disables' | 'eienjs/adonisjs/tests-disables' | 'eienjs/adonisjs/types-disables' | 'eienjs/nuxt/setup' | 'eienjs/nuxt/vue/single-root' | 'eienjs/nuxt/rules' | 'eienjs/nuxt/utils-disables' | 'eienjs/nuxt/sort-config' | 'eienjs/nuxt/vue/rules' | 'eienjs/jsonc/setup' | 'eienjs/jsonc/rules' | 'eienjs/sort/package-json' | 'eienjs/sort/tsconfig-json' | 'eienjs/pnpm/package-json' | 'eienjs/pnpm/pnpm-workspace-yaml' | 'eienjs/pnpm/pnpm-workspace-yaml-sort' | 'eienjs/yaml/setup' | 'eienjs/yaml/rules' | 'eienjs/toml/setup' | 'eienjs/toml/rules' | 'eienjs/markdown/setup' | 'eienjs/markdown/processor' | 'eienjs/markdown/parser' | 'eienjs/markdown/disables' | 'eienjs/formatter/setup' | 'eienjs/formatter/css' | 'eienjs/formatter/scss' | 'eienjs/formatter/less' | 'eienjs/formatter/html' | 'eienjs/formatter/xml' | 'eienjs/formatter/svg' | 'eienjs/formatter/markdown' | 'eienjs/formatter/astro' | 'eienjs/formatter/astro/disables' | 'eienjs/disables/scripts' | 'eienjs/disables/cli' | 'eienjs/disables/bin' | 'eienjs/disables/dts' | 'eienjs/disables/cjs' | 'eienjs/disables/config-files' | 'eienjs/disables/json' | 'eienjs/disables/yaml' | 'eienjs/disables/toml' | 'eienjs/disables/astro' | 'eienjs/disables/deploy-tools';
|
|
16121
|
+
type ConfigNames = 'eienjs/gitignore' | 'eienjs/ignores' | 'eienjs/javascript/setup' | 'eienjs/javascript/rules' | 'eienjs/eslint-comments/rules' | 'eienjs/command/rules' | 'eienjs/perfectionist/setup' | 'eienjs/node/setup' | 'eienjs/node/rules' | 'eienjs/jsdoc/setup' | 'eienjs/jsdoc/rules' | 'eienjs/imports/rules' | 'eienjs/e18e/setup' | 'eienjs/e18e/rules' | 'eienjs/unicorn/rules' | 'eienjs/unicorn/special-rules' | 'eienjs/typescript/setup' | 'eienjs/typescript/parser' | 'eienjs/typescript/type-aware-parser' | 'eienjs/typescript/rules' | 'eienjs/typescript/rules-type-aware' | 'eienjs/typescript/disables' | 'eienjs/typescript/erasable-syntax-only' | 'eienjs/stylistic/rules' | 'eienjs/regexp/rules' | 'eienjs/test/setup' | 'eienjs/test/rules' | 'eienjs/vue/setup' | 'eienjs/vue/rules' | 'eienjs/vue/composables-disables' | 'eienjs/astro/setup' | 'eienjs/astro/rules' | 'eienjs/adonisjs/rules' | 'eienjs/adonisjs/inertia-rules' | 'eienjs/adonisjs/disables' | 'eienjs/adonisjs/database-disables' | 'eienjs/adonisjs/bin-disables' | 'eienjs/adonisjs/commands-disables' | 'eienjs/adonisjs/middleware-disables' | 'eienjs/adonisjs/transformers-disables' | 'eienjs/adonisjs/exceptions-disables' | 'eienjs/adonisjs/controllers-disables' | 'eienjs/adonisjs/config-disables' | 'eienjs/adonisjs/providers-disables' | 'eienjs/adonisjs/tests-disables' | 'eienjs/adonisjs/types-disables' | 'eienjs/nuxt/setup' | 'eienjs/nuxt/vue/single-root' | 'eienjs/nuxt/rules' | 'eienjs/nuxt/utils-disables' | 'eienjs/nuxt/sort-config' | 'eienjs/nuxt/vue/rules' | 'eienjs/jsonc/setup' | 'eienjs/jsonc/rules' | 'eienjs/sort/package-json' | 'eienjs/sort/tsconfig-json' | 'eienjs/pnpm/package-json' | 'eienjs/pnpm/pnpm-workspace-yaml' | 'eienjs/pnpm/pnpm-workspace-yaml-sort' | 'eienjs/yaml/setup' | 'eienjs/yaml/rules' | 'eienjs/toml/setup' | 'eienjs/toml/rules' | 'eienjs/markdown/setup' | 'eienjs/markdown/processor' | 'eienjs/markdown/parser' | 'eienjs/markdown/rules' | 'eienjs/markdown/disables/markdown' | 'eienjs/markdown/disables/code' | 'eienjs/formatter/setup' | 'eienjs/formatter/css' | 'eienjs/formatter/scss' | 'eienjs/formatter/less' | 'eienjs/formatter/html' | 'eienjs/formatter/xml' | 'eienjs/formatter/svg' | 'eienjs/formatter/markdown' | 'eienjs/formatter/astro' | 'eienjs/formatter/astro/disables' | 'eienjs/disables/scripts' | 'eienjs/disables/cli' | 'eienjs/disables/bin' | 'eienjs/disables/dts' | 'eienjs/disables/cjs' | 'eienjs/disables/config-files' | 'eienjs/disables/json' | 'eienjs/disables/yaml' | 'eienjs/disables/toml' | 'eienjs/disables/astro' | 'eienjs/disables/deploy-tools';
|
|
15993
16122
|
//#endregion
|
|
15994
16123
|
export { ConfigNames, RuleOptions };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ConfigNames, RuleOptions } from "./typegen.
|
|
2
|
-
import { VendoredPrettierOptions } from "./vendored/prettier_types.
|
|
1
|
+
import { ConfigNames, RuleOptions } from "./typegen.js";
|
|
2
|
+
import { VendoredPrettierOptions } from "./vendored/prettier_types.js";
|
|
3
3
|
import { ConfigWithExtends } from "eslint-flat-config-utils";
|
|
4
4
|
import { StylisticCustomizeOptions } from "@stylistic/eslint-plugin";
|
|
5
5
|
import { ParserOptions } from "@typescript-eslint/parser";
|
|
@@ -220,6 +220,41 @@ interface OptionsComponentExts {
|
|
|
220
220
|
*/
|
|
221
221
|
componentExts?: string[];
|
|
222
222
|
}
|
|
223
|
+
interface OptionsE18e extends OptionsOverrides {
|
|
224
|
+
/**
|
|
225
|
+
* Include modernization rules
|
|
226
|
+
*
|
|
227
|
+
* @see https://github.com/e18e/eslint-plugin#modernization
|
|
228
|
+
* @default true
|
|
229
|
+
*/
|
|
230
|
+
modernization?: boolean;
|
|
231
|
+
/**
|
|
232
|
+
* Include module replacements rules
|
|
233
|
+
*
|
|
234
|
+
* @see https://github.com/e18e/eslint-plugin#module-replacements
|
|
235
|
+
* @default options.isInEditor
|
|
236
|
+
*/
|
|
237
|
+
moduleReplacements?: boolean;
|
|
238
|
+
/**
|
|
239
|
+
* Include performance improvements rules
|
|
240
|
+
*
|
|
241
|
+
* @see https://github.com/e18e/eslint-plugin#performance-improvements
|
|
242
|
+
* @default true
|
|
243
|
+
*/
|
|
244
|
+
performanceImprovements?: boolean;
|
|
245
|
+
}
|
|
246
|
+
interface OptionsMarkdown extends OptionsOverrides {
|
|
247
|
+
/**
|
|
248
|
+
* Enable GFM (Github Flavored Markdown) support.
|
|
249
|
+
*
|
|
250
|
+
* @default true
|
|
251
|
+
*/
|
|
252
|
+
gfm?: boolean;
|
|
253
|
+
/**
|
|
254
|
+
* Override rules for markdown itself.
|
|
255
|
+
*/
|
|
256
|
+
overridesMarkdown?: TypedFlatConfigItem['rules'];
|
|
257
|
+
}
|
|
223
258
|
interface OptionsTypeScriptParserOptions {
|
|
224
259
|
/**
|
|
225
260
|
* Additional parser options for TypeScript.
|
|
@@ -352,6 +387,12 @@ interface OptionsConfig extends OptionsComponentExts {
|
|
|
352
387
|
* @default auto-detect based on the dependencies
|
|
353
388
|
*/
|
|
354
389
|
typescript?: boolean | OptionsTypescript;
|
|
390
|
+
/**
|
|
391
|
+
* Options for [@e18e/eslint-plugin](https://github.com/e18e/eslint-plugin)
|
|
392
|
+
*
|
|
393
|
+
* @default true
|
|
394
|
+
*/
|
|
395
|
+
e18e?: boolean | OptionsE18e;
|
|
355
396
|
/**
|
|
356
397
|
* Options for eslint-plugin-unicorn.
|
|
357
398
|
*
|
|
@@ -407,13 +448,13 @@ interface OptionsConfig extends OptionsComponentExts {
|
|
|
407
448
|
*/
|
|
408
449
|
astro?: boolean | OptionsOverrides;
|
|
409
450
|
/**
|
|
410
|
-
* Enable linting for **code snippets** in Markdown.
|
|
451
|
+
* Enable linting for **code snippets** in Markdown and the markdown content itself.
|
|
411
452
|
*
|
|
412
453
|
* For formatting Markdown content, enable also `formatters.markdown`.
|
|
413
454
|
*
|
|
414
455
|
* @default true
|
|
415
456
|
*/
|
|
416
|
-
markdown?: boolean |
|
|
457
|
+
markdown?: boolean | OptionsMarkdown;
|
|
417
458
|
/**
|
|
418
459
|
* Enable stylistic rules.
|
|
419
460
|
*
|
|
@@ -475,4 +516,4 @@ interface OptionsConfig extends OptionsComponentExts {
|
|
|
475
516
|
nuxt?: boolean | OptionsNuxt;
|
|
476
517
|
}
|
|
477
518
|
//#endregion
|
|
478
|
-
export { Awaitable, OptionsAdonisJS, OptionsComponentExts, OptionsConfig, OptionsErasableSyntaxOnly, OptionsFiles, OptionsFormatters, OptionsHasTypeScript, OptionsIsInEditor, OptionsNuxt, OptionsOverrides, OptionsPnpm, OptionsRegExp, OptionsStylistic, OptionsTypeScriptParserOptions, OptionsTypeScriptWithTypes, OptionsTypescript, OptionsTypescriptWithErasableSyntaxOnly, OptionsVue, Rules, StylisticConfig, TypedFlatConfigItem };
|
|
519
|
+
export { Awaitable, OptionsAdonisJS, OptionsComponentExts, OptionsConfig, OptionsE18e, OptionsErasableSyntaxOnly, OptionsFiles, OptionsFormatters, OptionsHasTypeScript, OptionsIsInEditor, OptionsMarkdown, OptionsNuxt, OptionsOverrides, OptionsPnpm, OptionsRegExp, OptionsStylistic, OptionsTypeScriptParserOptions, OptionsTypeScriptWithTypes, OptionsTypescript, OptionsTypescriptWithErasableSyntaxOnly, OptionsVue, Rules, StylisticConfig, TypedFlatConfigItem };
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import process from "node:process";
|
|
2
2
|
import { fileURLToPath } from "node:url";
|
|
3
3
|
import { isPackageExists } from "local-pkg";
|
|
4
|
-
|
|
5
4
|
//#region src/utils.ts
|
|
6
5
|
const scopeUrl = fileURLToPath(new URL(".", import.meta.url));
|
|
7
6
|
const isCwdInScope = isPackageExists("@eienjs/eslint-config");
|
|
@@ -52,11 +51,10 @@ async function ensurePackages(packages) {
|
|
|
52
51
|
function isInEditorEnv() {
|
|
53
52
|
if (process.env.CI) return false;
|
|
54
53
|
if (isInGitHooksOrLintStaged()) return false;
|
|
55
|
-
return Boolean(process.env.VSCODE_PID || process.env.VSCODE_CWD || process.env.JETBRAINS_IDE || process.env.VIM || process.env.NVIM);
|
|
54
|
+
return Boolean(process.env.VSCODE_PID || process.env.VSCODE_CWD || process.env.JETBRAINS_IDE || process.env.VIM || process.env.NVIM || process.env.ZED_ENVIRONMENT);
|
|
56
55
|
}
|
|
57
56
|
function isInGitHooksOrLintStaged() {
|
|
58
57
|
return Boolean(process.env.GIT_PARAMS || process.env.VSCODE_GIT_COMMAND || process.env.npm_lifecycle_script?.startsWith("lint-staged"));
|
|
59
58
|
}
|
|
60
|
-
|
|
61
59
|
//#endregion
|
|
62
|
-
export { combine, ensurePackages, interopDefault, isInEditorEnv, isInGitHooksOrLintStaged, isPackageInScope, parserPlain, toArray };
|
|
60
|
+
export { combine, ensurePackages, interopDefault, isInEditorEnv, isInGitHooksOrLintStaged, isPackageInScope, parserPlain, toArray };
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eienjs/eslint-config",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.11.0",
|
|
5
5
|
"description": "EienJS ESLint Config",
|
|
6
6
|
"author": "Fernando Isidro <luffynando@gmail.com> (https://github.com/luffynando/)",
|
|
7
7
|
"license": "MIT",
|
|
@@ -19,13 +19,13 @@
|
|
|
19
19
|
"astro"
|
|
20
20
|
],
|
|
21
21
|
"exports": {
|
|
22
|
-
".": "./dist/index.
|
|
23
|
-
"./cli": "./dist/cli/index.
|
|
24
|
-
"./configs": "./dist/configs/index.
|
|
22
|
+
".": "./dist/index.js",
|
|
23
|
+
"./cli": "./dist/cli/index.js",
|
|
24
|
+
"./configs": "./dist/configs/index.js",
|
|
25
25
|
"./package.json": "./package.json"
|
|
26
26
|
},
|
|
27
|
-
"types": "./dist/index.d.
|
|
28
|
-
"bin": "./bin/index.
|
|
27
|
+
"types": "./dist/index.d.ts",
|
|
28
|
+
"bin": "./bin/index.js",
|
|
29
29
|
"files": [
|
|
30
30
|
"bin",
|
|
31
31
|
"dist"
|
|
@@ -35,13 +35,13 @@
|
|
|
35
35
|
},
|
|
36
36
|
"peerDependencies": {
|
|
37
37
|
"@adonisjs/eslint-plugin": "^2.2.2",
|
|
38
|
-
"@nuxt/eslint-plugin": "^1.15.
|
|
38
|
+
"@nuxt/eslint-plugin": "^1.15.2",
|
|
39
39
|
"@prettier/plugin-xml": "^3.4.2",
|
|
40
40
|
"astro-eslint-parser": "^1.3.0",
|
|
41
41
|
"eslint": "^9.39.2 || ^10.0.1",
|
|
42
42
|
"eslint-plugin-astro": "^1.6.0",
|
|
43
43
|
"eslint-plugin-erasable-syntax-only": "^0.4.0",
|
|
44
|
-
"eslint-plugin-format": "
|
|
44
|
+
"eslint-plugin-format": ">=0.1.0",
|
|
45
45
|
"prettier-plugin-astro": "^0.14.1"
|
|
46
46
|
},
|
|
47
47
|
"peerDependenciesMeta": {
|
|
@@ -72,36 +72,36 @@
|
|
|
72
72
|
},
|
|
73
73
|
"dependencies": {
|
|
74
74
|
"@antfu/install-pkg": "^1.1.0",
|
|
75
|
-
"@clack/prompts": "^1.0
|
|
76
|
-
"@
|
|
75
|
+
"@clack/prompts": "^1.1.0",
|
|
76
|
+
"@e18e/eslint-plugin": "^0.2.0",
|
|
77
|
+
"@eslint-community/eslint-plugin-eslint-comments": "^4.7.1",
|
|
77
78
|
"@eslint/markdown": "^7.5.1",
|
|
78
|
-
"@stylistic/eslint-plugin": "^5.
|
|
79
|
-
"@typescript-eslint/eslint-plugin": "^8.
|
|
80
|
-
"@typescript-eslint/parser": "^8.
|
|
81
|
-
"@vitest/eslint-plugin": "^1.6.
|
|
79
|
+
"@stylistic/eslint-plugin": "^5.10.0",
|
|
80
|
+
"@typescript-eslint/eslint-plugin": "^8.57.0",
|
|
81
|
+
"@typescript-eslint/parser": "^8.57.0",
|
|
82
|
+
"@vitest/eslint-plugin": "^1.6.10",
|
|
82
83
|
"ansis": "^4.2.0",
|
|
83
|
-
"cac": "^
|
|
84
|
+
"cac": "^7.0.0",
|
|
84
85
|
"eslint-config-flat-gitignore": "^2.2.1",
|
|
85
|
-
"eslint-flat-config-utils": "^3.0.
|
|
86
|
+
"eslint-flat-config-utils": "^3.0.2",
|
|
86
87
|
"eslint-merge-processors": "^2.0.0",
|
|
87
88
|
"eslint-plugin-antfu": "^3.2.2",
|
|
88
|
-
"eslint-plugin-command": "^3.
|
|
89
|
-
"eslint-plugin-import-lite": "^0.5.
|
|
90
|
-
"eslint-plugin-jsdoc": "^62.7.
|
|
91
|
-
"eslint-plugin-jsonc": "^
|
|
89
|
+
"eslint-plugin-command": "^3.5.2",
|
|
90
|
+
"eslint-plugin-import-lite": "^0.5.2",
|
|
91
|
+
"eslint-plugin-jsdoc": "^62.7.1",
|
|
92
|
+
"eslint-plugin-jsonc": "^3.1.1",
|
|
92
93
|
"eslint-plugin-n": "^17.24.0",
|
|
93
94
|
"eslint-plugin-no-only-tests": "^3.3.0",
|
|
94
95
|
"eslint-plugin-perfectionist": "^5.6.0",
|
|
95
|
-
"eslint-plugin-pnpm": "^1.
|
|
96
|
-
"eslint-plugin-regexp": "^3.
|
|
97
|
-
"eslint-plugin-toml": "^1.
|
|
96
|
+
"eslint-plugin-pnpm": "^1.6.0",
|
|
97
|
+
"eslint-plugin-regexp": "^3.1.0",
|
|
98
|
+
"eslint-plugin-toml": "^1.3.1",
|
|
98
99
|
"eslint-plugin-unicorn": "^63.0.0",
|
|
99
100
|
"eslint-plugin-unused-imports": "^4.4.1",
|
|
100
101
|
"eslint-plugin-vue": "^10.8.0",
|
|
101
|
-
"eslint-plugin-yml": "^3.
|
|
102
|
+
"eslint-plugin-yml": "^3.3.1",
|
|
102
103
|
"eslint-processor-vue-blocks": "^2.0.0",
|
|
103
|
-
"globals": "^17.
|
|
104
|
-
"jsonc-eslint-parser": "^2.4.2",
|
|
104
|
+
"globals": "^17.4.0",
|
|
105
105
|
"local-pkg": "^1.1.2",
|
|
106
106
|
"parse-gitignore": "^2.0.0",
|
|
107
107
|
"pathe": "^2.0.3",
|
|
@@ -111,32 +111,36 @@
|
|
|
111
111
|
},
|
|
112
112
|
"devDependencies": {
|
|
113
113
|
"@adonisjs/eslint-plugin": "^2.2.2",
|
|
114
|
-
"@commitlint/cli": "^20.4.
|
|
115
|
-
"@commitlint/config-conventional": "^20.4.
|
|
116
|
-
"@eslint/config-inspector": "^1.
|
|
117
|
-
"@nuxt/eslint-plugin": "^1.15.
|
|
114
|
+
"@commitlint/cli": "^20.4.3",
|
|
115
|
+
"@commitlint/config-conventional": "^20.4.3",
|
|
116
|
+
"@eslint/config-inspector": "^1.5.0",
|
|
117
|
+
"@nuxt/eslint-plugin": "^1.15.2",
|
|
118
118
|
"@prettier/plugin-xml": "^3.4.2",
|
|
119
|
-
"@types/node": "^
|
|
119
|
+
"@types/node": "^24.12.0",
|
|
120
120
|
"astro-eslint-parser": "^1.3.0",
|
|
121
121
|
"auto-changelog": "^2.5.0",
|
|
122
122
|
"baseline-browser-mapping": "^2.10.0",
|
|
123
|
-
"eslint": "^
|
|
123
|
+
"eslint": "^10.0.3",
|
|
124
124
|
"eslint-plugin-astro": "^1.6.0",
|
|
125
125
|
"eslint-plugin-erasable-syntax-only": "^0.4.0",
|
|
126
|
-
"eslint-plugin-format": "^
|
|
126
|
+
"eslint-plugin-format": "^2.0.1",
|
|
127
127
|
"eslint-typegen": "^2.3.1",
|
|
128
128
|
"find-up-simple": "^1.0.1",
|
|
129
129
|
"husky": "^9.1.7",
|
|
130
130
|
"np": "^11.0.2",
|
|
131
|
-
"pnpm-workspace-yaml": "^1.
|
|
131
|
+
"pnpm-workspace-yaml": "^1.6.0",
|
|
132
132
|
"prettier-plugin-astro": "^0.14.1",
|
|
133
|
-
"tsdown": "^0.
|
|
133
|
+
"tsdown": "^0.21.1",
|
|
134
134
|
"tsx": "^4.21.0",
|
|
135
135
|
"typescript": "^5.9.3"
|
|
136
136
|
},
|
|
137
|
+
"inlinedDependencies": {
|
|
138
|
+
"find-up-simple": "1.0.1"
|
|
139
|
+
},
|
|
137
140
|
"resolutions": {
|
|
138
141
|
"chokidar": "catalog:dev",
|
|
139
142
|
"eslint": "catalog:peer",
|
|
143
|
+
"eslint-json-compat-utils": "catalog:dev",
|
|
140
144
|
"tsx": "catalog:dev"
|
|
141
145
|
},
|
|
142
146
|
"commitlint": {
|
|
@@ -160,7 +164,7 @@
|
|
|
160
164
|
},
|
|
161
165
|
"scripts": {
|
|
162
166
|
"prebuild": "pnpm tool:code",
|
|
163
|
-
"build": "pnpm gen && tsdown
|
|
167
|
+
"build": "pnpm gen && tsdown",
|
|
164
168
|
"stub": "tsdown",
|
|
165
169
|
"dev": "npx @eslint/config-inspector --config eslint.config.ts",
|
|
166
170
|
"build:inspector": "pnpm build && npx @eslint/config-inspector build",
|
package/dist/configs/index.d.mts
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { adonisjs } from "./adonisjs.mjs";
|
|
2
|
-
import { astro } from "./astro.mjs";
|
|
3
|
-
import { command } from "./command.mjs";
|
|
4
|
-
import { comments } from "./comments.mjs";
|
|
5
|
-
import { disables } from "./disables.mjs";
|
|
6
|
-
import { formatters } from "./formatters.mjs";
|
|
7
|
-
import { ignores } from "./ignores.mjs";
|
|
8
|
-
import { imports } from "./imports.mjs";
|
|
9
|
-
import { javascript } from "./javascript.mjs";
|
|
10
|
-
import { jsdoc } from "./jsdoc.mjs";
|
|
11
|
-
import { jsonc } from "./jsonc.mjs";
|
|
12
|
-
import { markdown } from "./markdown.mjs";
|
|
13
|
-
import { node } from "./node.mjs";
|
|
14
|
-
import { nuxt } from "./nuxt.mjs";
|
|
15
|
-
import { perfectionist } from "./perfectionist.mjs";
|
|
16
|
-
import { pnpm } from "./pnpm.mjs";
|
|
17
|
-
import { regexp } from "./regexp.mjs";
|
|
18
|
-
import { sortPackageJson, sortTsconfig } from "./sort.mjs";
|
|
19
|
-
import { StylisticConfigDefaults, StylisticOptions, stylistic } from "./stylistic.mjs";
|
|
20
|
-
import { test } from "./test.mjs";
|
|
21
|
-
import { toml } from "./toml.mjs";
|
|
22
|
-
import { typescript } from "./typescript.mjs";
|
|
23
|
-
import { unicorn } from "./unicorn.mjs";
|
|
24
|
-
import { vue } from "./vue.mjs";
|
|
25
|
-
import { yaml } from "./yaml.mjs";
|
|
26
|
-
export { StylisticConfigDefaults, StylisticOptions, adonisjs, astro, command, comments, disables, formatters, ignores, imports, javascript, jsdoc, jsonc, markdown, node, nuxt, perfectionist, pnpm, regexp, sortPackageJson, sortTsconfig, stylistic, test, toml, typescript, unicorn, vue, yaml };
|
package/dist/configs/index.mjs
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { adonisjs } from "./adonisjs.mjs";
|
|
2
|
-
import { astro } from "./astro.mjs";
|
|
3
|
-
import { command } from "./command.mjs";
|
|
4
|
-
import { comments } from "./comments.mjs";
|
|
5
|
-
import { disables } from "./disables.mjs";
|
|
6
|
-
import { StylisticConfigDefaults, stylistic } from "./stylistic.mjs";
|
|
7
|
-
import { formatters } from "./formatters.mjs";
|
|
8
|
-
import { ignores } from "./ignores.mjs";
|
|
9
|
-
import { imports } from "./imports.mjs";
|
|
10
|
-
import { javascript } from "./javascript.mjs";
|
|
11
|
-
import { jsdoc } from "./jsdoc.mjs";
|
|
12
|
-
import { jsonc } from "./jsonc.mjs";
|
|
13
|
-
import { markdown } from "./markdown.mjs";
|
|
14
|
-
import { node } from "./node.mjs";
|
|
15
|
-
import { nuxt } from "./nuxt.mjs";
|
|
16
|
-
import { perfectionist } from "./perfectionist.mjs";
|
|
17
|
-
import { pnpm } from "./pnpm.mjs";
|
|
18
|
-
import { regexp } from "./regexp.mjs";
|
|
19
|
-
import { sortPackageJson, sortTsconfig } from "./sort.mjs";
|
|
20
|
-
import { test } from "./test.mjs";
|
|
21
|
-
import { toml } from "./toml.mjs";
|
|
22
|
-
import { typescript } from "./typescript.mjs";
|
|
23
|
-
import { unicorn } from "./unicorn.mjs";
|
|
24
|
-
import { vue } from "./vue.mjs";
|
|
25
|
-
import { yaml } from "./yaml.mjs";
|
|
26
|
-
|
|
27
|
-
export { StylisticConfigDefaults, adonisjs, astro, command, comments, disables, formatters, ignores, imports, javascript, jsdoc, jsonc, markdown, node, nuxt, perfectionist, pnpm, regexp, sortPackageJson, sortTsconfig, stylistic, test, toml, typescript, unicorn, vue, yaml };
|