@tb-dev/eslint-config 10.0.2 → 10.0.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.js +8 -8
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -266,18 +266,18 @@ async function vue(options) {
|
|
|
266
266
|
//#region src/lib/unocss.ts
|
|
267
267
|
async function unocss(options) {
|
|
268
268
|
if (!isEnabled(options.features, "unocss")) return {};
|
|
269
|
-
const plugin = await interopDefault(import("@unocss/eslint-config/flat"));
|
|
269
|
+
const plugin = (await interopDefault(import("@unocss/eslint-config/flat"))).plugins?.unocss;
|
|
270
270
|
const overrides = mapRules(options.overrides?.unocss ?? {}, (rule, value) => {
|
|
271
|
-
if (rule.startsWith("
|
|
272
|
-
else return [
|
|
271
|
+
if (rule.startsWith("unocss/")) return [rule, value];
|
|
272
|
+
else return [`unocss/${rule}`, value];
|
|
273
273
|
});
|
|
274
274
|
return {
|
|
275
|
-
plugins: {
|
|
275
|
+
plugins: { unocss: plugin },
|
|
276
276
|
rules: {
|
|
277
|
-
"
|
|
278
|
-
"
|
|
279
|
-
"
|
|
280
|
-
"
|
|
277
|
+
"unocss/blocklist": "off",
|
|
278
|
+
"unocss/enforce-class-compile": "off",
|
|
279
|
+
"unocss/order": "error",
|
|
280
|
+
"unocss/order-attributify": "off",
|
|
281
281
|
...overrides
|
|
282
282
|
}
|
|
283
283
|
};
|