@zayne-labs/eslint-config 0.4.2 → 0.4.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/dist/index.d.ts +15 -3
- package/dist/index.js +56 -30
- package/dist/index.js.map +1 -1
- package/package.json +8 -1
- package/dist/chunk-VUNV25KB.js +0 -14
- package/dist/chunk-VUNV25KB.js.map +0 -1
- package/dist/dist-RQW5ZYTC.js +0 -235156
- package/dist/dist-RQW5ZYTC.js.map +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -14125,7 +14125,7 @@ type Yoda = []|[("always" | "never")]|[("always" | "never"), {
|
|
|
14125
14125
|
}]
|
|
14126
14126
|
|
|
14127
14127
|
// Names of all the configs
|
|
14128
|
-
type ConfigNames = "zayne/js-eslint/setup" | "zayne/js-eslint/recommended" | "zayne/js-eslint/rules" | "zayne/unicorn/recommended" | "zayne/unicorn/rules" | "zayne/ts-eslint/setup" | "zayne/ts-eslint/strict" | "zayne/ts-eslint/strict" | "zayne/ts-eslint/strict" | "zayne/ts-eslint/stylistic" | "zayne/ts-eslint/stylistic" | "zayne/ts-eslint/stylistic" | "zayne/ts-eslint/rules" | "zayne/tailwindcss/setup" | "zayne/tailwindcss/recommended" | "zayne/tailwindcss/rules" | "zayne/perfectionist/rules" | "zayne/stylistic/rules" | "zayne/import/setup" | "zayne/import/recommended" | "zayne/import/rules" | "zayne/jsdoc/rules" | "zayne/jsonc/setup" | "zayne/jsonc/rules" | "zayne/react/setup" | "zayne/react/recommended" | "zayne/react/rules" | "zayne/react/
|
|
14128
|
+
type ConfigNames = "zayne/js-eslint/setup" | "zayne/js-eslint/recommended" | "zayne/js-eslint/rules" | "zayne/unicorn/recommended" | "zayne/unicorn/rules" | "zayne/ts-eslint/setup" | "zayne/ts-eslint/strict" | "zayne/ts-eslint/strict" | "zayne/ts-eslint/strict" | "zayne/ts-eslint/stylistic" | "zayne/ts-eslint/stylistic" | "zayne/ts-eslint/stylistic" | "zayne/ts-eslint/rules" | "zayne/tailwindcss/setup" | "zayne/tailwindcss/recommended" | "zayne/tailwindcss/rules" | "zayne/perfectionist/rules" | "zayne/stylistic/rules" | "zayne/import/setup" | "zayne/import/recommended" | "zayne/import/rules" | "zayne/jsdoc/rules" | "zayne/jsonc/setup" | "zayne/jsonc/rules" | "zayne/react/setup" | "zayne/react/recommended" | "zayne/react/rules" | "zayne/react/nextjs" | "zayne/node/setup" | "zayne/node/recommended" | "zayne/node/rules" | "zayne/tanstack/query-recommended" | "zayne/eslint-comments/rules" | "zayne/toml/setup" | "zayne/toml/rules" | "antfu/yaml/setup" | "antfu/yaml/rules" | "zayne/vue/setup" | "zayne/vue/rules"
|
|
14129
14129
|
|
|
14130
14130
|
type LiteralUnion<TUnion extends TBase, TBase = string> = TUnion | (TBase & { _ignore?: never });
|
|
14131
14131
|
|
|
@@ -14410,6 +14410,12 @@ interface OptionsComponentExts {
|
|
|
14410
14410
|
* @default []
|
|
14411
14411
|
*/
|
|
14412
14412
|
componentExts?: string[];
|
|
14413
|
+
/**
|
|
14414
|
+
* Additional extensions for type aware components.
|
|
14415
|
+
* @example ['vue']
|
|
14416
|
+
* @default []
|
|
14417
|
+
*/
|
|
14418
|
+
componentExtsTypeAware?: string[];
|
|
14413
14419
|
}
|
|
14414
14420
|
interface OptionsTypeScriptParserOptions {
|
|
14415
14421
|
/**
|
|
@@ -14450,6 +14456,11 @@ interface OptionsHasTypeScript {
|
|
|
14450
14456
|
typescript?: boolean;
|
|
14451
14457
|
}
|
|
14452
14458
|
interface OptionsReact {
|
|
14459
|
+
/**
|
|
14460
|
+
* Enable react compiler rules.
|
|
14461
|
+
* @default false
|
|
14462
|
+
*/
|
|
14463
|
+
compiler?: boolean;
|
|
14453
14464
|
/**
|
|
14454
14465
|
* Enable nextjs rules.
|
|
14455
14466
|
* @default auto-detect-from-dependencies
|
|
@@ -14693,7 +14704,7 @@ declare const jsonc: (options?: ExtractOptions<OptionsConfig["jsonc"]>) => Promi
|
|
|
14693
14704
|
|
|
14694
14705
|
declare const jsdoc: (options?: ExtractOptions<OptionsConfig["jsdoc"]>) => Promise<TypedFlatConfigItem[]>;
|
|
14695
14706
|
|
|
14696
|
-
declare const react: (options?:
|
|
14707
|
+
declare const react: (options?: ExtractOptions<OptionsConfig["react"]>) => Promise<TypedFlatConfigItem[]>;
|
|
14697
14708
|
|
|
14698
14709
|
declare const tanstack: (options?: ExtractOptions<OptionsConfig["tanstack"]>) => Promise<TypedFlatConfigItem[]>;
|
|
14699
14710
|
|
|
@@ -14816,5 +14827,6 @@ declare const isPackageInScope: (name: string) => boolean;
|
|
|
14816
14827
|
* @param packages - The packages to ensure are installed.
|
|
14817
14828
|
*/
|
|
14818
14829
|
declare const ensurePackages: (packages: Array<string | undefined>) => Promise<void>;
|
|
14830
|
+
declare const resolveOptions: <TObject>(option: boolean | TObject | undefined) => TObject;
|
|
14819
14831
|
|
|
14820
|
-
export { type Awaitable, type ConfigNames, type ExtractOptions, GLOB_ALL_SRC, GLOB_ASTRO, GLOB_ASTRO_TS, GLOB_CSS, GLOB_EXCLUDE, GLOB_GRAPHQL, GLOB_HTML, GLOB_JS, GLOB_JSON, GLOB_JSON5, GLOB_JSONC, GLOB_JSX, GLOB_LESS, GLOB_MARKDOWN, GLOB_MARKDOWN_CODE, GLOB_MARKDOWN_IN_MARKDOWN, GLOB_POSTCSS, GLOB_SCSS, GLOB_SRC, GLOB_SRC_EXT, GLOB_STYLES, GLOB_SVELTE, GLOB_SVG, GLOB_TESTS, GLOB_TOML, GLOB_TS, GLOB_TSX, GLOB_VUE, GLOB_XML, GLOB_YAML, type OptionsAppType, type OptionsComponentExts, type OptionsConfig, type OptionsFiles, type OptionsHasJsx, type OptionsHasTypeScript, type OptionsNode, type OptionsOverrides, type OptionsReact, type OptionsRegExp, type OptionsStylistic, type OptionsTailwindCSS, type OptionsTanstack, type OptionsTypeScriptParserOptions, type OptionsTypeScriptWithTypes, type OptionsTypescript$1 as OptionsTypescript, type OptionsVue, type Prettify, type Rules, type TypedFlatConfigItem, combine, comments, ensurePackages, gitIgnores, ignores, imports, interopDefault, isObject, isPackageInScope, javascript, jsdoc, jsonc, node, perfectionist, react, renamePluginInConfigs, renamePlugins, renameRules, sortPackageJson, sortTsconfig, stylistic, tailwindcss, tanstack, toml, typescript, unicorn, vue, yaml, zayne };
|
|
14832
|
+
export { type Awaitable, type ConfigNames, type ExtractOptions, GLOB_ALL_SRC, GLOB_ASTRO, GLOB_ASTRO_TS, GLOB_CSS, GLOB_EXCLUDE, GLOB_GRAPHQL, GLOB_HTML, GLOB_JS, GLOB_JSON, GLOB_JSON5, GLOB_JSONC, GLOB_JSX, GLOB_LESS, GLOB_MARKDOWN, GLOB_MARKDOWN_CODE, GLOB_MARKDOWN_IN_MARKDOWN, GLOB_POSTCSS, GLOB_SCSS, GLOB_SRC, GLOB_SRC_EXT, GLOB_STYLES, GLOB_SVELTE, GLOB_SVG, GLOB_TESTS, GLOB_TOML, GLOB_TS, GLOB_TSX, GLOB_VUE, GLOB_XML, GLOB_YAML, type OptionsAppType, type OptionsComponentExts, type OptionsConfig, type OptionsFiles, type OptionsHasJsx, type OptionsHasTypeScript, type OptionsNode, type OptionsOverrides, type OptionsReact, type OptionsRegExp, type OptionsStylistic, type OptionsTailwindCSS, type OptionsTanstack, type OptionsTypeScriptParserOptions, type OptionsTypeScriptWithTypes, type OptionsTypescript$1 as OptionsTypescript, type OptionsVue, type Prettify, type Rules, type TypedFlatConfigItem, combine, comments, ensurePackages, gitIgnores, ignores, imports, interopDefault, isObject, isPackageInScope, javascript, jsdoc, jsonc, node, perfectionist, react, renamePluginInConfigs, renamePlugins, renameRules, resolveOptions, sortPackageJson, sortTsconfig, stylistic, tailwindcss, tanstack, toml, typescript, unicorn, vue, yaml, zayne };
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import './chunk-VUNV25KB.js';
|
|
2
1
|
import { fileURLToPath } from 'node:url';
|
|
3
2
|
import { isPackageExists } from 'local-pkg';
|
|
4
3
|
import globals from 'globals';
|
|
@@ -6,6 +5,7 @@ import { fixupPluginRules } from '@eslint/compat';
|
|
|
6
5
|
import { mergeProcessors } from 'eslint-merge-processors';
|
|
7
6
|
import { FlatConfigComposer } from 'eslint-flat-config-utils';
|
|
8
7
|
|
|
8
|
+
// src/utils.ts
|
|
9
9
|
var isObject = (value) => {
|
|
10
10
|
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
11
11
|
};
|
|
@@ -64,6 +64,7 @@ var ensurePackages = async (packages) => {
|
|
|
64
64
|
await antfuPkg.installPackage(nonExistingPackages, { dev: true });
|
|
65
65
|
}
|
|
66
66
|
};
|
|
67
|
+
var resolveOptions = (option) => isObject(option) ? option : {};
|
|
67
68
|
|
|
68
69
|
// src/globs.ts
|
|
69
70
|
var GLOB_SRC_EXT = "?([cm])[jt]s?(x)";
|
|
@@ -516,7 +517,7 @@ var typescript = async (options = {}) => {
|
|
|
516
517
|
allowDefaultProjects,
|
|
517
518
|
componentExts = [],
|
|
518
519
|
files = [GLOB_TS, GLOB_TSX, ...componentExts.map((ext) => `**/*.${ext}`)],
|
|
519
|
-
filesTypeAware = [GLOB_TS, GLOB_TSX],
|
|
520
|
+
filesTypeAware = [GLOB_TS, GLOB_TSX, ...componentExts.map((ext) => `**/*.${ext}`)],
|
|
520
521
|
ignoresTypeAware = [`${GLOB_MARKDOWN}/**`, GLOB_ASTRO_TS],
|
|
521
522
|
overrides,
|
|
522
523
|
parserOptions,
|
|
@@ -870,12 +871,6 @@ var stylistic = async (options = {}) => {
|
|
|
870
871
|
},
|
|
871
872
|
...overrides
|
|
872
873
|
}
|
|
873
|
-
},
|
|
874
|
-
{
|
|
875
|
-
files: [GLOB_YAML],
|
|
876
|
-
rules: {
|
|
877
|
-
"stylistic/spaced-comment": "off"
|
|
878
|
-
}
|
|
879
874
|
}
|
|
880
875
|
];
|
|
881
876
|
};
|
|
@@ -1006,19 +1001,27 @@ var isAllowConstantExport = ReactRefreshAllowConstantExportPackages.some((i) =>
|
|
|
1006
1001
|
var isUsingRemix = RemixPackages.some((i) => isPackageExists(i));
|
|
1007
1002
|
var isUsingNext = NextJsPackages.some((i) => isPackageExists(i));
|
|
1008
1003
|
var react = async (options = {}) => {
|
|
1009
|
-
const {
|
|
1004
|
+
const {
|
|
1005
|
+
compiler = false,
|
|
1006
|
+
files = [GLOB_SRC],
|
|
1007
|
+
nextjs = isUsingNext,
|
|
1008
|
+
overrides,
|
|
1009
|
+
typescript: typescript2 = true
|
|
1010
|
+
} = options;
|
|
1010
1011
|
await ensurePackages([
|
|
1011
1012
|
"@eslint-react/eslint-plugin",
|
|
1012
1013
|
"eslint-plugin-react-hooks",
|
|
1013
1014
|
"eslint-plugin-react-refresh",
|
|
1015
|
+
...compiler ? ["eslint-plugin-react-compiler"] : [],
|
|
1014
1016
|
...nextjs ? ["@next/eslint-plugin-next"] : []
|
|
1015
1017
|
]);
|
|
1016
|
-
const [eslintPluginReact, eslintReactHooks, eslintPluginReactRefresh,
|
|
1018
|
+
const [eslintPluginReact, eslintReactHooks, eslintPluginReactRefresh, eslintPluginReactCompiler] = await Promise.all([
|
|
1017
1019
|
interopDefault(import('@eslint-react/eslint-plugin')),
|
|
1018
1020
|
interopDefault(import('eslint-plugin-react-hooks')),
|
|
1019
1021
|
interopDefault(import('eslint-plugin-react-refresh')),
|
|
1020
|
-
...
|
|
1022
|
+
...compiler ? [interopDefault(import('eslint-plugin-react-compiler'))] : []
|
|
1021
1023
|
]);
|
|
1024
|
+
const eslintPluginNextjs = nextjs && await interopDefault(import('@next/eslint-plugin-next'));
|
|
1022
1025
|
const recommendedReactConfig = eslintPluginReact.configs[typescript2 ? "recommended-type-checked" : "recommended"];
|
|
1023
1026
|
const config = [
|
|
1024
1027
|
{
|
|
@@ -1039,11 +1042,12 @@ var react = async (options = {}) => {
|
|
|
1039
1042
|
files,
|
|
1040
1043
|
name: "zayne/react/rules",
|
|
1041
1044
|
rules: {
|
|
1042
|
-
// Hook rules
|
|
1045
|
+
// Hook Extra rules
|
|
1043
1046
|
"react-hooks-extra/ensure-custom-hooks-using-other-hooks": "error",
|
|
1044
1047
|
"react-hooks-extra/no-unnecessary-use-callback": "warn",
|
|
1045
1048
|
"react-hooks-extra/no-unnecessary-use-memo": "warn",
|
|
1046
1049
|
"react-hooks-extra/prefer-use-state-lazy-initialization": "error",
|
|
1050
|
+
// Hook rules
|
|
1047
1051
|
"react-hooks/exhaustive-deps": "warn",
|
|
1048
1052
|
"react-hooks/rules-of-hooks": "error",
|
|
1049
1053
|
// Naming convention rules
|
|
@@ -1092,10 +1096,22 @@ var react = async (options = {}) => {
|
|
|
1092
1096
|
}
|
|
1093
1097
|
}
|
|
1094
1098
|
];
|
|
1099
|
+
if (compiler && eslintPluginReactCompiler) {
|
|
1100
|
+
config.push({
|
|
1101
|
+
files,
|
|
1102
|
+
name: "zayne/react/compiler",
|
|
1103
|
+
plugins: {
|
|
1104
|
+
"react-compiler": eslintPluginReactCompiler
|
|
1105
|
+
},
|
|
1106
|
+
rules: {
|
|
1107
|
+
"react-compiler/react-compiler": "error"
|
|
1108
|
+
}
|
|
1109
|
+
});
|
|
1110
|
+
}
|
|
1095
1111
|
if (nextjs && eslintPluginNextjs) {
|
|
1096
1112
|
config.push({
|
|
1097
1113
|
files,
|
|
1098
|
-
name: "zayne/react/
|
|
1114
|
+
name: "zayne/react/nextjs",
|
|
1099
1115
|
plugins: {
|
|
1100
1116
|
"nextjs-next": fixupPluginRules(eslintPluginNextjs)
|
|
1101
1117
|
},
|
|
@@ -1506,7 +1522,7 @@ var yaml = async (options = {}) => {
|
|
|
1506
1522
|
"yaml/no-irregular-whitespace": "error",
|
|
1507
1523
|
"yaml/plain-scalar": "error",
|
|
1508
1524
|
"yaml/vue-custom-block/no-parsing-error": "error",
|
|
1509
|
-
...stylistic2
|
|
1525
|
+
...stylistic2 && {
|
|
1510
1526
|
"yaml/block-mapping-question-indicator-newline": "error",
|
|
1511
1527
|
"yaml/block-sequence-hyphen-indicator-newline": "error",
|
|
1512
1528
|
"yaml/flow-mapping-curly-newline": "error",
|
|
@@ -1521,7 +1537,8 @@ var yaml = async (options = {}) => {
|
|
|
1521
1537
|
// { avoidEscape: true, prefer: quotes === "backtick" ? "double" : quotes },
|
|
1522
1538
|
// ],
|
|
1523
1539
|
"yaml/spaced-comment": "error"
|
|
1524
|
-
}
|
|
1540
|
+
},
|
|
1541
|
+
"stylistic/spaced-comment": "off",
|
|
1525
1542
|
...overrides
|
|
1526
1543
|
}
|
|
1527
1544
|
}
|
|
@@ -1530,13 +1547,12 @@ var yaml = async (options = {}) => {
|
|
|
1530
1547
|
async function vue(options = {}) {
|
|
1531
1548
|
const {
|
|
1532
1549
|
files = [GLOB_VUE],
|
|
1533
|
-
indent = 3,
|
|
1534
1550
|
overrides,
|
|
1551
|
+
sfcBlocks = true,
|
|
1535
1552
|
stylistic: stylistic2 = true,
|
|
1536
1553
|
typescript: typescript2 = true,
|
|
1537
1554
|
vueVersion = 3
|
|
1538
1555
|
} = options;
|
|
1539
|
-
const sfcBlocks = options.sfcBlocks === true ? {} : options.sfcBlocks ?? {};
|
|
1540
1556
|
await ensurePackages([
|
|
1541
1557
|
"eslint-plugin-vue",
|
|
1542
1558
|
"vue-eslint-parser",
|
|
@@ -1545,7 +1561,7 @@ async function vue(options = {}) {
|
|
|
1545
1561
|
const [pluginVue, parserVue, processorVueBlocks] = await Promise.all([
|
|
1546
1562
|
interopDefault(import('eslint-plugin-vue')),
|
|
1547
1563
|
interopDefault(import('vue-eslint-parser')),
|
|
1548
|
-
interopDefault(import('eslint-processor-vue-blocks'))
|
|
1564
|
+
...sfcBlocks ? [interopDefault(import('eslint-processor-vue-blocks'))] : []
|
|
1549
1565
|
]);
|
|
1550
1566
|
return [
|
|
1551
1567
|
{
|
|
@@ -1583,21 +1599,20 @@ async function vue(options = {}) {
|
|
|
1583
1599
|
jsx: true
|
|
1584
1600
|
},
|
|
1585
1601
|
extraFileExtensions: [".vue"],
|
|
1586
|
-
|
|
1587
|
-
parser:
|
|
1588
|
-
sourceType: "module"
|
|
1602
|
+
sourceType: "module",
|
|
1603
|
+
...typescript2 && { parser: await interopDefault(import('@typescript-eslint/parser')) }
|
|
1589
1604
|
}
|
|
1590
1605
|
},
|
|
1591
1606
|
name: "zayne/vue/rules",
|
|
1592
1607
|
processor: sfcBlocks === false ? pluginVue.processors[".vue"] : mergeProcessors([
|
|
1593
1608
|
pluginVue.processors[".vue"],
|
|
1594
|
-
processorVueBlocks({
|
|
1595
|
-
...sfcBlocks,
|
|
1609
|
+
processorVueBlocks?.({
|
|
1610
|
+
...resolveOptions(sfcBlocks),
|
|
1596
1611
|
blocks: {
|
|
1597
1612
|
styles: true,
|
|
1598
|
-
...sfcBlocks.blocks
|
|
1613
|
+
...resolveOptions(sfcBlocks).blocks
|
|
1599
1614
|
}
|
|
1600
|
-
})
|
|
1615
|
+
}) ?? pluginVue.processors[".vue"]
|
|
1601
1616
|
]),
|
|
1602
1617
|
rules: {
|
|
1603
1618
|
...pluginVue.configs.base.rules,
|
|
@@ -1631,7 +1646,7 @@ async function vue(options = {}) {
|
|
|
1631
1646
|
"vue/dot-location": ["error", "property"],
|
|
1632
1647
|
"vue/dot-notation": ["error", { allowKeywords: true }],
|
|
1633
1648
|
"vue/eqeqeq": ["error", "smart"],
|
|
1634
|
-
"vue/html-indent":
|
|
1649
|
+
"vue/html-indent": "off",
|
|
1635
1650
|
"vue/html-quotes": ["error", "double"],
|
|
1636
1651
|
"vue/max-attributes-per-line": "off",
|
|
1637
1652
|
"vue/multi-word-component-names": "off",
|
|
@@ -1664,6 +1679,7 @@ async function vue(options = {}) {
|
|
|
1664
1679
|
"vue/prop-name-casing": ["error", "camelCase"],
|
|
1665
1680
|
"vue/require-default-prop": "off",
|
|
1666
1681
|
"vue/require-prop-types": "off",
|
|
1682
|
+
"vue/singleline-html-element-content-newline": "off",
|
|
1667
1683
|
"vue/space-infix-ops": "error",
|
|
1668
1684
|
"vue/space-unary-ops": ["error", { nonwords: false, words: true }],
|
|
1669
1685
|
...stylistic2 && {
|
|
@@ -1699,6 +1715,7 @@ async function vue(options = {}) {
|
|
|
1699
1715
|
"vue/space-in-parens": ["error", "never"],
|
|
1700
1716
|
"vue/template-curly-spacing": "error"
|
|
1701
1717
|
},
|
|
1718
|
+
"ts-eslint/no-unused-vars": "off",
|
|
1702
1719
|
...overrides
|
|
1703
1720
|
}
|
|
1704
1721
|
}
|
|
@@ -1725,7 +1742,6 @@ var jsx = () => {
|
|
|
1725
1742
|
// src/factory.ts
|
|
1726
1743
|
var ReactPackages = ["react", "react-dom"];
|
|
1727
1744
|
var VuePackages = ["vue", "nuxt", "vitepress", "@slidev/cli"];
|
|
1728
|
-
var resolveOptions = (option) => isObject(option) ? option : {};
|
|
1729
1745
|
var zayne = (options = {}, userConfigs = []) => {
|
|
1730
1746
|
const {
|
|
1731
1747
|
type = "app",
|
|
@@ -1734,6 +1750,7 @@ var zayne = (options = {}, userConfigs = []) => {
|
|
|
1734
1750
|
/* eslint-enable perfectionist/sort-objects -- I just want to put `type` at the beginning */
|
|
1735
1751
|
comments: enableComments = true,
|
|
1736
1752
|
componentExts = [],
|
|
1753
|
+
componentExtsTypeAware = [],
|
|
1737
1754
|
gitignore: enableGitignore = true,
|
|
1738
1755
|
imports: enableImports = true,
|
|
1739
1756
|
jsdoc: enableJsdoc = true,
|
|
@@ -1791,9 +1808,18 @@ var zayne = (options = {}, userConfigs = []) => {
|
|
|
1791
1808
|
sortTsconfig()
|
|
1792
1809
|
);
|
|
1793
1810
|
}
|
|
1811
|
+
if (enableVue) {
|
|
1812
|
+
componentExts.push("vue");
|
|
1813
|
+
componentExtsTypeAware.push("vue");
|
|
1814
|
+
}
|
|
1794
1815
|
if (enableTypeScript) {
|
|
1795
1816
|
configs.push(
|
|
1796
|
-
typescript({
|
|
1817
|
+
typescript({
|
|
1818
|
+
componentExts,
|
|
1819
|
+
componentExtsTypeAware,
|
|
1820
|
+
stylistic: isStylistic,
|
|
1821
|
+
...resolveOptions(enableTypeScript)
|
|
1822
|
+
})
|
|
1797
1823
|
);
|
|
1798
1824
|
}
|
|
1799
1825
|
if (restOfOptions.tailwindcss) {
|
|
@@ -1822,7 +1848,7 @@ var zayne = (options = {}, userConfigs = []) => {
|
|
|
1822
1848
|
configs.push(react({ typescript: isTypeAware, ...resolveOptions(enableReact) }));
|
|
1823
1849
|
}
|
|
1824
1850
|
if (enableVue) {
|
|
1825
|
-
configs.push(vue({
|
|
1851
|
+
configs.push(vue({ stylistic: isStylistic, ...resolveOptions(enableVue) }));
|
|
1826
1852
|
}
|
|
1827
1853
|
if ("files" in restOfOptions) {
|
|
1828
1854
|
throw new Error(
|
|
@@ -1837,6 +1863,6 @@ var zayne = (options = {}, userConfigs = []) => {
|
|
|
1837
1863
|
return composer;
|
|
1838
1864
|
};
|
|
1839
1865
|
|
|
1840
|
-
export { GLOB_ALL_SRC, GLOB_ASTRO, GLOB_ASTRO_TS, GLOB_CSS, GLOB_EXCLUDE, GLOB_GRAPHQL, GLOB_HTML, GLOB_JS, GLOB_JSON, GLOB_JSON5, GLOB_JSONC, GLOB_JSX, GLOB_LESS, GLOB_MARKDOWN, GLOB_MARKDOWN_CODE, GLOB_MARKDOWN_IN_MARKDOWN, GLOB_POSTCSS, GLOB_SCSS, GLOB_SRC, GLOB_SRC_EXT, GLOB_STYLES, GLOB_SVELTE, GLOB_SVG, GLOB_TESTS, GLOB_TOML, GLOB_TS, GLOB_TSX, GLOB_VUE, GLOB_XML, GLOB_YAML, combine, comments, ensurePackages, gitIgnores, ignores, imports, interopDefault, isObject, isPackageInScope, javascript, jsdoc, jsonc, node, perfectionist, react, renamePluginInConfigs, renamePlugins, renameRules, sortPackageJson, sortTsconfig, stylistic, tailwindcss, tanstack, toml, typescript, unicorn, vue, yaml, zayne };
|
|
1866
|
+
export { GLOB_ALL_SRC, GLOB_ASTRO, GLOB_ASTRO_TS, GLOB_CSS, GLOB_EXCLUDE, GLOB_GRAPHQL, GLOB_HTML, GLOB_JS, GLOB_JSON, GLOB_JSON5, GLOB_JSONC, GLOB_JSX, GLOB_LESS, GLOB_MARKDOWN, GLOB_MARKDOWN_CODE, GLOB_MARKDOWN_IN_MARKDOWN, GLOB_POSTCSS, GLOB_SCSS, GLOB_SRC, GLOB_SRC_EXT, GLOB_STYLES, GLOB_SVELTE, GLOB_SVG, GLOB_TESTS, GLOB_TOML, GLOB_TS, GLOB_TSX, GLOB_VUE, GLOB_XML, GLOB_YAML, combine, comments, ensurePackages, gitIgnores, ignores, imports, interopDefault, isObject, isPackageInScope, javascript, jsdoc, jsonc, node, perfectionist, react, renamePluginInConfigs, renamePlugins, renameRules, resolveOptions, sortPackageJson, sortTsconfig, stylistic, tailwindcss, tanstack, toml, typescript, unicorn, vue, yaml, zayne };
|
|
1841
1867
|
//# sourceMappingURL=index.js.map
|
|
1842
1868
|
//# sourceMappingURL=index.js.map
|