@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.
Files changed (2) hide show
  1. package/dist/index.js +8 -8
  2. 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("@unocss/")) return [rule, value];
272
- else return [`@unocss/${rule}`, value];
271
+ if (rule.startsWith("unocss/")) return [rule, value];
272
+ else return [`unocss/${rule}`, value];
273
273
  });
274
274
  return {
275
- plugins: { "@unocss": plugin },
275
+ plugins: { unocss: plugin },
276
276
  rules: {
277
- "@unocss/blocklist": "off",
278
- "@unocss/enforce-class-compile": "off",
279
- "@unocss/order": "error",
280
- "@unocss/order-attributify": "off",
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
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tb-dev/eslint-config",
3
- "version": "10.0.2",
3
+ "version": "10.0.3",
4
4
  "description": "ESLint config",
5
5
  "license": "MIT",
6
6
  "type": "module",