@icebreakers/eslint-config 6.0.0 → 7.0.0
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/README.md +6 -3
- package/README.zh.md +6 -3
- package/dist/{dist-Cfcd4odI.cjs → dist-BL_Srtot.cjs} +530 -466
- package/dist/{dist-DTWNkNCv.js → dist-CfNAWugK.js} +530 -466
- package/dist/index.cjs +68 -34
- package/dist/index.d.cts +26 -6
- package/dist/index.d.ts +26 -6
- package/dist/index.js +66 -32
- package/dist/{lib-CcedSpss.cjs → lib-ADc7sTOW.cjs} +104 -104
- package/dist/{lib-BOuqso-8.js → lib-BiNYUSxy.js} +104 -104
- package/dist/{modern-y8Mo-zyc.cjs → modern-Dnpu3mfI.cjs} +2 -2
- package/dist/{modern-CoGNcL7O.js → modern-RpY8mk7x.js} +2 -2
- package/index.d.ts +6 -2
- package/package.json +14 -10
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
let _typescript_eslint_utils = require("@typescript-eslint/utils");
|
|
2
|
-
//#region ../../node_modules/.pnpm/@tanstack+eslint-plugin-query@5.101.
|
|
2
|
+
//#region ../../node_modules/.pnpm/@tanstack+eslint-plugin-query@5.101.2_eslint@10.6.0_jiti@2.7.0__typescript@6.0.3/node_modules/@tanstack/eslint-plugin-query/build/modern/chunk-VALYN6GR.js
|
|
3
3
|
function uniqueBy(arr, fn) {
|
|
4
4
|
return arr.filter((x, i, a) => a.findIndex((y) => fn(x) === fn(y)) === i);
|
|
5
5
|
}
|
|
@@ -1176,7 +1176,7 @@ var rules = {
|
|
|
1176
1176
|
[name8]: rule8
|
|
1177
1177
|
};
|
|
1178
1178
|
//#endregion
|
|
1179
|
-
//#region ../../node_modules/.pnpm/@tanstack+eslint-plugin-query@5.101.
|
|
1179
|
+
//#region ../../node_modules/.pnpm/@tanstack+eslint-plugin-query@5.101.2_eslint@10.6.0_jiti@2.7.0__typescript@6.0.3/node_modules/@tanstack/eslint-plugin-query/build/modern/index.js
|
|
1180
1180
|
var recommendedRules = {
|
|
1181
1181
|
"@tanstack/query/exhaustive-deps": "error",
|
|
1182
1182
|
"@tanstack/query/no-rest-destructuring": "warn",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AST_NODE_TYPES, ESLintUtils, TSESTree } from "@typescript-eslint/utils";
|
|
2
|
-
//#region ../../node_modules/.pnpm/@tanstack+eslint-plugin-query@5.101.
|
|
2
|
+
//#region ../../node_modules/.pnpm/@tanstack+eslint-plugin-query@5.101.2_eslint@10.6.0_jiti@2.7.0__typescript@6.0.3/node_modules/@tanstack/eslint-plugin-query/build/modern/chunk-VALYN6GR.js
|
|
3
3
|
function uniqueBy(arr, fn) {
|
|
4
4
|
return arr.filter((x, i, a) => a.findIndex((y) => fn(x) === fn(y)) === i);
|
|
5
5
|
}
|
|
@@ -1176,7 +1176,7 @@ var rules = {
|
|
|
1176
1176
|
[name8]: rule8
|
|
1177
1177
|
};
|
|
1178
1178
|
//#endregion
|
|
1179
|
-
//#region ../../node_modules/.pnpm/@tanstack+eslint-plugin-query@5.101.
|
|
1179
|
+
//#region ../../node_modules/.pnpm/@tanstack+eslint-plugin-query@5.101.2_eslint@10.6.0_jiti@2.7.0__typescript@6.0.3/node_modules/@tanstack/eslint-plugin-query/build/modern/index.js
|
|
1180
1180
|
var recommendedRules = {
|
|
1181
1181
|
"@tanstack/query/exhaustive-deps": "error",
|
|
1182
1182
|
"@tanstack/query/no-rest-destructuring": "warn",
|
package/index.d.ts
CHANGED
|
@@ -8,13 +8,16 @@ import type { IcebreakerStylelintOptions } from '@icebreakers/stylelint-config'
|
|
|
8
8
|
import type { Linter } from 'eslint'
|
|
9
9
|
import type { FlatConfigComposer } from 'eslint-flat-config-utils'
|
|
10
10
|
|
|
11
|
-
export interface
|
|
11
|
+
export interface BetterTailwindcssOption {
|
|
12
12
|
entryPoint?: string
|
|
13
|
+
files?: string[]
|
|
14
|
+
rules?: 'syntax' | 'recommended'
|
|
13
15
|
cwd?: string
|
|
14
16
|
tailwindConfig?: string
|
|
15
17
|
}
|
|
16
18
|
|
|
17
|
-
export type
|
|
19
|
+
export type BetterTailwindcssConfig = boolean | BetterTailwindcssOption
|
|
20
|
+
export type TailwindcssConfig = boolean
|
|
18
21
|
export interface UnocssOption {
|
|
19
22
|
configPath?: string
|
|
20
23
|
attributify?: boolean
|
|
@@ -29,6 +32,7 @@ export type StylelintBridgeConfig = boolean | StylelintBridgeOption
|
|
|
29
32
|
export type UserDefinedOptions = Omit<OptionsConfig, 'unocss'> & TypedFlatConfigItem & {
|
|
30
33
|
miniProgram?: boolean
|
|
31
34
|
tailwindcss?: TailwindcssConfig
|
|
35
|
+
betterTailwindcss?: BetterTailwindcssConfig
|
|
32
36
|
unocss?: UnocssConfig
|
|
33
37
|
stylelint?: StylelintBridgeConfig
|
|
34
38
|
mdx?: boolean
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@icebreakers/eslint-config",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "
|
|
4
|
+
"version": "7.0.0",
|
|
5
5
|
"description": "ESLint preset from Icebreaker's dev-configs",
|
|
6
6
|
"author": "ice breaker <1324318532@qq.com>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -42,28 +42,32 @@
|
|
|
42
42
|
"node": ">=22.12.0"
|
|
43
43
|
},
|
|
44
44
|
"peerDependencies": {
|
|
45
|
-
"eslint-plugin-pnpm": "^1.6.0"
|
|
45
|
+
"eslint-plugin-pnpm": "^1.6.0",
|
|
46
|
+
"tailwindcss": "^3.3.0 || ^4.1.17"
|
|
46
47
|
},
|
|
47
48
|
"peerDependenciesMeta": {
|
|
48
49
|
"eslint-plugin-pnpm": {
|
|
49
50
|
"optional": true
|
|
51
|
+
},
|
|
52
|
+
"tailwindcss": {
|
|
53
|
+
"optional": true
|
|
50
54
|
}
|
|
51
55
|
},
|
|
52
56
|
"dependencies": {
|
|
53
57
|
"@antfu/eslint-config": "9.1.0",
|
|
54
|
-
"@eslint-react/eslint-plugin": "^5.
|
|
55
|
-
"@typescript-eslint/rule-tester": "^8.62.
|
|
56
|
-
"@typescript-eslint/typescript-estree": "^8.62.
|
|
57
|
-
"@typescript-eslint/utils": "^8.62.
|
|
58
|
+
"@eslint-react/eslint-plugin": "^5.11.2",
|
|
59
|
+
"@typescript-eslint/rule-tester": "^8.62.1",
|
|
60
|
+
"@typescript-eslint/typescript-estree": "^8.62.1",
|
|
61
|
+
"@typescript-eslint/utils": "^8.62.1",
|
|
58
62
|
"@vue/compiler-sfc": "^3.5.39",
|
|
59
63
|
"eslint-flat-config-utils": "3.2.0",
|
|
60
|
-
"eslint-plugin-better-tailwindcss": "^4.6.
|
|
64
|
+
"eslint-plugin-better-tailwindcss": "^4.6.1",
|
|
61
65
|
"eslint-plugin-format": "2.0.1",
|
|
62
66
|
"eslint-plugin-react-hooks": "^7.1.1",
|
|
63
67
|
"eslint-plugin-react-refresh": "^0.5.3",
|
|
64
|
-
"eslint-plugin-tailwindcss": "4.0.
|
|
65
|
-
"
|
|
66
|
-
"
|
|
68
|
+
"eslint-plugin-tailwindcss": "4.0.6",
|
|
69
|
+
"eslint-plugin-better-stylelint": "2.0.0",
|
|
70
|
+
"@icebreakers/stylelint-config": "5.0.1"
|
|
67
71
|
},
|
|
68
72
|
"publishConfig": {
|
|
69
73
|
"access": "public",
|