@icebreakers/eslint-config 0.3.4 → 0.3.6

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.cjs CHANGED
@@ -2,13 +2,11 @@
2
2
 
3
3
  const eslintPluginPrettierRecommended = require('eslint-plugin-prettier/recommended');
4
4
  const localPkg = require('local-pkg');
5
- const tailwind = require('eslint-plugin-tailwindcss');
6
5
  const eslintConfig = require('@antfu/eslint-config');
7
6
 
8
7
  function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e.default : e; }
9
8
 
10
9
  const eslintPluginPrettierRecommended__default = /*#__PURE__*/_interopDefaultCompat(eslintPluginPrettierRecommended);
11
- const tailwind__default = /*#__PURE__*/_interopDefaultCompat(tailwind);
12
10
 
13
11
  function icebreaker(options = {}, ...userConfigs) {
14
12
  const {
@@ -23,7 +21,8 @@ function icebreaker(options = {}, ...userConfigs) {
23
21
  "curly": ["error", "all"],
24
22
  "no-console": ["warn"],
25
23
  "ts/prefer-ts-expect-error": "off",
26
- "ts/ban-ts-comment": "off"
24
+ "ts/ban-ts-comment": "off",
25
+ "vue/attribute-hyphenation": "off"
27
26
  }
28
27
  }
29
28
  ];
@@ -31,7 +30,19 @@ function icebreaker(options = {}, ...userConfigs) {
31
30
  presets.push(eslintPluginPrettierRecommended__default);
32
31
  }
33
32
  if (enableTailwindcss) {
34
- presets.push(...tailwind__default.configs["flat/recommended"]);
33
+ presets.push(
34
+ eslintConfig.interopDefault(
35
+ // @ts-ignore
36
+ import('eslint-plugin-tailwindcss')
37
+ ).then((tailwind) => {
38
+ return tailwind.configs["flat/recommended"];
39
+ })
40
+ );
41
+ presets.push({
42
+ rules: {
43
+ "tailwindcss/no-custom-classname": "off"
44
+ }
45
+ });
35
46
  }
36
47
  if (enableMDX) {
37
48
  presets.push(eslintConfig.interopDefault(import('eslint-plugin-mdx')).then((mdx) => {
package/dist/index.mjs CHANGED
@@ -1,6 +1,5 @@
1
1
  import eslintPluginPrettierRecommended from 'eslint-plugin-prettier/recommended';
2
2
  import { isPackageExists } from 'local-pkg';
3
- import tailwind from 'eslint-plugin-tailwindcss';
4
3
  import { interopDefault, antfu } from '@antfu/eslint-config';
5
4
 
6
5
  function icebreaker(options = {}, ...userConfigs) {
@@ -16,7 +15,8 @@ function icebreaker(options = {}, ...userConfigs) {
16
15
  "curly": ["error", "all"],
17
16
  "no-console": ["warn"],
18
17
  "ts/prefer-ts-expect-error": "off",
19
- "ts/ban-ts-comment": "off"
18
+ "ts/ban-ts-comment": "off",
19
+ "vue/attribute-hyphenation": "off"
20
20
  }
21
21
  }
22
22
  ];
@@ -24,7 +24,19 @@ function icebreaker(options = {}, ...userConfigs) {
24
24
  presets.push(eslintPluginPrettierRecommended);
25
25
  }
26
26
  if (enableTailwindcss) {
27
- presets.push(...tailwind.configs["flat/recommended"]);
27
+ presets.push(
28
+ interopDefault(
29
+ // @ts-ignore
30
+ import('eslint-plugin-tailwindcss')
31
+ ).then((tailwind) => {
32
+ return tailwind.configs["flat/recommended"];
33
+ })
34
+ );
35
+ presets.push({
36
+ rules: {
37
+ "tailwindcss/no-custom-classname": "off"
38
+ }
39
+ });
28
40
  }
29
41
  if (enableMDX) {
30
42
  presets.push(interopDefault(import('eslint-plugin-mdx')).then((mdx) => {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@icebreakers/eslint-config",
3
3
  "type": "module",
4
- "version": "0.3.4",
4
+ "version": "0.3.6",
5
5
  "description": "icebreakers's eslint config",
6
6
  "author": "SonOfMagic <qq1324318532@gmail.com>",
7
7
  "license": "MIT",
@@ -33,7 +33,7 @@
33
33
  "dist"
34
34
  ],
35
35
  "dependencies": {
36
- "@antfu/eslint-config": "2.19.1",
36
+ "@antfu/eslint-config": "2.20.0",
37
37
  "eslint-config-prettier": "^9.1.0",
38
38
  "eslint-plugin-mdx": "^3.1.5",
39
39
  "eslint-plugin-prettier": "^5.1.3",