eslint-config-un 0.1.5 → 0.1.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 +6 -5
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +6 -5
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1070,9 +1070,10 @@ var vueEslintConfig = (options, internalOptions = {}) => {
|
|
|
1070
1070
|
const isLess2_6 = isVue2 && vueMajorAndMinorVersion < 2.6;
|
|
1071
1071
|
const isLess3_1 = vueMajorAndMinorVersion < 3.1;
|
|
1072
1072
|
const isNuxtEnabled = Boolean(options.nuxtMajorVersion);
|
|
1073
|
-
const recommendedRules = import_eslint_plugin_vue.default.configs[isVue3 ? "flat/recommended" : "flat/vue2-recommended"].
|
|
1074
|
-
(
|
|
1075
|
-
|
|
1073
|
+
const recommendedRules = import_eslint_plugin_vue.default.configs[isVue3 ? "flat/recommended" : "flat/vue2-recommended"].reduce(
|
|
1074
|
+
(result, config) => Object.assign(result, config.rules),
|
|
1075
|
+
{}
|
|
1076
|
+
);
|
|
1076
1077
|
const nuxtLayoutsFilesGlob = joinPaths([options.nuxtOrVueProjectDir, "layouts/**/*.vue"]);
|
|
1077
1078
|
const builder = new ConfigEntryBuilder(options, internalOptions);
|
|
1078
1079
|
builder.addConfig("vue/setup", {
|
|
@@ -1288,8 +1289,8 @@ var yamlEslintConfig = (options = {}, internalOptions = {}) => {
|
|
|
1288
1289
|
(result, config) => Object.assign(result, config.rules),
|
|
1289
1290
|
{}
|
|
1290
1291
|
)
|
|
1291
|
-
).addRule("yml/block-mapping-colon-indicator-newline", ERROR).addRule("yml/file-extension", ERROR, [{ extension: options.enforceExtension ?? "yml" }]).addRule("yml/indent", ERROR).addRule("yml/key-name-casing", ERROR, [
|
|
1292
|
-
{
|
|
1292
|
+
).addRule("yml/block-mapping-colon-indicator-newline", ERROR).addRule("yml/file-extension", ERROR, [{ extension: options.enforceExtension ?? "yml" }]).addRule("yml/indent", ERROR).addRule("yml/key-name-casing", options.casing == null ? OFF : ERROR, [
|
|
1293
|
+
{ ...options.casing, ignores: ["<<", ...options.casing?.ignores || []] }
|
|
1293
1294
|
]).addRule("yml/quotes", options.quotes === false ? OFF : ERROR, [
|
|
1294
1295
|
{ prefer: options.quotes || "single" }
|
|
1295
1296
|
]).addRule("yml/no-multiple-empty-lines", ERROR).addRule("yml/spaced-comment", ERROR).addOverrides();
|
package/dist/index.d.cts
CHANGED
|
@@ -238,8 +238,8 @@ interface YamlEslintConfigOptions extends ConfigSharedOptions<'yml'> {
|
|
|
238
238
|
enforceExtension?: (GetRuleOptions<'yml/file-extension'>[0] & {})['extension'];
|
|
239
239
|
doNotIgnoreFilesByDefault?: Partial<Record<(typeof DEFAULT_FILES_TO_IGNORE)[number], boolean>>;
|
|
240
240
|
/**
|
|
241
|
-
*
|
|
242
|
-
*
|
|
241
|
+
* Enforce a specific casing style for keys. It is not enforced by default, but passing an empty object here will enforce `camelCase` style (default value for this rule).
|
|
242
|
+
* If present, `ignores` values will be merged with `<<`
|
|
243
243
|
*/
|
|
244
244
|
casing?: GetRuleOptions<'yml/key-name-casing'>[0] & {};
|
|
245
245
|
/**
|
package/dist/index.d.ts
CHANGED
|
@@ -238,8 +238,8 @@ interface YamlEslintConfigOptions extends ConfigSharedOptions<'yml'> {
|
|
|
238
238
|
enforceExtension?: (GetRuleOptions<'yml/file-extension'>[0] & {})['extension'];
|
|
239
239
|
doNotIgnoreFilesByDefault?: Partial<Record<(typeof DEFAULT_FILES_TO_IGNORE)[number], boolean>>;
|
|
240
240
|
/**
|
|
241
|
-
*
|
|
242
|
-
*
|
|
241
|
+
* Enforce a specific casing style for keys. It is not enforced by default, but passing an empty object here will enforce `camelCase` style (default value for this rule).
|
|
242
|
+
* If present, `ignores` values will be merged with `<<`
|
|
243
243
|
*/
|
|
244
244
|
casing?: GetRuleOptions<'yml/key-name-casing'>[0] & {};
|
|
245
245
|
/**
|
package/dist/index.js
CHANGED
|
@@ -1059,9 +1059,10 @@ var vueEslintConfig = (options, internalOptions = {}) => {
|
|
|
1059
1059
|
const isLess2_6 = isVue2 && vueMajorAndMinorVersion < 2.6;
|
|
1060
1060
|
const isLess3_1 = vueMajorAndMinorVersion < 3.1;
|
|
1061
1061
|
const isNuxtEnabled = Boolean(options.nuxtMajorVersion);
|
|
1062
|
-
const recommendedRules = eslintPluginVue.configs[isVue3 ? "flat/recommended" : "flat/vue2-recommended"].
|
|
1063
|
-
(
|
|
1064
|
-
|
|
1062
|
+
const recommendedRules = eslintPluginVue.configs[isVue3 ? "flat/recommended" : "flat/vue2-recommended"].reduce(
|
|
1063
|
+
(result, config) => Object.assign(result, config.rules),
|
|
1064
|
+
{}
|
|
1065
|
+
);
|
|
1065
1066
|
const nuxtLayoutsFilesGlob = joinPaths([options.nuxtOrVueProjectDir, "layouts/**/*.vue"]);
|
|
1066
1067
|
const builder = new ConfigEntryBuilder(options, internalOptions);
|
|
1067
1068
|
builder.addConfig("vue/setup", {
|
|
@@ -1277,8 +1278,8 @@ var yamlEslintConfig = (options = {}, internalOptions = {}) => {
|
|
|
1277
1278
|
(result, config) => Object.assign(result, config.rules),
|
|
1278
1279
|
{}
|
|
1279
1280
|
)
|
|
1280
|
-
).addRule("yml/block-mapping-colon-indicator-newline", ERROR).addRule("yml/file-extension", ERROR, [{ extension: options.enforceExtension ?? "yml" }]).addRule("yml/indent", ERROR).addRule("yml/key-name-casing", ERROR, [
|
|
1281
|
-
{
|
|
1281
|
+
).addRule("yml/block-mapping-colon-indicator-newline", ERROR).addRule("yml/file-extension", ERROR, [{ extension: options.enforceExtension ?? "yml" }]).addRule("yml/indent", ERROR).addRule("yml/key-name-casing", options.casing == null ? OFF : ERROR, [
|
|
1282
|
+
{ ...options.casing, ignores: ["<<", ...options.casing?.ignores || []] }
|
|
1282
1283
|
]).addRule("yml/quotes", options.quotes === false ? OFF : ERROR, [
|
|
1283
1284
|
{ prefer: options.quotes || "single" }
|
|
1284
1285
|
]).addRule("yml/no-multiple-empty-lines", ERROR).addRule("yml/spaced-comment", ERROR).addOverrides();
|