@2digits/eslint-config 4.11.2 → 4.12.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.
Files changed (2) hide show
  1. package/dist/index.d.mts +56 -1
  2. package/package.json +8 -8
package/dist/index.d.mts CHANGED
@@ -5690,6 +5690,11 @@ interface RuleOptions {
5690
5690
  * @see https://eslint.style/rules/eol-last
5691
5691
  */
5692
5692
  'stylistic/eol-last'?: Linter.RuleEntry<StylisticEolLast>;
5693
+ /**
5694
+ * Enforce consistent spacing and line break styles inside brackets.
5695
+ * @see https://eslint.style/rules/list-style
5696
+ */
5697
+ 'stylistic/exp-list-style'?: Linter.RuleEntry<StylisticExpListStyle>;
5693
5698
  /**
5694
5699
  * Enforce line breaks between arguments of a function call
5695
5700
  * @see https://eslint.style/rules/function-call-argument-newline
@@ -10556,6 +10561,7 @@ type PnpmJsonValidCatalog = [] | [{
10556
10561
  // ----- pnpm/yaml-no-duplicate-catalog-item -----
10557
10562
  type PnpmYamlNoDuplicateCatalogItem = [] | [{
10558
10563
  allow?: string[];
10564
+ checkDuplicates?: ("name-only" | "exact-version");
10559
10565
  }];
10560
10566
  // ----- prefer-arrow-callback -----
10561
10567
  type PreferArrowCallback = [] | [{
@@ -11295,6 +11301,50 @@ type StylisticCurlyNewline = [] | [(("always" | "never") | {
11295
11301
  type StylisticDotLocation = [] | [("object" | "property")];
11296
11302
  // ----- stylistic/eol-last -----
11297
11303
  type StylisticEolLast = [] | [("always" | "never" | "unix" | "windows")];
11304
+ // ----- stylistic/exp-list-style -----
11305
+ type StylisticExpListStyle = [] | [{
11306
+ singleLine?: _StylisticExpListStyle_SingleLineConfig;
11307
+ multiLine?: _StylisticExpListStyle_MultiLineConfig;
11308
+ overrides?: {
11309
+ "[]"?: _StylisticExpListStyle_BaseConfig;
11310
+ "{}"?: _StylisticExpListStyle_BaseConfig;
11311
+ "<>"?: _StylisticExpListStyle_BaseConfig;
11312
+ "()"?: _StylisticExpListStyle_BaseConfig;
11313
+ ArrayExpression?: _StylisticExpListStyle_BaseConfig;
11314
+ ArrayPattern?: _StylisticExpListStyle_BaseConfig;
11315
+ ArrowFunctionExpression?: _StylisticExpListStyle_BaseConfig;
11316
+ CallExpression?: _StylisticExpListStyle_BaseConfig;
11317
+ ExportNamedDeclaration?: _StylisticExpListStyle_BaseConfig;
11318
+ FunctionDeclaration?: _StylisticExpListStyle_BaseConfig;
11319
+ FunctionExpression?: _StylisticExpListStyle_BaseConfig;
11320
+ ImportDeclaration?: _StylisticExpListStyle_BaseConfig;
11321
+ ImportAttributes?: _StylisticExpListStyle_BaseConfig;
11322
+ NewExpression?: _StylisticExpListStyle_BaseConfig;
11323
+ ObjectExpression?: _StylisticExpListStyle_BaseConfig;
11324
+ ObjectPattern?: _StylisticExpListStyle_BaseConfig;
11325
+ TSDeclareFunction?: _StylisticExpListStyle_BaseConfig;
11326
+ TSFunctionType?: _StylisticExpListStyle_BaseConfig;
11327
+ TSInterfaceBody?: _StylisticExpListStyle_BaseConfig;
11328
+ TSEnumBody?: _StylisticExpListStyle_BaseConfig;
11329
+ TSTupleType?: _StylisticExpListStyle_BaseConfig;
11330
+ TSTypeLiteral?: _StylisticExpListStyle_BaseConfig;
11331
+ TSTypeParameterDeclaration?: _StylisticExpListStyle_BaseConfig;
11332
+ TSTypeParameterInstantiation?: _StylisticExpListStyle_BaseConfig;
11333
+ JSONArrayExpression?: _StylisticExpListStyle_BaseConfig;
11334
+ JSONObjectExpression?: _StylisticExpListStyle_BaseConfig;
11335
+ };
11336
+ }];
11337
+ interface _StylisticExpListStyle_SingleLineConfig {
11338
+ spacing?: ("always" | "never");
11339
+ maxItems?: number;
11340
+ }
11341
+ interface _StylisticExpListStyle_MultiLineConfig {
11342
+ minItems?: number;
11343
+ }
11344
+ interface _StylisticExpListStyle_BaseConfig {
11345
+ singleLine?: _StylisticExpListStyle_SingleLineConfig;
11346
+ multiline?: _StylisticExpListStyle_MultiLineConfig;
11347
+ }
11298
11348
  // ----- stylistic/function-call-argument-newline -----
11299
11349
  type StylisticFunctionCallArgumentNewline = [] | [("always" | "never" | "consistent")];
11300
11350
  // ----- stylistic/function-call-spacing -----
@@ -11364,7 +11414,11 @@ type StylisticIndent = [] | [("tab" | number)] | [("tab" | number), {
11364
11414
  ObjectExpression?: (number | ("first" | "off"));
11365
11415
  ImportDeclaration?: (number | ("first" | "off"));
11366
11416
  flatTernaryExpressions?: boolean;
11367
- offsetTernaryExpressions?: boolean;
11417
+ offsetTernaryExpressions?: (boolean | {
11418
+ CallExpression?: boolean;
11419
+ AwaitExpression?: boolean;
11420
+ NewExpression?: boolean;
11421
+ });
11368
11422
  offsetTernaryExpressionsOffsetCallExpressions?: boolean;
11369
11423
  ignoredNodes?: string[];
11370
11424
  ignoreComments?: boolean;
@@ -12165,6 +12219,7 @@ type StylisticObjectCurlySpacing = [] | [("always" | "never")] | [("always" | "n
12165
12219
  TSInterfaceBody?: ("always" | "never");
12166
12220
  TSEnumBody?: ("always" | "never");
12167
12221
  };
12222
+ emptyObjects?: ("ignore" | "always" | "never");
12168
12223
  }];
12169
12224
  // ----- stylistic/object-property-newline -----
12170
12225
  type StylisticObjectPropertyNewline = [] | [{
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@2digits/eslint-config",
3
- "version": "4.11.2",
3
+ "version": "4.12.0",
4
4
  "description": "Effortlessly enforce best practices and catch errors with this comprehensive ESLint configuration for TypeScript, featuring popular plugins like @typescript-eslint, eslint-plugin-react, and eslint-plugin-unicorn.",
5
5
  "homepage": "https://2d-configs.vercel.app/",
6
6
  "repository": {
@@ -30,11 +30,11 @@
30
30
  "@eslint-react/eslint-plugin": "2.2.2",
31
31
  "@eslint/compat": "1.4.0",
32
32
  "@eslint/css": "0.13.0",
33
- "@eslint/js": "9.37.0",
33
+ "@eslint/js": "9.38.0",
34
34
  "@eslint/markdown": "7.4.0",
35
35
  "@graphql-eslint/eslint-plugin": "4.4.0",
36
- "@next/eslint-plugin-next": "15.5.5",
37
- "@stylistic/eslint-plugin": "5.4.0",
36
+ "@next/eslint-plugin-next": "15.5.6",
37
+ "@stylistic/eslint-plugin": "5.5.0",
38
38
  "@tanstack/eslint-plugin-query": "5.91.2",
39
39
  "@tanstack/eslint-plugin-router": "1.133.3",
40
40
  "@typescript-eslint/parser": "8.46.1",
@@ -52,12 +52,12 @@
52
52
  "eslint-plugin-jsdoc": "61.1.4",
53
53
  "eslint-plugin-jsonc": "2.21.0",
54
54
  "eslint-plugin-n": "17.23.1",
55
- "eslint-plugin-pnpm": "1.2.0",
55
+ "eslint-plugin-pnpm": "1.3.0",
56
56
  "eslint-plugin-react-compiler": "19.1.0-rc.2",
57
57
  "eslint-plugin-react-hooks": "7.0.0",
58
58
  "eslint-plugin-regexp": "2.10.0",
59
59
  "eslint-plugin-sonarjs": "3.0.5",
60
- "eslint-plugin-storybook": "9.1.12",
60
+ "eslint-plugin-storybook": "9.1.13",
61
61
  "eslint-plugin-tailwindcss": "3.18.2",
62
62
  "eslint-plugin-turbo": "2.5.8",
63
63
  "eslint-plugin-unicorn": "61.0.2",
@@ -72,13 +72,13 @@
72
72
  "typescript-eslint": "8.46.1",
73
73
  "yaml-eslint-parser": "1.3.0",
74
74
  "@2digits/constants": "1.1.10",
75
- "@2digits/eslint-plugin": "3.1.27"
75
+ "@2digits/eslint-plugin": "3.2.0"
76
76
  },
77
77
  "devDependencies": {
78
78
  "@eslint/config-inspector": "1.3.0",
79
79
  "@types/react": "19.2.2",
80
80
  "dedent": "1.7.0",
81
- "eslint": "9.37.0",
81
+ "eslint": "9.38.0",
82
82
  "eslint-typegen": "2.3.0",
83
83
  "react": "19.2.0",
84
84
  "tinyexec": "1.0.1",