@lincy/eslint-config 3.0.3 → 3.0.5

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.
Files changed (2) hide show
  1. package/dist/index.js +13 -4
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1109,9 +1109,9 @@ function vue(options = {}) {
1109
1109
  ...default14.configs["vue3-strongly-recommended"].rules,
1110
1110
  ...default14.configs["vue3-recommended"].rules
1111
1111
  } : {
1112
- ...default14.configs["essential"].rules,
1112
+ ...default14.configs.essential.rules,
1113
1113
  ...default14.configs["strongly-recommended"].rules,
1114
- ...default14.configs["recommended"].rules
1114
+ ...default14.configs.recommended.rules
1115
1115
  },
1116
1116
  "vue/array-bracket-spacing": ["error", "never"],
1117
1117
  "vue/arrow-spacing": ["error", { after: true, before: true }],
@@ -1129,13 +1129,21 @@ function vue(options = {}) {
1129
1129
  "vue/comma-style": ["error", "last"],
1130
1130
  "vue/component-name-in-template-casing": ["error", "PascalCase"],
1131
1131
  "vue/component-options-name-casing": ["error", "PascalCase"],
1132
- "vue/custom-event-name-casing": ["error", "camelCase"],
1132
+ "vue/custom-event-name-casing": vueVersion === "3" ? ["error", "camelCase"] : ["error", "kebab-case"],
1133
+ ...vueVersion === "2" ? { "vue/require-explicit-emits": "off" } : null,
1133
1134
  "vue/define-macros-order": ["error", {
1134
1135
  order: ["defineOptions", "defineProps", "defineEmits", "defineSlots"]
1135
1136
  }],
1136
1137
  "vue/dot-location": ["error", "property"],
1137
1138
  "vue/dot-notation": ["error", { allowKeywords: true }],
1138
1139
  "vue/eqeqeq": ["error", "smart"],
1140
+ "vue/html-indent": ["error", 4, {
1141
+ attribute: 1,
1142
+ baseIndent: 1,
1143
+ closeBracket: 0,
1144
+ alignAttributesVertically: true,
1145
+ ignores: []
1146
+ }],
1139
1147
  "vue/html-comment-content-spacing": ["error", "always", {
1140
1148
  exceptions: ["-"]
1141
1149
  }],
@@ -1184,7 +1192,8 @@ function vue(options = {}) {
1184
1192
  "vue/space-in-parens": ["error", "never"],
1185
1193
  "vue/space-infix-ops": "error",
1186
1194
  "vue/space-unary-ops": ["error", { nonwords: false, words: true }],
1187
- "vue/template-curly-spacing": "error"
1195
+ "vue/template-curly-spacing": "error",
1196
+ "vue/singleline-html-element-content-newline": "off"
1188
1197
  }
1189
1198
  }
1190
1199
  ];
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@lincy/eslint-config",
3
3
  "type": "module",
4
- "version": "3.0.3",
4
+ "version": "3.0.5",
5
5
  "packageManager": "pnpm@8.7.6",
6
6
  "description": "LinCenYing's ESLint config",
7
7
  "author": "LinCenYing <lincenying@gmail.com> (https://github.com/lincenying/)",