@kazupon/eslint-config 0.25.0 → 0.26.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
@@ -14069,7 +14069,7 @@ interface MarkdownOptions {
14069
14069
  * @returns {Promise<Linter.Config[]>}
14070
14070
  * eslint flat configurations with `@eslint/markdown` and overrides
14071
14071
  */
14072
- declare function markdown(options?: MarkdownOptions & OverridesOptions<MarkdownRules>): Promise<Linter.Config[]>;
14072
+ declare function markdown(options?: MarkdownOptions & OverridesOptions): Promise<Linter.Config[]>;
14073
14073
  declare const md: typeof markdown;
14074
14074
 
14075
14075
  /**
@@ -14115,18 +14115,39 @@ interface TypeScriptOptions {
14115
14115
  parserOptions?: TypeScriptParserOptions;
14116
14116
  }
14117
14117
  /**
14118
- * @see https://typescript-eslint.io/getting-started/typed-linting
14118
+ * @see https://typescript-eslint.io/packages/parser/#configuration
14119
14119
  */
14120
14120
  interface TypeScriptParserOptions {
14121
- /**
14122
- * @see https://typescript-eslint.io/packages/parser#project
14123
- * @default true
14124
- */
14125
- project?: boolean | string | string[];
14126
- /**
14127
- * @see https://typescript-eslint.io/packages/parser#tsconfigrootdir
14128
- */
14121
+ cacheLifetime?: {
14122
+ glob?: number | 'Infinity';
14123
+ };
14124
+ disallowAutomaticSingleRunInference?: boolean;
14125
+ ecmaFeatures?: {
14126
+ jsx?: boolean;
14127
+ globalReturn?: boolean;
14128
+ };
14129
+ ecmaVersion?: number | 'latest';
14130
+ emitDecoratorMetadata?: boolean;
14131
+ experimentalDecorators?: boolean;
14132
+ isolatedDeclarations?: boolean;
14133
+ extraFileExtensions?: string[];
14134
+ jsDocParsingMode?: 'all' | 'none' | 'type-info';
14135
+ jsxFragmentName?: string | null;
14136
+ jsxPragma?: string | null;
14137
+ lib?: string[];
14138
+ programs?: undefined[];
14139
+ project?: string | string[] | boolean | null;
14140
+ projectFolderIgnoreList?: string[];
14141
+ projectService?: boolean | TypeScriptProjectServiceOptions;
14129
14142
  tsconfigRootDir?: string;
14143
+ warnOnUnsupportedTypeScriptVersion?: boolean;
14144
+ }
14145
+ /**
14146
+ * @see https://typescript-eslint.io/packages/parser/#projectservice
14147
+ */
14148
+ interface TypeScriptProjectServiceOptions {
14149
+ allowDefaultProject?: string[];
14150
+ defaultProject?: string;
14130
14151
  }
14131
14152
  /**
14132
14153
  * `typescript-eslint` and overrides configuration options
@@ -14303,4 +14324,4 @@ interface YmlOptions {
14303
14324
  declare function yml(options?: YmlOptions & OverridesOptions<YmlRules>): Promise<Linter.Config[]>;
14304
14325
  declare const yaml: typeof yml;
14305
14326
 
14306
- export { type CommentsOptions, type CommentsRules, type CssOptions, type CssRules, type ImportsOptions, type ImportsRules, type JavaScriptOptions, type JavascriptRules, type JsDocumentOptions, type JsdocRules, type JsoncOptions, type JsoncRules, type MarkdownOptions, type MarkdownRules, type OverridesOptions, type PrettierOptions, type PrettierRules, type PromiseOptions, type PromiseRules, type ReactOptions, type ReactRules, type RegexpOptions, type RegexpRules, type SvelteRules, type SvelteScriptOptions, type TomlOptions, type TomlRules, type TypeScriptOptions, type TypeScriptParserOptions, type TypescriptRules, type UnicornOptions, type UnicornRules, type VitestOptions, type VitestRules, type VueRules, type VueScriptOptions, type YmlOptions, type YmlRules, comments, css, defineConfig, imports, javascript, jsdoc, jsonc, markdown, md, prettier, promise, react, regexp, svelte, toml, typescript, unicorn, vitest, vue, yaml, yml };
14327
+ export { type CommentsOptions, type CommentsRules, type CssOptions, type CssRules, type ImportsOptions, type ImportsRules, type JavaScriptOptions, type JavascriptRules, type JsDocumentOptions, type JsdocRules, type JsoncOptions, type JsoncRules, type MarkdownOptions, type MarkdownRules, type OverridesOptions, type PrettierOptions, type PrettierRules, type PromiseOptions, type PromiseRules, type ReactOptions, type ReactRules, type RegexpOptions, type RegexpRules, type SvelteRules, type SvelteScriptOptions, type TomlOptions, type TomlRules, type TypeScriptOptions, type TypeScriptParserOptions, type TypeScriptProjectServiceOptions, type TypescriptRules, type UnicornOptions, type UnicornRules, type VitestOptions, type VitestRules, type VueRules, type VueScriptOptions, type YmlOptions, type YmlRules, comments, css, defineConfig, imports, javascript, jsdoc, jsonc, markdown, md, prettier, promise, react, regexp, svelte, toml, typescript, unicorn, vitest, vue, yaml, yml };
package/dist/index.js CHANGED
@@ -360,7 +360,7 @@ async function markdown(options = {}) {
360
360
  {
361
361
  name: "makrdown/ignore-lint-blocks-in-typescript",
362
362
  files: ["**/*.md/**"],
363
- languageOptions: { parserOptions: {} }
363
+ languageOptions: { parserOptions: { project: null } }
364
364
  },
365
365
  {
366
366
  name: "@kazupon/markdown",
@@ -549,6 +549,7 @@ async function typescript(options = {}) {
549
549
  parserOptions: {
550
550
  extraFileExtensions: extraFileExtensions.map((ext) => `.${ext}`),
551
551
  sourceType: "module",
552
+ tsconfigRootDir: process.cwd(),
552
553
  ...parserOptions
553
554
  }
554
555
  },
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@kazupon/eslint-config",
3
3
  "description": "ESLint config for @kazupon",
4
- "version": "0.25.0",
4
+ "version": "0.26.1",
5
5
  "author": {
6
6
  "email": "kawakazu80@gmail.com",
7
7
  "name": "kazuya kawaguchi"
@@ -171,7 +171,7 @@
171
171
  "bumpp": "^10.1.0",
172
172
  "eslint": "^9.22.0",
173
173
  "eslint-config-prettier": "^10.1.1",
174
- "eslint-import-resolver-typescript": "^3.9.1",
174
+ "eslint-import-resolver-typescript": "^4.0.0",
175
175
  "eslint-plugin-import": "^2.31.0",
176
176
  "eslint-plugin-jsdoc": "^50.6.8",
177
177
  "eslint-plugin-jsonc": "^2.19.1",