@unocss/eslint-config 0.56.1 → 0.56.2

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/flat.cjs CHANGED
@@ -6,13 +6,6 @@ function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'defau
6
6
 
7
7
  const plugin__default = /*#__PURE__*/_interopDefaultCompat(plugin);
8
8
 
9
- const flat = [
10
- {
11
- plugins: {
12
- unocss: plugin__default
13
- },
14
- rules: plugin__default.configs.recommended.rules
15
- }
16
- ];
9
+ const flat = plugin__default.configs.flat;
17
10
 
18
11
  module.exports = flat;
package/dist/flat.d.cts CHANGED
@@ -1,26 +1,17 @@
1
1
  declare const _default: {
2
- plugins: {
2
+ plugin: {
3
3
  unocss: {
4
4
  rules: {
5
5
  order: _typescript_eslint_utils_eslint_utils.RuleWithMeta<[], "">;
6
6
  'order-attributify': _typescript_eslint_utils_eslint_utils.RuleWithMeta<[], "">;
7
7
  blocklist: _typescript_eslint_utils_eslint_utils.RuleWithMeta<[], "">;
8
8
  };
9
- configs: {
10
- recommended: {
11
- plugins: string[];
12
- rules: {
13
- '@unocss/order': string;
14
- '@unocss/order-attributify': string;
15
- };
16
- };
17
- };
18
9
  };
19
10
  };
20
11
  rules: {
21
- '@unocss/order': string;
22
- '@unocss/order-attributify': string;
12
+ readonly 'unocss/order': "warn";
13
+ readonly 'unocss/order-attributify': "warn";
23
14
  };
24
- }[];
15
+ };
25
16
 
26
17
  export { _default as default };
package/dist/flat.d.mts CHANGED
@@ -1,26 +1,17 @@
1
1
  declare const _default: {
2
- plugins: {
2
+ plugin: {
3
3
  unocss: {
4
4
  rules: {
5
5
  order: _typescript_eslint_utils_eslint_utils.RuleWithMeta<[], "">;
6
6
  'order-attributify': _typescript_eslint_utils_eslint_utils.RuleWithMeta<[], "">;
7
7
  blocklist: _typescript_eslint_utils_eslint_utils.RuleWithMeta<[], "">;
8
8
  };
9
- configs: {
10
- recommended: {
11
- plugins: string[];
12
- rules: {
13
- '@unocss/order': string;
14
- '@unocss/order-attributify': string;
15
- };
16
- };
17
- };
18
9
  };
19
10
  };
20
11
  rules: {
21
- '@unocss/order': string;
22
- '@unocss/order-attributify': string;
12
+ readonly 'unocss/order': "warn";
13
+ readonly 'unocss/order-attributify': "warn";
23
14
  };
24
- }[];
15
+ };
25
16
 
26
17
  export { _default as default };
package/dist/flat.d.ts CHANGED
@@ -1,26 +1,17 @@
1
1
  declare const _default: {
2
- plugins: {
2
+ plugin: {
3
3
  unocss: {
4
4
  rules: {
5
5
  order: _typescript_eslint_utils_eslint_utils.RuleWithMeta<[], "">;
6
6
  'order-attributify': _typescript_eslint_utils_eslint_utils.RuleWithMeta<[], "">;
7
7
  blocklist: _typescript_eslint_utils_eslint_utils.RuleWithMeta<[], "">;
8
8
  };
9
- configs: {
10
- recommended: {
11
- plugins: string[];
12
- rules: {
13
- '@unocss/order': string;
14
- '@unocss/order-attributify': string;
15
- };
16
- };
17
- };
18
9
  };
19
10
  };
20
11
  rules: {
21
- '@unocss/order': string;
22
- '@unocss/order-attributify': string;
12
+ readonly 'unocss/order': "warn";
13
+ readonly 'unocss/order-attributify': "warn";
23
14
  };
24
- }[];
15
+ };
25
16
 
26
17
  export { _default as default };
package/dist/flat.mjs CHANGED
@@ -1,12 +1,5 @@
1
1
  import plugin from '@unocss/eslint-plugin';
2
2
 
3
- const flat = [
4
- {
5
- plugins: {
6
- unocss: plugin
7
- },
8
- rules: plugin.configs.recommended.rules
9
- }
10
- ];
3
+ const flat = plugin.configs.flat;
11
4
 
12
5
  export { flat as default };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unocss/eslint-config",
3
- "version": "0.56.1",
3
+ "version": "0.56.2",
4
4
  "description": "ESLint config for UnoCSS",
5
5
  "author": "Anthony Fu <anthonyfu117@hotmail.com>",
6
6
  "license": "MIT",
@@ -41,7 +41,7 @@
41
41
  "node": ">=14"
42
42
  },
43
43
  "dependencies": {
44
- "@unocss/eslint-plugin": "0.56.1"
44
+ "@unocss/eslint-plugin": "0.56.2"
45
45
  },
46
46
  "scripts": {
47
47
  "build": "unbuild",