@bfra.me/eslint-config 0.50.0 → 0.50.1

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/lib/index.d.ts CHANGED
@@ -5713,11 +5713,21 @@ interface Rules {
5713
5713
  * @see https://ota-meshi.github.io/eslint-plugin-toml/rules/indent.html
5714
5714
  */
5715
5715
  'toml/indent'?: Linter.RuleEntry<TomlIndent>
5716
+ /**
5717
+ * enforce linebreaks after opening and before closing braces
5718
+ * @see https://ota-meshi.github.io/eslint-plugin-toml/rules/inline-table-curly-newline.html
5719
+ */
5720
+ 'toml/inline-table-curly-newline'?: Linter.RuleEntry<TomlInlineTableCurlyNewline>
5716
5721
  /**
5717
5722
  * enforce consistent spacing inside braces
5718
5723
  * @see https://ota-meshi.github.io/eslint-plugin-toml/rules/inline-table-curly-spacing.html
5719
5724
  */
5720
5725
  'toml/inline-table-curly-spacing'?: Linter.RuleEntry<TomlInlineTableCurlySpacing>
5726
+ /**
5727
+ * enforce placing inline table key-value pairs on separate lines
5728
+ * @see https://ota-meshi.github.io/eslint-plugin-toml/rules/inline-table-key-value-newline.html
5729
+ */
5730
+ 'toml/inline-table-key-value-newline'?: Linter.RuleEntry<TomlInlineTableKeyValueNewline>
5721
5731
  /**
5722
5732
  * enforce consistent spacing between keys and values in key/value pairs
5723
5733
  * @see https://ota-meshi.github.io/eslint-plugin-toml/rules/key-spacing.html
@@ -11357,6 +11367,7 @@ type JsoncObjectCurlyNewline = []|[((("always" | "never") | {
11357
11367
  type JsoncObjectCurlySpacing = []|[("always" | "never")]|[("always" | "never"), {
11358
11368
  arraysInObjects?: boolean
11359
11369
  objectsInObjects?: boolean
11370
+ emptyObjects?: ("ignore" | "always" | "never")
11360
11371
  }]
11361
11372
  // ----- jsonc/object-property-newline -----
11362
11373
  type JsoncObjectPropertyNewline = []|[{
@@ -17660,10 +17671,21 @@ type TomlIndent = []|[("tab" | number)]|[("tab" | number), {
17660
17671
  subTables?: number
17661
17672
  keyValuePairs?: number
17662
17673
  }]
17674
+ // ----- toml/inline-table-curly-newline -----
17675
+ type TomlInlineTableCurlyNewline = []|[(("always" | "never") | {
17676
+ multiline?: boolean
17677
+ minProperties?: number
17678
+ consistent?: boolean
17679
+ })]
17663
17680
  // ----- toml/inline-table-curly-spacing -----
17664
17681
  type TomlInlineTableCurlySpacing = []|[("always" | "never")]|[("always" | "never"), {
17665
17682
  arraysInObjects?: boolean
17666
17683
  objectsInObjects?: boolean
17684
+ emptyObjects?: ("ignore" | "always" | "never")
17685
+ }]
17686
+ // ----- toml/inline-table-key-value-newline -----
17687
+ type TomlInlineTableKeyValueNewline = []|[{
17688
+ allowAllPropertiesOnSameLine?: boolean
17667
17689
  }]
17668
17690
  // ----- toml/key-spacing -----
17669
17691
  type TomlKeySpacing = []|[({
@@ -18213,6 +18235,7 @@ type YmlFlowMappingCurlyNewline = []|[(("always" | "never") | {
18213
18235
  type YmlFlowMappingCurlySpacing = []|[("always" | "never")]|[("always" | "never"), {
18214
18236
  arraysInObjects?: boolean
18215
18237
  objectsInObjects?: boolean
18238
+ emptyObjects?: ("ignore" | "always" | "never")
18216
18239
  }]
18217
18240
  // ----- yml/flow-sequence-bracket-newline -----
18218
18241
  type YmlFlowSequenceBracketNewline = []|[(("always" | "never" | "consistent") | {
package/lib/index.js CHANGED
@@ -147,7 +147,7 @@ var GLOB_EXCLUDE = [
147
147
  import { fileURLToPath } from "url";
148
148
 
149
149
  // package.json
150
- var version = "0.50.0";
150
+ var version = "0.50.1";
151
151
 
152
152
  // src/parsers/any-parser.ts
153
153
  var lineBreakPattern = /\r\n|[\n\r\u2028\u2029]/u;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bfra.me/eslint-config",
3
- "version": "0.50.0",
3
+ "version": "0.50.1",
4
4
  "description": "Shared ESLint configuration for bfra.me",
5
5
  "keywords": [
6
6
  "bfra.me",
@@ -43,24 +43,24 @@
43
43
  "eslint-config-flat-gitignore": "2.2.1",
44
44
  "eslint-flat-config-utils": "3.0.1",
45
45
  "eslint-merge-processors": "2.0.0",
46
- "eslint-plugin-command": "3.4.0",
46
+ "eslint-plugin-command": "3.5.2",
47
47
  "eslint-plugin-import-x": "4.16.1",
48
- "eslint-plugin-jsdoc": "62.6.1",
49
- "eslint-plugin-json-schema-validator": "6.0.3",
50
- "eslint-plugin-jsonc": "3.0.0",
48
+ "eslint-plugin-jsdoc": "62.7.1",
49
+ "eslint-plugin-json-schema-validator": "6.2.0",
50
+ "eslint-plugin-jsonc": "3.1.1",
51
51
  "eslint-plugin-n": "17.24.0",
52
52
  "eslint-plugin-perfectionist": "5.6.0",
53
53
  "eslint-plugin-regexp": "3.0.0",
54
- "eslint-plugin-toml": "1.1.1",
54
+ "eslint-plugin-toml": "1.3.0",
55
55
  "eslint-plugin-unicorn": "63.0.0",
56
56
  "eslint-plugin-unused-imports": "4.4.1",
57
- "eslint-plugin-yml": "3.2.1",
57
+ "eslint-plugin-yml": "3.3.0",
58
58
  "globals": "17.3.0",
59
59
  "is-in-ci": "2.0.0",
60
60
  "local-pkg": "1.1.2",
61
61
  "package-manager-detector": "1.6.0",
62
62
  "sort-package-json": "3.6.1",
63
- "typescript-eslint": "8.56.0",
63
+ "typescript-eslint": "8.56.1",
64
64
  "@bfra.me/es": "0.1.0"
65
65
  },
66
66
  "devDependencies": {
@@ -70,23 +70,23 @@
70
70
  "@next/eslint-plugin-next": "16.1.6",
71
71
  "@types/eslint-config-prettier": "6.11.3",
72
72
  "@types/eslint-plugin-jsx-a11y": "6.10.1",
73
- "@typescript-eslint/types": "8.56.0",
73
+ "@typescript-eslint/types": "8.56.1",
74
74
  "@vitest/eslint-plugin": "1.6.9",
75
75
  "astro-eslint-parser": "1.3.0",
76
- "eslint": "10.0.0",
76
+ "eslint": "10.0.2",
77
77
  "eslint-config-prettier": "10.1.8",
78
78
  "eslint-plugin-astro": "1.6.0",
79
79
  "eslint-plugin-erasable-syntax-only": "0.4.0",
80
80
  "eslint-plugin-jsx-a11y": "6.10.2",
81
- "eslint-plugin-node-dependencies": "1.3.0",
82
- "eslint-plugin-pnpm": "1.5.0",
81
+ "eslint-plugin-node-dependencies": "2.1.0",
82
+ "eslint-plugin-pnpm": "1.6.0",
83
83
  "eslint-plugin-prettier": "5.5.5",
84
84
  "eslint-plugin-react-hooks": "7.0.1",
85
- "eslint-plugin-react-refresh": "0.5.0",
85
+ "eslint-plugin-react-refresh": "0.5.2",
86
86
  "eslint-typegen": "2.3.1",
87
+ "@bfra.me/prettier-config": "0.16.7",
87
88
  "@bfra.me/tsconfig": "0.12.2",
88
- "@bfra.me/works": "0.0.0-development",
89
- "@bfra.me/prettier-config": "0.16.7"
89
+ "@bfra.me/works": "0.0.0-development"
90
90
  },
91
91
  "peerDependencies": {
92
92
  "@eslint-react/eslint-plugin": "^2.2.3",
package/src/rules.d.ts CHANGED
@@ -5704,11 +5704,21 @@ export interface Rules {
5704
5704
  * @see https://ota-meshi.github.io/eslint-plugin-toml/rules/indent.html
5705
5705
  */
5706
5706
  'toml/indent'?: Linter.RuleEntry<TomlIndent>
5707
+ /**
5708
+ * enforce linebreaks after opening and before closing braces
5709
+ * @see https://ota-meshi.github.io/eslint-plugin-toml/rules/inline-table-curly-newline.html
5710
+ */
5711
+ 'toml/inline-table-curly-newline'?: Linter.RuleEntry<TomlInlineTableCurlyNewline>
5707
5712
  /**
5708
5713
  * enforce consistent spacing inside braces
5709
5714
  * @see https://ota-meshi.github.io/eslint-plugin-toml/rules/inline-table-curly-spacing.html
5710
5715
  */
5711
5716
  'toml/inline-table-curly-spacing'?: Linter.RuleEntry<TomlInlineTableCurlySpacing>
5717
+ /**
5718
+ * enforce placing inline table key-value pairs on separate lines
5719
+ * @see https://ota-meshi.github.io/eslint-plugin-toml/rules/inline-table-key-value-newline.html
5720
+ */
5721
+ 'toml/inline-table-key-value-newline'?: Linter.RuleEntry<TomlInlineTableKeyValueNewline>
5712
5722
  /**
5713
5723
  * enforce consistent spacing between keys and values in key/value pairs
5714
5724
  * @see https://ota-meshi.github.io/eslint-plugin-toml/rules/key-spacing.html
@@ -11348,6 +11358,7 @@ type JsoncObjectCurlyNewline = []|[((("always" | "never") | {
11348
11358
  type JsoncObjectCurlySpacing = []|[("always" | "never")]|[("always" | "never"), {
11349
11359
  arraysInObjects?: boolean
11350
11360
  objectsInObjects?: boolean
11361
+ emptyObjects?: ("ignore" | "always" | "never")
11351
11362
  }]
11352
11363
  // ----- jsonc/object-property-newline -----
11353
11364
  type JsoncObjectPropertyNewline = []|[{
@@ -17651,10 +17662,21 @@ type TomlIndent = []|[("tab" | number)]|[("tab" | number), {
17651
17662
  subTables?: number
17652
17663
  keyValuePairs?: number
17653
17664
  }]
17665
+ // ----- toml/inline-table-curly-newline -----
17666
+ type TomlInlineTableCurlyNewline = []|[(("always" | "never") | {
17667
+ multiline?: boolean
17668
+ minProperties?: number
17669
+ consistent?: boolean
17670
+ })]
17654
17671
  // ----- toml/inline-table-curly-spacing -----
17655
17672
  type TomlInlineTableCurlySpacing = []|[("always" | "never")]|[("always" | "never"), {
17656
17673
  arraysInObjects?: boolean
17657
17674
  objectsInObjects?: boolean
17675
+ emptyObjects?: ("ignore" | "always" | "never")
17676
+ }]
17677
+ // ----- toml/inline-table-key-value-newline -----
17678
+ type TomlInlineTableKeyValueNewline = []|[{
17679
+ allowAllPropertiesOnSameLine?: boolean
17658
17680
  }]
17659
17681
  // ----- toml/key-spacing -----
17660
17682
  type TomlKeySpacing = []|[({
@@ -18204,6 +18226,7 @@ type YmlFlowMappingCurlyNewline = []|[(("always" | "never") | {
18204
18226
  type YmlFlowMappingCurlySpacing = []|[("always" | "never")]|[("always" | "never"), {
18205
18227
  arraysInObjects?: boolean
18206
18228
  objectsInObjects?: boolean
18229
+ emptyObjects?: ("ignore" | "always" | "never")
18207
18230
  }]
18208
18231
  // ----- yml/flow-sequence-bracket-newline -----
18209
18232
  type YmlFlowSequenceBracketNewline = []|[(("always" | "never" | "consistent") | {