@vinicunca/eslint-config 2.0.0-beta.5 → 2.0.0-beta.6
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.cjs +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1604,7 +1604,7 @@ var VuePackages = [
|
|
|
1604
1604
|
"vitepress",
|
|
1605
1605
|
"@slidev/cli"
|
|
1606
1606
|
];
|
|
1607
|
-
function vinicuncaESLint({ options = {}, userConfigs = [] }) {
|
|
1607
|
+
function vinicuncaESLint({ options = {}, userConfigs = [] } = {}) {
|
|
1608
1608
|
const {
|
|
1609
1609
|
isInEditor = !!((import_node_process2.default.env.VSCODE_PID || import_node_process2.default.env.JETBRAINS_IDE) && !import_node_process2.default.env.CI),
|
|
1610
1610
|
vue: enableVue = VuePackages.some((i) => (0, import_local_pkg.isPackageExists)(i)),
|
package/dist/index.d.cts
CHANGED
|
@@ -151,9 +151,9 @@ interface OptionsHasTypeScript {
|
|
|
151
151
|
typescript?: boolean;
|
|
152
152
|
}
|
|
153
153
|
|
|
154
|
-
declare function vinicuncaESLint({ options, userConfigs }
|
|
154
|
+
declare function vinicuncaESLint({ options, userConfigs }?: {
|
|
155
155
|
options?: OptionsConfig;
|
|
156
|
-
userConfigs
|
|
156
|
+
userConfigs?: (FlatESLintConfigItem | FlatESLintConfigItem[])[];
|
|
157
157
|
}): eslint_define_config.FlatESLintConfigItem[];
|
|
158
158
|
|
|
159
159
|
declare function comments(): FlatESLintConfigItem[];
|
package/dist/index.d.ts
CHANGED
|
@@ -151,9 +151,9 @@ interface OptionsHasTypeScript {
|
|
|
151
151
|
typescript?: boolean;
|
|
152
152
|
}
|
|
153
153
|
|
|
154
|
-
declare function vinicuncaESLint({ options, userConfigs }
|
|
154
|
+
declare function vinicuncaESLint({ options, userConfigs }?: {
|
|
155
155
|
options?: OptionsConfig;
|
|
156
|
-
userConfigs
|
|
156
|
+
userConfigs?: (FlatESLintConfigItem | FlatESLintConfigItem[])[];
|
|
157
157
|
}): eslint_define_config.FlatESLintConfigItem[];
|
|
158
158
|
|
|
159
159
|
declare function comments(): FlatESLintConfigItem[];
|
package/dist/index.js
CHANGED
|
@@ -1512,7 +1512,7 @@ var VuePackages = [
|
|
|
1512
1512
|
"vitepress",
|
|
1513
1513
|
"@slidev/cli"
|
|
1514
1514
|
];
|
|
1515
|
-
function vinicuncaESLint({ options = {}, userConfigs = [] }) {
|
|
1515
|
+
function vinicuncaESLint({ options = {}, userConfigs = [] } = {}) {
|
|
1516
1516
|
const {
|
|
1517
1517
|
isInEditor = !!((process2.env.VSCODE_PID || process2.env.JETBRAINS_IDE) && !process2.env.CI),
|
|
1518
1518
|
vue: enableVue = VuePackages.some((i) => isPackageExists(i)),
|