@ntnyq/eslint-config 5.4.1 → 5.4.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.
Files changed (2) hide show
  1. package/dist/index.d.ts +32 -4
  2. package/package.json +15 -16
package/dist/index.d.ts CHANGED
@@ -1171,7 +1171,7 @@ interface RuleOptions {
1171
1171
  */
1172
1172
  '@html-eslint/require-title'?: Linter.RuleEntry<[]>;
1173
1173
  /**
1174
- * Enforce attributes alphabetical sorting
1174
+ * Enforce priority and alphabetical sorting of attributes
1175
1175
  * @see https://html-eslint.org/docs/rules/sort-attrs
1176
1176
  */
1177
1177
  '@html-eslint/sort-attrs'?: Linter.RuleEntry<HtmlEslintSortAttrs>;
@@ -3512,7 +3512,7 @@ interface RuleOptions {
3512
3512
  * Enforce heading levels increment by one
3513
3513
  * @see https://github.com/eslint/markdown/blob/main/docs/rules/heading-increment.md
3514
3514
  */
3515
- 'markdown/heading-increment'?: Linter.RuleEntry<[]>;
3515
+ 'markdown/heading-increment'?: Linter.RuleEntry<MarkdownHeadingIncrement>;
3516
3516
  /**
3517
3517
  * Disallow bare URLs
3518
3518
  * @see https://github.com/eslint/markdown/blob/main/docs/rules/no-bare-urls.md
@@ -3557,7 +3557,7 @@ interface RuleOptions {
3557
3557
  * Disallow headings without a space after the hash characters
3558
3558
  * @see https://github.com/eslint/markdown/blob/main/docs/rules/no-missing-atx-heading-space.md
3559
3559
  */
3560
- 'markdown/no-missing-atx-heading-space'?: Linter.RuleEntry<[]>;
3560
+ 'markdown/no-missing-atx-heading-space'?: Linter.RuleEntry<MarkdownNoMissingAtxHeadingSpace>;
3561
3561
  /**
3562
3562
  * Disallow missing label references
3563
3563
  * @see https://github.com/eslint/markdown/blob/main/docs/rules/no-missing-label-refs.md
@@ -3578,6 +3578,11 @@ interface RuleOptions {
3578
3578
  * @see https://github.com/eslint/markdown/blob/main/docs/rules/no-reversed-media-syntax.md
3579
3579
  */
3580
3580
  'markdown/no-reversed-media-syntax'?: Linter.RuleEntry<[]>;
3581
+ /**
3582
+ * Disallow spaces around emphasis markers
3583
+ * @see https://github.com/eslint/markdown/blob/main/docs/rules/no-space-in-emphasis.md
3584
+ */
3585
+ 'markdown/no-space-in-emphasis'?: Linter.RuleEntry<MarkdownNoSpaceInEmphasis>;
3581
3586
  /**
3582
3587
  * Disallow unused definitions
3583
3588
  * @see https://github.com/eslint/markdown/blob/main/docs/rules/no-unused-definitions.md
@@ -6829,6 +6834,11 @@ interface RuleOptions {
6829
6834
  * @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/expect-expect.md
6830
6835
  */
6831
6836
  'vitest/expect-expect'?: Linter.RuleEntry<VitestExpectExpect>;
6837
+ /**
6838
+ * enforce hoisted APIs to be on top of the file
6839
+ * @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/hoisted-apis-on-top.md
6840
+ */
6841
+ 'vitest/hoisted-apis-on-top'?: Linter.RuleEntry<[]>;
6832
6842
  /**
6833
6843
  * enforce a maximum number of expect per test
6834
6844
  * @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/max-expects.md
@@ -7030,6 +7040,11 @@ interface RuleOptions {
7030
7040
  * @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-expect-resolves.md
7031
7041
  */
7032
7042
  'vitest/prefer-expect-resolves'?: Linter.RuleEntry<[]>;
7043
+ /**
7044
+ * enforce using `expectTypeOf` instead of `expect(typeof ...)`
7045
+ * @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-expect-type-of.md
7046
+ */
7047
+ 'vitest/prefer-expect-type-of'?: Linter.RuleEntry<[]>;
7033
7048
  /**
7034
7049
  * enforce having hooks in consistent order
7035
7050
  * @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-hooks-in-order.md
@@ -10696,6 +10711,7 @@ type JsdocRequireReturnsType = [] | [{
10696
10711
  }];
10697
10712
  // ----- jsdoc/require-template -----
10698
10713
  type JsdocRequireTemplate = [] | [{
10714
+ exemptedBy?: string[];
10699
10715
  requireSeparateTemplates?: boolean;
10700
10716
  }];
10701
10717
  // ----- jsdoc/require-throws -----
@@ -11417,6 +11433,10 @@ type LogicalAssignmentOperators = (([] | ["always"] | ["always", {
11417
11433
  type MarkdownFencedCodeLanguage = [] | [{
11418
11434
  required?: string[];
11419
11435
  }];
11436
+ // ----- markdown/heading-increment -----
11437
+ type MarkdownHeadingIncrement = [] | [{
11438
+ frontmatterTitle?: string;
11439
+ }];
11420
11440
  // ----- markdown/no-duplicate-definitions -----
11421
11441
  type MarkdownNoDuplicateDefinitions = [] | [{
11422
11442
  allowDefinitions?: string[];
@@ -11435,6 +11455,11 @@ type MarkdownNoEmptyDefinitions = [] | [{
11435
11455
  // ----- markdown/no-html -----
11436
11456
  type MarkdownNoHtml = [] | [{
11437
11457
  allowed?: string[];
11458
+ allowedIgnoreCase?: boolean;
11459
+ }];
11460
+ // ----- markdown/no-missing-atx-heading-space -----
11461
+ type MarkdownNoMissingAtxHeadingSpace = [] | [{
11462
+ checkClosedHeadings?: boolean;
11438
11463
  }];
11439
11464
  // ----- markdown/no-missing-link-fragments -----
11440
11465
  type MarkdownNoMissingLinkFragments = [] | [{
@@ -11445,6 +11470,10 @@ type MarkdownNoMissingLinkFragments = [] | [{
11445
11470
  type MarkdownNoMultipleH1 = [] | [{
11446
11471
  frontmatterTitle?: string;
11447
11472
  }];
11473
+ // ----- markdown/no-space-in-emphasis -----
11474
+ type MarkdownNoSpaceInEmphasis = [] | [{
11475
+ checkStrikethrough?: boolean;
11476
+ }];
11448
11477
  // ----- markdown/no-unused-definitions -----
11449
11478
  type MarkdownNoUnusedDefinitions = [] | [{
11450
11479
  allowDefinitions?: string[];
@@ -15427,7 +15456,6 @@ type UnocssEnforceClassCompile = [] | [{
15427
15456
  type UnocssOrder = [] | [{
15428
15457
  unoFunctions?: string[];
15429
15458
  unoVariables?: string[];
15430
- [k: string]: unknown | undefined;
15431
15459
  }];
15432
15460
  // ----- unused-imports/no-unused-imports -----
15433
15461
  type UnusedImportsNoUnusedImports = [] | [(("all" | "local") | {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@ntnyq/eslint-config",
3
3
  "type": "module",
4
- "version": "5.4.1",
4
+ "version": "5.4.2",
5
5
  "description": "An opinionated ESLint config preset of ntnyq",
6
6
  "keywords": [
7
7
  "eslint",
@@ -36,8 +36,8 @@
36
36
  "tag": "latest"
37
37
  },
38
38
  "peerDependencies": {
39
- "@html-eslint/eslint-plugin": "^0.45.0",
40
- "@html-eslint/parser": "^0.45.0",
39
+ "@html-eslint/eslint-plugin": "^0.46.0",
40
+ "@html-eslint/parser": "^0.46.0",
41
41
  "astro-eslint-parser": "^1.2.2",
42
42
  "eslint": "^9.20.0",
43
43
  "eslint-plugin-astro": "^1.3.1",
@@ -88,10 +88,10 @@
88
88
  "@antfu/install-pkg": "^1.1.0",
89
89
  "@clack/prompts": "^0.11.0",
90
90
  "@eslint-community/eslint-plugin-eslint-comments": "^4.5.0",
91
- "@eslint/js": "^9.33.0",
92
- "@eslint/markdown": "^7.1.0",
93
- "@unocss/eslint-plugin": "^66.4.2",
94
- "@vitest/eslint-plugin": "^1.3.4",
91
+ "@eslint/js": "^9.34.0",
92
+ "@eslint/markdown": "^7.2.0",
93
+ "@unocss/eslint-plugin": "^66.5.0",
94
+ "@vitest/eslint-plugin": "^1.3.7",
95
95
  "eslint-config-flat-gitignore": "^2.1.0",
96
96
  "eslint-flat-config-utils": "^2.1.1",
97
97
  "eslint-import-resolver-typescript": "^4.4.4",
@@ -103,7 +103,7 @@
103
103
  "eslint-plugin-depend": "^1.2.0",
104
104
  "eslint-plugin-github-action": "^0.0.16",
105
105
  "eslint-plugin-import-x": "^4.16.1",
106
- "eslint-plugin-jsdoc": "^54.1.1",
106
+ "eslint-plugin-jsdoc": "^54.3.0",
107
107
  "eslint-plugin-jsonc": "^2.20.1",
108
108
  "eslint-plugin-n": "^17.21.3",
109
109
  "eslint-plugin-no-only-tests": "^3.3.0",
@@ -121,34 +121,33 @@
121
121
  "globals": "^16.3.0",
122
122
  "jsonc-eslint-parser": "^2.4.0",
123
123
  "local-pkg": "^1.1.2",
124
- "prettier": "^3.6.2",
125
124
  "toml-eslint-parser": "^0.10.0",
126
- "typescript-eslint": "^8.40.0",
125
+ "typescript-eslint": "^8.42.0",
127
126
  "vue-eslint-parser": "^10.2.0",
128
127
  "yaml-eslint-parser": "^1.3.0"
129
128
  },
130
129
  "devDependencies": {
131
130
  "@ntnyq/prettier-config": "^3.0.1",
132
131
  "@types/node": "^24.3.0",
133
- "@typescript-eslint/utils": "^8.40.0",
132
+ "@typescript-eslint/utils": "^8.42.0",
134
133
  "bumpp": "^10.2.3",
135
134
  "consola": "^3.4.2",
136
- "eslint": "^9.33.0",
137
- "eslint-plugin-eslint-plugin": "^7.0.0",
135
+ "eslint": "^9.34.0",
138
136
  "eslint-typegen": "^2.3.0",
139
137
  "husky": "^9.1.7",
140
138
  "jiti": "^2.5.1",
141
139
  "nano-staged": "^0.8.0",
142
140
  "npm-run-all2": "^8.0.4",
141
+ "prettier": "^3.6.2",
143
142
  "tinyglobby": "^0.2.14",
144
- "tsdown": "^0.14.1",
145
- "tsx": "^4.20.4",
143
+ "tsdown": "^0.14.2",
144
+ "tsx": "^4.20.5",
146
145
  "typescript": "^5.9.2",
147
146
  "uncase": "^0.2.0",
148
147
  "vitest": "^3.2.4"
149
148
  },
150
149
  "engines": {
151
- "node": ">=20.11.0"
150
+ "node": "^20.11.0 || >=21.1.0"
152
151
  },
153
152
  "nano-staged": {
154
153
  "*.{js,ts,mjs,cjs,md,vue,svg,yml,yaml,toml,json}": "eslint --fix",