@fullstacksjs/eslint-config 11.1.22 → 11.1.23

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.
@@ -6,12 +6,10 @@ Object.defineProperty(exports, "__esModule", {
6
6
 
7
7
  /** @return { Promise<import('eslint').Linter.Config> } */
8
8
  async function tailwind() {
9
- const {
10
- default: tailwindcss
11
- } = await Promise.resolve().then(() => require('eslint-plugin-tailwindcss'));
9
+ const plugin = await Promise.resolve().then(() => require('eslint-plugin-tailwindcss'));
12
10
  return {
13
11
  plugins: {
14
- tailwindcss
12
+ tailwindcss: plugin.default ?? plugin
15
13
  },
16
14
  rules: {
17
15
  'tailwindcss/classnames-order': 'warn',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fullstacksjs/eslint-config",
3
- "version": "11.1.22",
3
+ "version": "11.1.23",
4
4
  "license": "MIT",
5
5
  "author": "fullstacks <fullstacksjs@gmail.com>",
6
6
  "description": "fullstacks eslint config",
@@ -1,8 +1,8 @@
1
1
  /** @return { Promise<import('eslint').Linter.Config> } */
2
2
  async function tailwind() {
3
- const { default: tailwindcss } = await import('eslint-plugin-tailwindcss');
3
+ const plugin = await import('eslint-plugin-tailwindcss');
4
4
  return {
5
- plugins: { tailwindcss },
5
+ plugins: { tailwindcss: plugin.default ?? plugin },
6
6
  rules: {
7
7
  'tailwindcss/classnames-order': 'warn',
8
8
  'tailwindcss/enforces-negative-arbitrary-values': 'warn',