@coderwyd/eslint-config 2.7.1 → 2.7.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/cli.cjs CHANGED
@@ -37,20 +37,19 @@ var import_helpers = require("yargs/helpers");
37
37
  var import_picocolors = __toESM(require("picocolors"), 1);
38
38
 
39
39
  // package.json
40
- var version = "2.7.1";
40
+ var version = "2.7.2";
41
41
  var devDependencies = {
42
42
  "@antfu/ni": "^0.23.0",
43
- "@eslint-react/eslint-plugin": "^1.13.0",
43
+ "@eslint-react/eslint-plugin": "^1.14.1",
44
44
  "@eslint/config-inspector": "^0.5.4",
45
- "@stylistic/eslint-plugin-migrate": "^2.7.2",
46
- "@types/eslint": "^9.6.1",
45
+ "@stylistic/eslint-plugin-migrate": "^2.8.0",
47
46
  "@types/fs-extra": "^11.0.4",
48
47
  "@types/node": "^22.5.4",
49
48
  "@types/prompts": "^2.4.9",
50
49
  "@types/yargs": "^17.0.33",
51
50
  "@unocss/eslint-plugin": "^0.62.3",
52
51
  bumpp: "^9.5.2",
53
- eslint: "^9.9.1",
52
+ eslint: "^9.10.0",
54
53
  "eslint-plugin-react-hooks": "^4.6.2",
55
54
  "eslint-plugin-react-refresh": "^0.4.11",
56
55
  "eslint-plugin-svelte": "2.43.0",
@@ -65,8 +64,8 @@ var devDependencies = {
65
64
  svelte: "^4.2.19",
66
65
  "svelte-eslint-parser": "^0.41.0",
67
66
  tsup: "^8.2.4",
68
- tsx: "^4.19.0",
69
- typescript: "^5.5.4"
67
+ tsx: "^4.19.1",
68
+ typescript: "^5.6.2"
70
69
  };
71
70
 
72
71
  // src/cli/constants.ts
package/dist/cli.js CHANGED
@@ -8,20 +8,19 @@ import { hideBin } from "yargs/helpers";
8
8
  import c from "picocolors";
9
9
 
10
10
  // package.json
11
- var version = "2.7.1";
11
+ var version = "2.7.2";
12
12
  var devDependencies = {
13
13
  "@antfu/ni": "^0.23.0",
14
- "@eslint-react/eslint-plugin": "^1.13.0",
14
+ "@eslint-react/eslint-plugin": "^1.14.1",
15
15
  "@eslint/config-inspector": "^0.5.4",
16
- "@stylistic/eslint-plugin-migrate": "^2.7.2",
17
- "@types/eslint": "^9.6.1",
16
+ "@stylistic/eslint-plugin-migrate": "^2.8.0",
18
17
  "@types/fs-extra": "^11.0.4",
19
18
  "@types/node": "^22.5.4",
20
19
  "@types/prompts": "^2.4.9",
21
20
  "@types/yargs": "^17.0.33",
22
21
  "@unocss/eslint-plugin": "^0.62.3",
23
22
  bumpp: "^9.5.2",
24
- eslint: "^9.9.1",
23
+ eslint: "^9.10.0",
25
24
  "eslint-plugin-react-hooks": "^4.6.2",
26
25
  "eslint-plugin-react-refresh": "^0.4.11",
27
26
  "eslint-plugin-svelte": "2.43.0",
@@ -36,8 +35,8 @@ var devDependencies = {
36
35
  svelte: "^4.2.19",
37
36
  "svelte-eslint-parser": "^0.41.0",
38
37
  tsup: "^8.2.4",
39
- tsx: "^4.19.0",
40
- typescript: "^5.5.4"
38
+ tsx: "^4.19.1",
39
+ typescript: "^5.6.2"
41
40
  };
42
41
 
43
42
  // src/cli/constants.ts
package/dist/index.cjs CHANGED
@@ -48,7 +48,7 @@ __export(src_exports, {
48
48
  });
49
49
  module.exports = __toCommonJS(src_exports);
50
50
 
51
- // node_modules/.pnpm/tsup@8.2.4_jiti@1.21.6_postcss@8.4.39_tsx@4.19.0_typescript@5.5.4_yaml@2.5.0/node_modules/tsup/assets/cjs_shims.js
51
+ // node_modules/.pnpm/tsup@8.2.4_jiti@1.21.6_postcss@8.4.39_tsx@4.19.1_typescript@5.6.2_yaml@2.5.0/node_modules/tsup/assets/cjs_shims.js
52
52
  var getImportMetaUrl = () => typeof document === "undefined" ? new URL(`file:${__filename}`).href : document.currentScript && document.currentScript.src || new URL("main.js", document.baseURI).href;
53
53
  var importMetaUrl = /* @__PURE__ */ getImportMetaUrl();
54
54
 
@@ -162,8 +162,7 @@ function disables() {
162
162
  name: "coderwyd/disables/scripts",
163
163
  rules: {
164
164
  "no-console": "off",
165
- "ts/explicit-function-return-type": "off",
166
- "unicorn/consistent-function-scoping": "off"
165
+ "ts/explicit-function-return-type": "off"
167
166
  }
168
167
  },
169
168
  {
@@ -1512,7 +1511,6 @@ async function test(options = {}) {
1512
1511
  "test/prefer-hooks-in-order": "error",
1513
1512
  "test/prefer-lowercase-title": "error",
1514
1513
  "ts/explicit-function-return-type": "off",
1515
- "unicorn/consistent-function-scoping": "off",
1516
1514
  ...overrides
1517
1515
  }
1518
1516
  }
@@ -1680,7 +1678,6 @@ function unicorn() {
1680
1678
  // 'unicorn/better-regex': 'error',
1681
1679
  "unicorn/catch-error-name": "error",
1682
1680
  "unicorn/consistent-empty-array-spread": "error",
1683
- "unicorn/consistent-function-scoping": ["error", { checkArrowFunctions: false }],
1684
1681
  "unicorn/custom-error-definition": "error",
1685
1682
  "unicorn/error-message": "error",
1686
1683
  // 'unicorn/explicit-length-check': 'error',
package/dist/index.d.cts CHANGED
@@ -3311,7 +3311,7 @@ interface RuleOptions {
3311
3311
  * Enforce the use of `u` or `v` flag on RegExp
3312
3312
  * @see https://eslint.org/docs/latest/rules/require-unicode-regexp
3313
3313
  */
3314
- 'require-unicode-regexp'?: Linter.RuleEntry<[]>
3314
+ 'require-unicode-regexp'?: Linter.RuleEntry<RequireUnicodeRegexp>
3315
3315
  /**
3316
3316
  * Require generator functions to contain `yield`
3317
3317
  * @see https://eslint.org/docs/latest/rules/require-yield
@@ -7195,7 +7195,7 @@ type AccessorPairs = []|[{
7195
7195
  // ----- antfu/consistent-chaining -----
7196
7196
  type AntfuConsistentChaining = []|[{
7197
7197
 
7198
- allowFirstPropertyAccess?: boolean
7198
+ allowLeadingPropertyAccess?: boolean
7199
7199
  }]
7200
7200
  // ----- antfu/consistent-list-newline -----
7201
7201
  type AntfuConsistentListNewline = []|[{
@@ -9820,6 +9820,8 @@ type _PerfectionistSortImportsSortImports = (_PerfectionistSortImportsMaxLineLen
9820
9820
 
9821
9821
  internalPattern?: string[]
9822
9822
 
9823
+ sortSideEffects?: boolean
9824
+
9823
9825
  newlinesBetween?: ("ignore" | "always" | "never")
9824
9826
 
9825
9827
  maxLineLength?: number
@@ -10255,6 +10257,10 @@ type RegexpUnicodeProperty = []|[{
10255
10257
  type RequireAtomicUpdates = []|[{
10256
10258
  allowProperties?: boolean
10257
10259
  }]
10260
+ // ----- require-unicode-regexp -----
10261
+ type RequireUnicodeRegexp = []|[{
10262
+ requireFlag?: ("u" | "v")
10263
+ }]
10258
10264
  // ----- rest-spread-spacing -----
10259
10265
  type RestSpreadSpacing = []|[("always" | "never")]
10260
10266
  // ----- semi -----
@@ -10467,6 +10473,7 @@ type StyleIndent = []|[("tab" | number)]|[("tab" | number), {
10467
10473
  offsetTernaryExpressions?: boolean
10468
10474
  ignoredNodes?: string[]
10469
10475
  ignoreComments?: boolean
10476
+ tabLength?: number
10470
10477
  }]
10471
10478
  // ----- style/indent-binary-ops -----
10472
10479
  type StyleIndentBinaryOps = []|[(number | "tab")]
@@ -10841,6 +10848,10 @@ type StyleKeywordSpacing = []|[{
10841
10848
  before?: boolean
10842
10849
  after?: boolean
10843
10850
  }
10851
+ satisfies?: {
10852
+ before?: boolean
10853
+ after?: boolean
10854
+ }
10844
10855
  set?: {
10845
10856
  before?: boolean
10846
10857
  after?: boolean
@@ -11321,7 +11332,6 @@ type StyleTypeAnnotationSpacing = []|[{
11321
11332
  parameter?: _StyleTypeAnnotationSpacing_SpacingConfig
11322
11333
  property?: _StyleTypeAnnotationSpacing_SpacingConfig
11323
11334
  returnType?: _StyleTypeAnnotationSpacing_SpacingConfig
11324
- operator?: _StyleTypeAnnotationSpacing_SpacingConfig
11325
11335
  }
11326
11336
  }]
11327
11337
  interface _StyleTypeAnnotationSpacing_SpacingConfig {
@@ -13490,6 +13500,10 @@ type VueKeywordSpacing = []|[{
13490
13500
  before?: boolean
13491
13501
  after?: boolean
13492
13502
  }
13503
+ satisfies?: {
13504
+ before?: boolean
13505
+ after?: boolean
13506
+ }
13493
13507
  set?: {
13494
13508
  before?: boolean
13495
13509
  after?: boolean
@@ -15464,7 +15478,7 @@ declare function getOverrides<K extends keyof OptionsConfig>(options: OptionsCon
15464
15478
  'regexp/use-ignore-case'?: eslint.Linter.RuleEntry<[]> | undefined;
15465
15479
  'require-atomic-updates'?: eslint.Linter.RuleEntry<undefined> | undefined;
15466
15480
  'require-await'?: eslint.Linter.RuleEntry<[]> | undefined;
15467
- 'require-unicode-regexp'?: eslint.Linter.RuleEntry<[]> | undefined;
15481
+ 'require-unicode-regexp'?: eslint.Linter.RuleEntry<undefined> | undefined;
15468
15482
  'require-yield'?: eslint.Linter.RuleEntry<[]> | undefined;
15469
15483
  'rest-spread-spacing'?: eslint.Linter.RuleEntry<undefined> | undefined;
15470
15484
  semi?: eslint.Linter.RuleEntry<undefined> | undefined;
package/dist/index.d.ts CHANGED
@@ -3311,7 +3311,7 @@ interface RuleOptions {
3311
3311
  * Enforce the use of `u` or `v` flag on RegExp
3312
3312
  * @see https://eslint.org/docs/latest/rules/require-unicode-regexp
3313
3313
  */
3314
- 'require-unicode-regexp'?: Linter.RuleEntry<[]>
3314
+ 'require-unicode-regexp'?: Linter.RuleEntry<RequireUnicodeRegexp>
3315
3315
  /**
3316
3316
  * Require generator functions to contain `yield`
3317
3317
  * @see https://eslint.org/docs/latest/rules/require-yield
@@ -7195,7 +7195,7 @@ type AccessorPairs = []|[{
7195
7195
  // ----- antfu/consistent-chaining -----
7196
7196
  type AntfuConsistentChaining = []|[{
7197
7197
 
7198
- allowFirstPropertyAccess?: boolean
7198
+ allowLeadingPropertyAccess?: boolean
7199
7199
  }]
7200
7200
  // ----- antfu/consistent-list-newline -----
7201
7201
  type AntfuConsistentListNewline = []|[{
@@ -9820,6 +9820,8 @@ type _PerfectionistSortImportsSortImports = (_PerfectionistSortImportsMaxLineLen
9820
9820
 
9821
9821
  internalPattern?: string[]
9822
9822
 
9823
+ sortSideEffects?: boolean
9824
+
9823
9825
  newlinesBetween?: ("ignore" | "always" | "never")
9824
9826
 
9825
9827
  maxLineLength?: number
@@ -10255,6 +10257,10 @@ type RegexpUnicodeProperty = []|[{
10255
10257
  type RequireAtomicUpdates = []|[{
10256
10258
  allowProperties?: boolean
10257
10259
  }]
10260
+ // ----- require-unicode-regexp -----
10261
+ type RequireUnicodeRegexp = []|[{
10262
+ requireFlag?: ("u" | "v")
10263
+ }]
10258
10264
  // ----- rest-spread-spacing -----
10259
10265
  type RestSpreadSpacing = []|[("always" | "never")]
10260
10266
  // ----- semi -----
@@ -10467,6 +10473,7 @@ type StyleIndent = []|[("tab" | number)]|[("tab" | number), {
10467
10473
  offsetTernaryExpressions?: boolean
10468
10474
  ignoredNodes?: string[]
10469
10475
  ignoreComments?: boolean
10476
+ tabLength?: number
10470
10477
  }]
10471
10478
  // ----- style/indent-binary-ops -----
10472
10479
  type StyleIndentBinaryOps = []|[(number | "tab")]
@@ -10841,6 +10848,10 @@ type StyleKeywordSpacing = []|[{
10841
10848
  before?: boolean
10842
10849
  after?: boolean
10843
10850
  }
10851
+ satisfies?: {
10852
+ before?: boolean
10853
+ after?: boolean
10854
+ }
10844
10855
  set?: {
10845
10856
  before?: boolean
10846
10857
  after?: boolean
@@ -11321,7 +11332,6 @@ type StyleTypeAnnotationSpacing = []|[{
11321
11332
  parameter?: _StyleTypeAnnotationSpacing_SpacingConfig
11322
11333
  property?: _StyleTypeAnnotationSpacing_SpacingConfig
11323
11334
  returnType?: _StyleTypeAnnotationSpacing_SpacingConfig
11324
- operator?: _StyleTypeAnnotationSpacing_SpacingConfig
11325
11335
  }
11326
11336
  }]
11327
11337
  interface _StyleTypeAnnotationSpacing_SpacingConfig {
@@ -13490,6 +13500,10 @@ type VueKeywordSpacing = []|[{
13490
13500
  before?: boolean
13491
13501
  after?: boolean
13492
13502
  }
13503
+ satisfies?: {
13504
+ before?: boolean
13505
+ after?: boolean
13506
+ }
13493
13507
  set?: {
13494
13508
  before?: boolean
13495
13509
  after?: boolean
@@ -15464,7 +15478,7 @@ declare function getOverrides<K extends keyof OptionsConfig>(options: OptionsCon
15464
15478
  'regexp/use-ignore-case'?: eslint.Linter.RuleEntry<[]> | undefined;
15465
15479
  'require-atomic-updates'?: eslint.Linter.RuleEntry<undefined> | undefined;
15466
15480
  'require-await'?: eslint.Linter.RuleEntry<[]> | undefined;
15467
- 'require-unicode-regexp'?: eslint.Linter.RuleEntry<[]> | undefined;
15481
+ 'require-unicode-regexp'?: eslint.Linter.RuleEntry<undefined> | undefined;
15468
15482
  'require-yield'?: eslint.Linter.RuleEntry<[]> | undefined;
15469
15483
  'rest-spread-spacing'?: eslint.Linter.RuleEntry<undefined> | undefined;
15470
15484
  semi?: eslint.Linter.RuleEntry<undefined> | undefined;
package/dist/index.js CHANGED
@@ -108,8 +108,7 @@ function disables() {
108
108
  name: "coderwyd/disables/scripts",
109
109
  rules: {
110
110
  "no-console": "off",
111
- "ts/explicit-function-return-type": "off",
112
- "unicorn/consistent-function-scoping": "off"
111
+ "ts/explicit-function-return-type": "off"
113
112
  }
114
113
  },
115
114
  {
@@ -1458,7 +1457,6 @@ async function test(options = {}) {
1458
1457
  "test/prefer-hooks-in-order": "error",
1459
1458
  "test/prefer-lowercase-title": "error",
1460
1459
  "ts/explicit-function-return-type": "off",
1461
- "unicorn/consistent-function-scoping": "off",
1462
1460
  ...overrides
1463
1461
  }
1464
1462
  }
@@ -1626,7 +1624,6 @@ function unicorn() {
1626
1624
  // 'unicorn/better-regex': 'error',
1627
1625
  "unicorn/catch-error-name": "error",
1628
1626
  "unicorn/consistent-empty-array-spread": "error",
1629
- "unicorn/consistent-function-scoping": ["error", { checkArrowFunctions: false }],
1630
1627
  "unicorn/custom-error-definition": "error",
1631
1628
  "unicorn/error-message": "error",
1632
1629
  // 'unicorn/explicit-length-check': 'error',
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@coderwyd/eslint-config",
3
3
  "type": "module",
4
- "version": "2.7.1",
4
+ "version": "2.7.2",
5
5
  "description": "Donny's ESLint config",
6
6
  "author": "Donny Wang <donny526@outlook.com> (https://github.com/coderwyd/)",
7
7
  "license": "MIT",
@@ -70,15 +70,15 @@
70
70
  "dependencies": {
71
71
  "@antfu/install-pkg": "^0.4.1",
72
72
  "@eslint-community/eslint-plugin-eslint-comments": "^4.4.0",
73
- "@stylistic/eslint-plugin": "^2.7.2",
73
+ "@stylistic/eslint-plugin": "^2.8.0",
74
74
  "@toml-tools/parser": "^1.0.0",
75
- "@typescript-eslint/eslint-plugin": "^8.4.0",
76
- "@typescript-eslint/parser": "^8.4.0",
77
- "@vitest/eslint-plugin": "^1.1.0",
75
+ "@typescript-eslint/eslint-plugin": "^8.5.0",
76
+ "@typescript-eslint/parser": "^8.5.0",
77
+ "@vitest/eslint-plugin": "^1.1.1",
78
78
  "eslint-config-flat-gitignore": "^0.3.0",
79
79
  "eslint-merge-processors": "^0.1.0",
80
- "eslint-plugin-antfu": "^2.5.0",
81
- "eslint-plugin-command": "^0.2.3",
80
+ "eslint-plugin-antfu": "^2.6.0",
81
+ "eslint-plugin-command": "^0.2.4",
82
82
  "eslint-plugin-eslint-comments": "^3.2.0",
83
83
  "eslint-plugin-format": "^0.1.2",
84
84
  "eslint-plugin-import-x": "^4.2.1",
@@ -86,13 +86,13 @@
86
86
  "eslint-plugin-jsonc": "^2.16.0",
87
87
  "eslint-plugin-n": "^17.10.2",
88
88
  "eslint-plugin-no-only-tests": "^3.3.0",
89
- "eslint-plugin-perfectionist": "^3.4.0",
89
+ "eslint-plugin-perfectionist": "^3.5.0",
90
90
  "eslint-plugin-regexp": "^2.6.0",
91
91
  "eslint-plugin-unicorn": "^55.0.0",
92
92
  "eslint-plugin-unused-imports": "^4.1.3",
93
93
  "eslint-plugin-vue": "^9.28.0",
94
94
  "eslint-processor-vue-blocks": "^0.1.2",
95
- "eslint-typegen": "^0.3.1",
95
+ "eslint-typegen": "^0.3.2",
96
96
  "globals": "^15.9.0",
97
97
  "jsonc-eslint-parser": "^2.4.0",
98
98
  "local-pkg": "^0.5.0",
@@ -105,17 +105,16 @@
105
105
  },
106
106
  "devDependencies": {
107
107
  "@antfu/ni": "^0.23.0",
108
- "@eslint-react/eslint-plugin": "^1.13.0",
108
+ "@eslint-react/eslint-plugin": "^1.14.1",
109
109
  "@eslint/config-inspector": "^0.5.4",
110
- "@stylistic/eslint-plugin-migrate": "^2.7.2",
111
- "@types/eslint": "^9.6.1",
110
+ "@stylistic/eslint-plugin-migrate": "^2.8.0",
112
111
  "@types/fs-extra": "^11.0.4",
113
112
  "@types/node": "^22.5.4",
114
113
  "@types/prompts": "^2.4.9",
115
114
  "@types/yargs": "^17.0.33",
116
115
  "@unocss/eslint-plugin": "^0.62.3",
117
116
  "bumpp": "^9.5.2",
118
- "eslint": "^9.9.1",
117
+ "eslint": "^9.10.0",
119
118
  "eslint-plugin-react-hooks": "^4.6.2",
120
119
  "eslint-plugin-react-refresh": "^0.4.11",
121
120
  "eslint-plugin-svelte": "2.43.0",
@@ -130,8 +129,8 @@
130
129
  "svelte": "^4.2.19",
131
130
  "svelte-eslint-parser": "^0.41.0",
132
131
  "tsup": "^8.2.4",
133
- "tsx": "^4.19.0",
134
- "typescript": "^5.5.4"
132
+ "tsx": "^4.19.1",
133
+ "typescript": "^5.6.2"
135
134
  },
136
135
  "simple-git-hooks": {
137
136
  "pre-commit": "pnpx nano-staged"