@luxass/eslint-config 5.1.0 → 5.1.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/dist/index.d.ts CHANGED
@@ -1846,7 +1846,7 @@ interface RuleOptions {
1846
1846
  * Disallow empty definitions
1847
1847
  * @see https://github.com/eslint/markdown/blob/main/docs/rules/no-empty-definitions.md
1848
1848
  */
1849
- 'markdown/no-empty-definitions'?: Linter.RuleEntry<[]>;
1849
+ 'markdown/no-empty-definitions'?: Linter.RuleEntry<MarkdownNoEmptyDefinitions>;
1850
1850
  /**
1851
1851
  * Disallow empty images
1852
1852
  * @see https://github.com/eslint/markdown/blob/main/docs/rules/no-empty-images.md
@@ -1892,6 +1892,11 @@ interface RuleOptions {
1892
1892
  * @see https://github.com/eslint/markdown/blob/main/docs/rules/no-reversed-media-syntax.md
1893
1893
  */
1894
1894
  'markdown/no-reversed-media-syntax'?: Linter.RuleEntry<[]>;
1895
+ /**
1896
+ * Disallow unused definitions
1897
+ * @see https://github.com/eslint/markdown/blob/main/docs/rules/no-unused-definitions.md
1898
+ */
1899
+ 'markdown/no-unused-definitions'?: Linter.RuleEntry<MarkdownNoUnusedDefinitions>;
1895
1900
  /**
1896
1901
  * Require alternative text for images
1897
1902
  * @see https://github.com/eslint/markdown/blob/main/docs/rules/require-alt-text.md
@@ -2064,7 +2069,7 @@ interface RuleOptions {
2064
2069
  */
2065
2070
  'no-console'?: Linter.RuleEntry<NoConsole>;
2066
2071
  /**
2067
- * Disallow reassigning `const` variables
2072
+ * Disallow reassigning `const`, `using`, and `await using` variables
2068
2073
  * @see https://eslint.org/docs/latest/rules/no-const-assign
2069
2074
  */
2070
2075
  'no-const-assign'?: Linter.RuleEntry<[]>;
@@ -7267,7 +7272,7 @@ interface RuleOptions {
7267
7272
  */
7268
7273
  'vue/no-restricted-custom-event'?: Linter.RuleEntry<VueNoRestrictedCustomEvent>;
7269
7274
  /**
7270
- * disallow specific HTML elements
7275
+ * disallow specific elements
7271
7276
  * @see https://eslint.vuejs.org/rules/no-restricted-html-elements.html
7272
7277
  */
7273
7278
  'vue/no-restricted-html-elements'?: Linter.RuleEntry<VueNoRestrictedHtmlElements>;
@@ -9555,6 +9560,12 @@ type MarkdownNoDuplicateDefinitions = [] | [{
9555
9560
  type MarkdownNoDuplicateHeadings = [] | [{
9556
9561
  checkSiblingsOnly?: boolean;
9557
9562
  }];
9563
+ // ----- markdown/no-empty-definitions -----
9564
+ type MarkdownNoEmptyDefinitions = [] | [{
9565
+ allowDefinitions?: string[];
9566
+ allowFootnoteDefinitions?: string[];
9567
+ checkFootnoteDefinitions?: boolean;
9568
+ }];
9558
9569
  // ----- markdown/no-html -----
9559
9570
  type MarkdownNoHtml = [] | [{
9560
9571
  allowed?: string[];
@@ -9568,6 +9579,11 @@ type MarkdownNoMissingLinkFragments = [] | [{
9568
9579
  type MarkdownNoMultipleH1 = [] | [{
9569
9580
  frontmatterTitle?: string;
9570
9581
  }];
9582
+ // ----- markdown/no-unused-definitions -----
9583
+ type MarkdownNoUnusedDefinitions = [] | [{
9584
+ allowDefinitions?: string[];
9585
+ allowFootnoteDefinitions?: string[];
9586
+ }];
9571
9587
  // ----- max-classes-per-file -----
9572
9588
  type MaxClassesPerFile = [] | [(number | {
9573
9589
  ignoreExpressions?: boolean;
package/dist/index.js CHANGED
@@ -1413,7 +1413,7 @@ function sortPackageJson() {
1413
1413
  */
1414
1414
  function sortTsconfig() {
1415
1415
  return [{
1416
- files: ["**/tsconfig.json", "**/tsconfig.*.json"],
1416
+ files: ["**/[jt]sconfig.json", "**/[jt]sconfig.*.json"],
1417
1417
  name: "luxass/sort/tsconfig",
1418
1418
  rules: { "jsonc/sort-keys": [
1419
1419
  "error",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@luxass/eslint-config",
3
- "version": "5.1.0",
3
+ "version": "5.1.1",
4
4
  "description": "ESLint config for @luxass",
5
5
  "type": "module",
6
6
  "author": {
@@ -83,26 +83,26 @@
83
83
  "@antfu/install-pkg": "^1.1.0",
84
84
  "@clack/prompts": "^0.11.0",
85
85
  "@eslint-community/eslint-plugin-eslint-comments": "^4.5.0",
86
- "@eslint/markdown": "^6.6.0",
86
+ "@eslint/markdown": "^7.0.0",
87
87
  "@stylistic/eslint-plugin": "^5.1.0",
88
- "@typescript-eslint/eslint-plugin": "^8.35.1",
89
- "@typescript-eslint/parser": "^8.35.1",
88
+ "@typescript-eslint/eslint-plugin": "^8.37.0",
89
+ "@typescript-eslint/parser": "^8.37.0",
90
90
  "@vitest/eslint-plugin": "^1.3.4",
91
91
  "eslint-config-flat-gitignore": "^2.1.0",
92
92
  "eslint-flat-config-utils": "^2.1.0",
93
93
  "eslint-merge-processors": "^2.0.0",
94
94
  "eslint-plugin-antfu": "^3.1.1",
95
95
  "eslint-plugin-import-lite": "^0.3.0",
96
- "eslint-plugin-jsdoc": "^51.3.2",
96
+ "eslint-plugin-jsdoc": "^51.3.4",
97
97
  "eslint-plugin-jsonc": "^2.20.1",
98
- "eslint-plugin-n": "^17.20.0",
98
+ "eslint-plugin-n": "^17.21.0",
99
99
  "eslint-plugin-perfectionist": "^4.15.0",
100
- "eslint-plugin-pnpm": "^0.3.1",
100
+ "eslint-plugin-pnpm": "^1.0.0",
101
101
  "eslint-plugin-regexp": "^2.9.0",
102
102
  "eslint-plugin-toml": "^0.12.0",
103
103
  "eslint-plugin-unicorn": "^59.0.1",
104
104
  "eslint-plugin-unused-imports": "^4.1.4",
105
- "eslint-plugin-vue": "^10.2.0",
105
+ "eslint-plugin-vue": "^10.3.0",
106
106
  "eslint-plugin-yml": "^1.18.0",
107
107
  "eslint-processor-vue-blocks": "^2.0.0",
108
108
  "globals": "^16.3.0",
@@ -114,13 +114,13 @@
114
114
  "yaml-eslint-parser": "^1.3.0"
115
115
  },
116
116
  "devDependencies": {
117
- "@eslint-react/eslint-plugin": "^1.52.2",
117
+ "@eslint-react/eslint-plugin": "^1.52.3",
118
118
  "@eslint/config-inspector": "^1.1.0",
119
119
  "@types/node": "^22.13.10",
120
- "@typescript-eslint/rule-tester": "^8.35.1",
121
- "@unocss/eslint-plugin": "^66.3.2",
120
+ "@typescript-eslint/rule-tester": "^8.37.0",
121
+ "@unocss/eslint-plugin": "^66.3.3",
122
122
  "astro-eslint-parser": "^1.2.2",
123
- "eslint": "^9.30.1",
123
+ "eslint": "^9.31.0",
124
124
  "eslint-plugin-astro": "^1.3.1",
125
125
  "eslint-plugin-format": "^1.0.1",
126
126
  "eslint-plugin-react-hooks": "^5.2.0",
@@ -133,7 +133,7 @@
133
133
  "tsdown": "^0.12.9",
134
134
  "tsx": "^4.20.3",
135
135
  "typescript": "^5.8.3",
136
- "unocss": "^66.3.2",
136
+ "unocss": "^66.3.3",
137
137
  "vitest": "^3.2.4",
138
138
  "vue": "^3.5.17"
139
139
  },