@boehringer-ingelheim/eslint-config 9.5.0-typescript-migration.2 → 9.5.0-typescript-migration.3

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.
@@ -12,7 +12,7 @@ let eslint_config = require("eslint/config");
12
12
  let typescript_eslint = require("typescript-eslint");
13
13
  typescript_eslint = require_runtime.__toESM(typescript_eslint, 1);
14
14
  //#region src/configs/base.ts
15
- var base_default = (0, eslint_config.defineConfig)(_eslint_js.configs.recommended, typescript_eslint.configs.recommendedTypeChecked, typescript_eslint.configs.stylisticTypeChecked, eslint_plugin_import.flatConfigs.recommended, eslint_plugin_import.flatConfigs.typescript, eslint_plugin_perfectionist.configs["recommended-natural"], eslint_plugin_sonarjs.configs.recommended, {
15
+ var base_default = (0, eslint_config.defineConfig)(_eslint_js.default.configs.recommended, typescript_eslint.default.configs.recommendedTypeChecked, typescript_eslint.default.configs.stylisticTypeChecked, eslint_plugin_import.default.flatConfigs.recommended, eslint_plugin_import.default.flatConfigs.typescript, eslint_plugin_perfectionist.default.configs["recommended-natural"], eslint_plugin_sonarjs.default.configs.recommended, {
16
16
  languageOptions: { parserOptions: { projectService: true } },
17
17
  linterOptions: { reportUnusedDisableDirectives: "error" },
18
18
  rules: {
@@ -1,10 +1,10 @@
1
1
  import { PERFECTIONIST_SETTINGS, SORT_CLASSES_GROUPS, SORT_IMPORTS_GROUPS, SORT_INTERSECTION_TYPES_GROUPS } from "../lib/eslint-plugin-perfectionist.mjs";
2
- import * as eslint from "@eslint/js";
3
- import * as importPlugin from "eslint-plugin-import";
4
- import * as perfectionist from "eslint-plugin-perfectionist";
5
- import * as sonarjs from "eslint-plugin-sonarjs";
2
+ import eslint from "@eslint/js";
3
+ import importPlugin from "eslint-plugin-import";
4
+ import perfectionist from "eslint-plugin-perfectionist";
5
+ import sonarjs from "eslint-plugin-sonarjs";
6
6
  import { defineConfig } from "eslint/config";
7
- import * as tseslint from "typescript-eslint";
7
+ import tseslint from "typescript-eslint";
8
8
  //#region src/configs/base.ts
9
9
  var base_default = defineConfig(eslint.configs.recommended, tseslint.configs.recommendedTypeChecked, tseslint.configs.stylisticTypeChecked, importPlugin.flatConfigs.recommended, importPlugin.flatConfigs.typescript, perfectionist.configs["recommended-natural"], sonarjs.configs.recommended, {
10
10
  languageOptions: { parserOptions: { projectService: true } },
@@ -1 +1 @@
1
- {"version":3,"file":"base.mjs","names":[],"sources":["../../src/configs/base.ts"],"sourcesContent":["import * as eslint from '@eslint/js';\nimport * as importPlugin from 'eslint-plugin-import';\nimport * as perfectionist from 'eslint-plugin-perfectionist';\nimport * as sonarjs from 'eslint-plugin-sonarjs';\nimport { defineConfig } from 'eslint/config';\nimport * as tseslint from 'typescript-eslint';\nimport {\n PERFECTIONIST_SETTINGS,\n SORT_CLASSES_GROUPS,\n SORT_IMPORTS_GROUPS,\n SORT_INTERSECTION_TYPES_GROUPS,\n} from '../lib/eslint-plugin-perfectionist.js';\n\nexport default defineConfig(\n eslint.configs.recommended,\n tseslint.configs.recommendedTypeChecked,\n tseslint.configs.stylisticTypeChecked,\n importPlugin.flatConfigs.recommended,\n importPlugin.flatConfigs.typescript,\n perfectionist.configs['recommended-natural'],\n sonarjs.configs.recommended,\n {\n languageOptions: {\n parserOptions: {\n // find the tsconfig.json nearest each source file\n projectService: true,\n },\n },\n linterOptions: {\n reportUnusedDisableDirectives: 'error',\n },\n rules: {\n // @typescript-eslint: https://github.com/typescript-eslint/typescript-eslint/tree/main/packages/eslint-plugin/docs/rules\n '@typescript-eslint/adjacent-overload-signatures': 'off', // disabled due to conflict with eslint-plugin-perfectionist\n '@typescript-eslint/no-floating-promises': ['error', { ignoreVoid: true }],\n '@typescript-eslint/no-misused-promises': [\n 'error',\n {\n checksVoidReturn: false,\n },\n ],\n '@typescript-eslint/no-unused-vars': [\n 'error',\n {\n argsIgnorePattern: '^_',\n caughtErrorsIgnorePattern: '^_',\n varsIgnorePattern: '^_',\n },\n ],\n '@typescript-eslint/sort-type-constituents': 'off', // disabled due to conflict with eslint-plugin-perfectionist\n\n // eslint: https://github.com/eslint/eslint/tree/main/lib/rules\n '@typescript-eslint/dot-notation': ['error', { allowPattern: '^[a-z]+(_[a-z]+)+$' }],\n 'arrow-body-style': ['error', 'as-needed'],\n camelcase: 'warn',\n curly: 'error',\n 'default-case': 'error',\n eqeqeq: 'error',\n 'logical-assignment-operators': ['error', 'never'],\n 'no-console': ['warn', { allow: ['warn', 'error'] }],\n 'no-else-return': ['error', { allowElseIf: false }],\n 'no-lonely-if': 'error',\n 'no-negated-condition': 'error',\n 'no-nested-ternary': 'error',\n 'no-plusplus': ['error', { allowForLoopAfterthoughts: true }],\n 'no-unneeded-ternary': 'error',\n 'no-useless-concat': 'error',\n 'operator-assignment': ['error', 'never'],\n 'prefer-template': 'error',\n 'sort-imports': 'off', // disabled due to conflict with eslint-plugin-perfectionist\n 'sort-keys': 'off', // disabled due to conflict with eslint-plugin-perfectionist\n\n // eslint-plugin-import: https://github.com/import-js/eslint-plugin-import/tree/main/docs/rules\n 'import/no-cycle': 'error',\n /**\n * The rule is disabled for now as it is not compatible with flat-configs, without adding an artifical `.eslintrc` file.\n *\n * @see: https://github.com/import-js/eslint-plugin-import/issues/3079#issuecomment-2557191925\n * @todo Enable rule, as soon as fix is available: https://github.com/Boehringer-Ingelheim/eslint-config/blob/9f028ed43bb5db11082a2982f249ddfe7eaf5c13/configs/base.js#L77\n */\n 'import/no-unused-modules': 'off',\n 'import/order': 'off', // disabled due to conflict with eslint-plugin-perfectionist\n 'import/prefer-default-export': 'off',\n\n // Deactivated as TypeScript provides the same checks as part of standard type checking: https://typescript-eslint.io/linting/troubleshooting/performance-troubleshooting\n 'import/default': 'off',\n 'import/named': 'off',\n 'import/namespace': 'off',\n 'import/no-named-as-default-member': 'off',\n 'import/no-unresolved': 'off',\n\n // eslint-plugin-perfectionist: https://github.com/azat-io/eslint-plugin-perfectionist\n 'perfectionist/sort-classes': [\n 'error',\n {\n groups: SORT_CLASSES_GROUPS,\n },\n ],\n 'perfectionist/sort-imports': [\n 'error',\n {\n groups: SORT_IMPORTS_GROUPS,\n newlinesBetween: 0, // No newlines are allowed between groups\n },\n ],\n 'perfectionist/sort-intersection-types': [\n 'error',\n {\n groups: SORT_INTERSECTION_TYPES_GROUPS,\n },\n ],\n 'perfectionist/sort-named-imports': [\n 'error',\n {\n ignoreAlias: true,\n },\n ],\n 'perfectionist/sort-objects': [\n 'error',\n {\n partitionByComment: true,\n },\n ],\n },\n settings: {\n 'import/resolver': {\n typescript: true,\n },\n perfectionist: {\n ...PERFECTIONIST_SETTINGS,\n },\n },\n },\n {\n files: [\n '**/*.d.ts', // TypeScript declaration files\n '**/*.{spec,test}.{js,cjs,mjs,jsx,ts,cts,mts,tsx}', // Usually test files\n './*.{js,cjs,mjs,ts,cts,mts}', // Mostly configuration files on root level\n ],\n rules: {\n 'import/no-unused-modules': 'off',\n },\n },\n);\n"],"mappings":";;;;;;;;AAaA,IAAA,eAAe,aACb,OAAO,QAAQ,aACf,SAAS,QAAQ,wBACjB,SAAS,QAAQ,sBACjB,aAAa,YAAY,aACzB,aAAa,YAAY,YACzB,cAAc,QAAQ,wBACtB,QAAQ,QAAQ,aAChB;CACE,iBAAiB,EACf,eAAe,EAEb,gBAAgB,KAClB,EACF;CACA,eAAe,EACb,+BAA+B,QACjC;CACA,OAAO;EAEL,mDAAmD;EACnD,2CAA2C,CAAC,SAAS,EAAE,YAAY,KAAK,CAAC;EACzE,0CAA0C,CACxC,SACA,EACE,kBAAkB,MACpB,CACF;EACA,qCAAqC,CACnC,SACA;GACE,mBAAmB;GACnB,2BAA2B;GAC3B,mBAAmB;EACrB,CACF;EACA,6CAA6C;EAG7C,mCAAmC,CAAC,SAAS,EAAE,cAAc,qBAAqB,CAAC;EACnF,oBAAoB,CAAC,SAAS,WAAW;EACzC,WAAW;EACX,OAAO;EACP,gBAAgB;EAChB,QAAQ;EACR,gCAAgC,CAAC,SAAS,OAAO;EACjD,cAAc,CAAC,QAAQ,EAAE,OAAO,CAAC,QAAQ,OAAO,EAAE,CAAC;EACnD,kBAAkB,CAAC,SAAS,EAAE,aAAa,MAAM,CAAC;EAClD,gBAAgB;EAChB,wBAAwB;EACxB,qBAAqB;EACrB,eAAe,CAAC,SAAS,EAAE,2BAA2B,KAAK,CAAC;EAC5D,uBAAuB;EACvB,qBAAqB;EACrB,uBAAuB,CAAC,SAAS,OAAO;EACxC,mBAAmB;EACnB,gBAAgB;EAChB,aAAa;EAGb,mBAAmB;;;;;;;EAOnB,4BAA4B;EAC5B,gBAAgB;EAChB,gCAAgC;EAGhC,kBAAkB;EAClB,gBAAgB;EAChB,oBAAoB;EACpB,qCAAqC;EACrC,wBAAwB;EAGxB,8BAA8B,CAC5B,SACA,EACE,QAAQ,oBACV,CACF;EACA,8BAA8B,CAC5B,SACA;GACE,QAAQ;GACR,iBAAiB;EACnB,CACF;EACA,yCAAyC,CACvC,SACA,EACE,QAAQ,+BACV,CACF;EACA,oCAAoC,CAClC,SACA,EACE,aAAa,KACf,CACF;EACA,8BAA8B,CAC5B,SACA,EACE,oBAAoB,KACtB,CACF;CACF;CACA,UAAU;EACR,mBAAmB,EACjB,YAAY,KACd;EACA,eAAe,EACb,GAAG,uBACL;CACF;AACF,GACA;CACE,OAAO;EACL;EACA;EACA;CACF;CACA,OAAO,EACL,4BAA4B,MAC9B;AACF,CACF"}
1
+ {"version":3,"file":"base.mjs","names":[],"sources":["../../src/configs/base.ts"],"sourcesContent":["import eslint from '@eslint/js';\nimport importPlugin from 'eslint-plugin-import';\nimport perfectionist from 'eslint-plugin-perfectionist';\nimport sonarjs from 'eslint-plugin-sonarjs';\nimport { defineConfig } from 'eslint/config';\nimport tseslint from 'typescript-eslint';\nimport {\n PERFECTIONIST_SETTINGS,\n SORT_CLASSES_GROUPS,\n SORT_IMPORTS_GROUPS,\n SORT_INTERSECTION_TYPES_GROUPS,\n} from '../lib/eslint-plugin-perfectionist.js';\n\nexport default defineConfig(\n eslint.configs.recommended,\n tseslint.configs.recommendedTypeChecked,\n tseslint.configs.stylisticTypeChecked,\n importPlugin.flatConfigs.recommended,\n importPlugin.flatConfigs.typescript,\n perfectionist.configs['recommended-natural'],\n sonarjs.configs.recommended,\n {\n languageOptions: {\n parserOptions: {\n // find the tsconfig.json nearest each source file\n projectService: true,\n },\n },\n linterOptions: {\n reportUnusedDisableDirectives: 'error',\n },\n rules: {\n // @typescript-eslint: https://github.com/typescript-eslint/typescript-eslint/tree/main/packages/eslint-plugin/docs/rules\n '@typescript-eslint/adjacent-overload-signatures': 'off', // disabled due to conflict with eslint-plugin-perfectionist\n '@typescript-eslint/no-floating-promises': ['error', { ignoreVoid: true }],\n '@typescript-eslint/no-misused-promises': [\n 'error',\n {\n checksVoidReturn: false,\n },\n ],\n '@typescript-eslint/no-unused-vars': [\n 'error',\n {\n argsIgnorePattern: '^_',\n caughtErrorsIgnorePattern: '^_',\n varsIgnorePattern: '^_',\n },\n ],\n '@typescript-eslint/sort-type-constituents': 'off', // disabled due to conflict with eslint-plugin-perfectionist\n\n // eslint: https://github.com/eslint/eslint/tree/main/lib/rules\n '@typescript-eslint/dot-notation': ['error', { allowPattern: '^[a-z]+(_[a-z]+)+$' }],\n 'arrow-body-style': ['error', 'as-needed'],\n camelcase: 'warn',\n curly: 'error',\n 'default-case': 'error',\n eqeqeq: 'error',\n 'logical-assignment-operators': ['error', 'never'],\n 'no-console': ['warn', { allow: ['warn', 'error'] }],\n 'no-else-return': ['error', { allowElseIf: false }],\n 'no-lonely-if': 'error',\n 'no-negated-condition': 'error',\n 'no-nested-ternary': 'error',\n 'no-plusplus': ['error', { allowForLoopAfterthoughts: true }],\n 'no-unneeded-ternary': 'error',\n 'no-useless-concat': 'error',\n 'operator-assignment': ['error', 'never'],\n 'prefer-template': 'error',\n 'sort-imports': 'off', // disabled due to conflict with eslint-plugin-perfectionist\n 'sort-keys': 'off', // disabled due to conflict with eslint-plugin-perfectionist\n\n // eslint-plugin-import: https://github.com/import-js/eslint-plugin-import/tree/main/docs/rules\n 'import/no-cycle': 'error',\n /**\n * The rule is disabled for now as it is not compatible with flat-configs, without adding an artifical `.eslintrc` file.\n *\n * @see: https://github.com/import-js/eslint-plugin-import/issues/3079#issuecomment-2557191925\n * @todo Enable rule, as soon as fix is available: https://github.com/Boehringer-Ingelheim/eslint-config/blob/9f028ed43bb5db11082a2982f249ddfe7eaf5c13/configs/base.js#L77\n */\n 'import/no-unused-modules': 'off',\n 'import/order': 'off', // disabled due to conflict with eslint-plugin-perfectionist\n 'import/prefer-default-export': 'off',\n\n // Deactivated as TypeScript provides the same checks as part of standard type checking: https://typescript-eslint.io/linting/troubleshooting/performance-troubleshooting\n 'import/default': 'off',\n 'import/named': 'off',\n 'import/namespace': 'off',\n 'import/no-named-as-default-member': 'off',\n 'import/no-unresolved': 'off',\n\n // eslint-plugin-perfectionist: https://github.com/azat-io/eslint-plugin-perfectionist\n 'perfectionist/sort-classes': [\n 'error',\n {\n groups: SORT_CLASSES_GROUPS,\n },\n ],\n 'perfectionist/sort-imports': [\n 'error',\n {\n groups: SORT_IMPORTS_GROUPS,\n newlinesBetween: 0, // No newlines are allowed between groups\n },\n ],\n 'perfectionist/sort-intersection-types': [\n 'error',\n {\n groups: SORT_INTERSECTION_TYPES_GROUPS,\n },\n ],\n 'perfectionist/sort-named-imports': [\n 'error',\n {\n ignoreAlias: true,\n },\n ],\n 'perfectionist/sort-objects': [\n 'error',\n {\n partitionByComment: true,\n },\n ],\n },\n settings: {\n 'import/resolver': {\n typescript: true,\n },\n perfectionist: {\n ...PERFECTIONIST_SETTINGS,\n },\n },\n },\n {\n files: [\n '**/*.d.ts', // TypeScript declaration files\n '**/*.{spec,test}.{js,cjs,mjs,jsx,ts,cts,mts,tsx}', // Usually test files\n './*.{js,cjs,mjs,ts,cts,mts}', // Mostly configuration files on root level\n ],\n rules: {\n 'import/no-unused-modules': 'off',\n },\n },\n);\n"],"mappings":";;;;;;;;AAaA,IAAA,eAAe,aACb,OAAO,QAAQ,aACf,SAAS,QAAQ,wBACjB,SAAS,QAAQ,sBACjB,aAAa,YAAY,aACzB,aAAa,YAAY,YACzB,cAAc,QAAQ,wBACtB,QAAQ,QAAQ,aAChB;CACE,iBAAiB,EACf,eAAe,EAEb,gBAAgB,KAClB,EACF;CACA,eAAe,EACb,+BAA+B,QACjC;CACA,OAAO;EAEL,mDAAmD;EACnD,2CAA2C,CAAC,SAAS,EAAE,YAAY,KAAK,CAAC;EACzE,0CAA0C,CACxC,SACA,EACE,kBAAkB,MACpB,CACF;EACA,qCAAqC,CACnC,SACA;GACE,mBAAmB;GACnB,2BAA2B;GAC3B,mBAAmB;EACrB,CACF;EACA,6CAA6C;EAG7C,mCAAmC,CAAC,SAAS,EAAE,cAAc,qBAAqB,CAAC;EACnF,oBAAoB,CAAC,SAAS,WAAW;EACzC,WAAW;EACX,OAAO;EACP,gBAAgB;EAChB,QAAQ;EACR,gCAAgC,CAAC,SAAS,OAAO;EACjD,cAAc,CAAC,QAAQ,EAAE,OAAO,CAAC,QAAQ,OAAO,EAAE,CAAC;EACnD,kBAAkB,CAAC,SAAS,EAAE,aAAa,MAAM,CAAC;EAClD,gBAAgB;EAChB,wBAAwB;EACxB,qBAAqB;EACrB,eAAe,CAAC,SAAS,EAAE,2BAA2B,KAAK,CAAC;EAC5D,uBAAuB;EACvB,qBAAqB;EACrB,uBAAuB,CAAC,SAAS,OAAO;EACxC,mBAAmB;EACnB,gBAAgB;EAChB,aAAa;EAGb,mBAAmB;;;;;;;EAOnB,4BAA4B;EAC5B,gBAAgB;EAChB,gCAAgC;EAGhC,kBAAkB;EAClB,gBAAgB;EAChB,oBAAoB;EACpB,qCAAqC;EACrC,wBAAwB;EAGxB,8BAA8B,CAC5B,SACA,EACE,QAAQ,oBACV,CACF;EACA,8BAA8B,CAC5B,SACA;GACE,QAAQ;GACR,iBAAiB;EACnB,CACF;EACA,yCAAyC,CACvC,SACA,EACE,QAAQ,+BACV,CACF;EACA,oCAAoC,CAClC,SACA,EACE,aAAa,KACf,CACF;EACA,8BAA8B,CAC5B,SACA,EACE,oBAAoB,KACtB,CACF;CACF;CACA,UAAU;EACR,mBAAmB,EACjB,YAAY,KACd;EACA,eAAe,EACb,GAAG,uBACL;CACF;AACF,GACA;CACE,OAAO;EACL;EACA;EACA;CACF;CACA,OAAO,EACL,4BAA4B,MAC9B;AACF,CACF"}
@@ -6,10 +6,10 @@ let _next_eslint_plugin_next = require("@next/eslint-plugin-next");
6
6
  _next_eslint_plugin_next = require_runtime.__toESM(_next_eslint_plugin_next, 1);
7
7
  //#region src/configs/nextjs.ts
8
8
  var nextjs_default = (0, eslint_config.defineConfig)(...require_react.default, {
9
- plugins: { "@next/next": _next_eslint_plugin_next },
9
+ plugins: { "@next/next": _next_eslint_plugin_next.default },
10
10
  rules: {
11
- ..._next_eslint_plugin_next.configs.recommended.rules,
12
- ..._next_eslint_plugin_next.configs["core-web-vitals"].rules
11
+ ..._next_eslint_plugin_next.default.configs.recommended.rules,
12
+ ..._next_eslint_plugin_next.default.configs["core-web-vitals"].rules
13
13
  }
14
14
  }, {
15
15
  files: [`{app,src/app}/**/{${require_nextjs_utils.NEXTJS_ROUTING_FILES.join(",")}}.{ts,tsx}`],
@@ -1,7 +1,7 @@
1
1
  import { NEXTJS_ROUTING_FILES } from "../lib/nextjs.utils.mjs";
2
2
  import react_default from "./react.mjs";
3
3
  import { defineConfig } from "eslint/config";
4
- import * as nextPlugin from "@next/eslint-plugin-next";
4
+ import nextPlugin from "@next/eslint-plugin-next";
5
5
  //#region src/configs/nextjs.ts
6
6
  var nextjs_default = defineConfig(...react_default, {
7
7
  plugins: { "@next/next": nextPlugin },
@@ -1 +1 @@
1
- {"version":3,"file":"nextjs.mjs","names":["react"],"sources":["../../src/configs/nextjs.ts"],"sourcesContent":["import * as nextPlugin from '@next/eslint-plugin-next';\nimport { defineConfig } from 'eslint/config';\nimport { NEXTJS_ROUTING_FILES } from '../lib/nextjs.utils.js';\nimport react from './react.js';\n\nexport default defineConfig(\n ...react,\n {\n plugins: {\n '@next/next': nextPlugin,\n },\n rules: {\n ...nextPlugin.configs.recommended.rules,\n ...nextPlugin.configs['core-web-vitals'].rules,\n },\n },\n {\n files: [`{app,src/app}/**/{${NEXTJS_ROUTING_FILES.join(',')}}.{ts,tsx}`],\n rules: {\n 'import/no-unused-modules': ['off'],\n\n // eslint-plugin-react-refresh: https://github.com/ArnaudBarre/eslint-plugin-react-refresh\n 'react-refresh/only-export-components': [\n 'warn',\n {\n allowExportNames: [\n /**\n * Next.js allows exporting the following options in pages, layouts and route handlers\n *\n * @see https://nextjs.org/docs/app/api-reference/file-conventions/route-segment-config\n */\n 'dynamic',\n 'dynamicParams',\n 'fetchCache',\n 'maxDuration',\n 'preferredRegion',\n 'revalidate',\n 'runtime',\n\n /**\n * Next.js allows exporting the following metadata options in layouts and pages\n *\n * @link https://nextjs.org/docs/app/api-reference/functions/generate-metadata\n */\n 'generateMetadata',\n 'metadata',\n\n /**\n * Next.js allows exporting the following static params functions in pages\n *\n * @link https://nextjs.org/docs/app/api-reference/functions/generate-static-params\n */\n 'generateStaticParams',\n\n /**\n * Next.js allows exporting the following viewport options in layouts and pages\n *\n * @link https://nextjs.org/docs/app/api-reference/functions/generate-viewport\n */\n 'generateViewport',\n 'viewport',\n ],\n },\n ],\n },\n },\n {\n files: [`{instrumentation,src/instrumentation}.{ts,tsx}`],\n rules: {\n 'import/no-unused-modules': ['off'],\n\n // eslint-plugin-react-refresh: https://github.com/ArnaudBarre/eslint-plugin-react-refresh\n 'react-refresh/only-export-components': [\n 'warn',\n {\n allowExportNames: [\n /**\n * Next.js allows exporting the following exports in instrumentation files\n *\n * @link https://nextjs.org/docs/app/guides/instrumentation#convention\n */\n 'register',\n ],\n },\n ],\n },\n },\n {\n /**\n * Next.js 'middleware' files are beeing deprecated in favor of the new proxy files with v16+\n *\n * @link https://nextjs.org/blog/next-16#proxyts-formerly-middlewarets\n */\n files: [`{middleware,src/middleware}.{ts,tsx}`],\n rules: {\n 'import/no-unused-modules': ['off'],\n\n // eslint-plugin-react-refresh: https://github.com/ArnaudBarre/eslint-plugin-react-refresh\n 'react-refresh/only-export-components': [\n 'warn',\n {\n allowExportNames: [\n /**\n * Next.js allows exporting the following config options in middleware\n *\n * @link https://nextjs.org/docs/app/api-reference/file-conventions/middleware#config-object-optional\n */\n 'config',\n ],\n },\n ],\n },\n },\n {\n files: [`{proxy,src/proxy}.{ts,tsx}`],\n rules: {\n 'import/no-unused-modules': ['off'],\n\n // eslint-plugin-react-refresh: https://github.com/ArnaudBarre/eslint-plugin-react-refresh\n 'react-refresh/only-export-components': [\n 'warn',\n {\n allowExportNames: [\n /**\n * Next.js allows exporting the following exports in proxy files\n *\n * @link https://nextjs.org/docs/app/api-reference/file-conventions/proxy#config-object-optional\n */\n 'config',\n 'proxy',\n ],\n },\n ],\n },\n },\n);\n"],"mappings":";;;;;AAKA,IAAA,iBAAe,aACb,GAAGA,eACH;CACE,SAAS,EACP,cAAc,WAChB;CACA,OAAO;EACL,GAAG,WAAW,QAAQ,YAAY;EAClC,GAAG,WAAW,QAAQ,mBAAmB;CAC3C;AACF,GACA;CACE,OAAO,CAAC,qBAAqB,qBAAqB,KAAK,GAAG,EAAE,WAAW;CACvE,OAAO;EACL,4BAA4B,CAAC,KAAK;EAGlC,wCAAwC,CACtC,QACA,EACE,kBAAkB;GAMhB;GACA;GACA;GACA;GACA;GACA;GACA;GAOA;GACA;GAOA;GAOA;GACA;EACF,EACF,CACF;CACF;AACF,GACA;CACE,OAAO,CAAC,gDAAgD;CACxD,OAAO;EACL,4BAA4B,CAAC,KAAK;EAGlC,wCAAwC,CACtC,QACA,EACE,kBAAkB,CAMhB,UACF,EACF,CACF;CACF;AACF,GACA;;;;;;CAME,OAAO,CAAC,sCAAsC;CAC9C,OAAO;EACL,4BAA4B,CAAC,KAAK;EAGlC,wCAAwC,CACtC,QACA,EACE,kBAAkB,CAMhB,QACF,EACF,CACF;CACF;AACF,GACA;CACE,OAAO,CAAC,4BAA4B;CACpC,OAAO;EACL,4BAA4B,CAAC,KAAK;EAGlC,wCAAwC,CACtC,QACA,EACE,kBAAkB,CAMhB,UACA,OACF,EACF,CACF;CACF;AACF,CACF"}
1
+ {"version":3,"file":"nextjs.mjs","names":["react"],"sources":["../../src/configs/nextjs.ts"],"sourcesContent":["import nextPlugin from '@next/eslint-plugin-next';\nimport { defineConfig } from 'eslint/config';\nimport { NEXTJS_ROUTING_FILES } from '../lib/nextjs.utils.js';\nimport react from './react.js';\n\nexport default defineConfig(\n ...react,\n {\n plugins: {\n '@next/next': nextPlugin,\n },\n rules: {\n ...nextPlugin.configs.recommended.rules,\n ...nextPlugin.configs['core-web-vitals'].rules,\n },\n },\n {\n files: [`{app,src/app}/**/{${NEXTJS_ROUTING_FILES.join(',')}}.{ts,tsx}`],\n rules: {\n 'import/no-unused-modules': ['off'],\n\n // eslint-plugin-react-refresh: https://github.com/ArnaudBarre/eslint-plugin-react-refresh\n 'react-refresh/only-export-components': [\n 'warn',\n {\n allowExportNames: [\n /**\n * Next.js allows exporting the following options in pages, layouts and route handlers\n *\n * @see https://nextjs.org/docs/app/api-reference/file-conventions/route-segment-config\n */\n 'dynamic',\n 'dynamicParams',\n 'fetchCache',\n 'maxDuration',\n 'preferredRegion',\n 'revalidate',\n 'runtime',\n\n /**\n * Next.js allows exporting the following metadata options in layouts and pages\n *\n * @link https://nextjs.org/docs/app/api-reference/functions/generate-metadata\n */\n 'generateMetadata',\n 'metadata',\n\n /**\n * Next.js allows exporting the following static params functions in pages\n *\n * @link https://nextjs.org/docs/app/api-reference/functions/generate-static-params\n */\n 'generateStaticParams',\n\n /**\n * Next.js allows exporting the following viewport options in layouts and pages\n *\n * @link https://nextjs.org/docs/app/api-reference/functions/generate-viewport\n */\n 'generateViewport',\n 'viewport',\n ],\n },\n ],\n },\n },\n {\n files: [`{instrumentation,src/instrumentation}.{ts,tsx}`],\n rules: {\n 'import/no-unused-modules': ['off'],\n\n // eslint-plugin-react-refresh: https://github.com/ArnaudBarre/eslint-plugin-react-refresh\n 'react-refresh/only-export-components': [\n 'warn',\n {\n allowExportNames: [\n /**\n * Next.js allows exporting the following exports in instrumentation files\n *\n * @link https://nextjs.org/docs/app/guides/instrumentation#convention\n */\n 'register',\n ],\n },\n ],\n },\n },\n {\n /**\n * Next.js 'middleware' files are beeing deprecated in favor of the new proxy files with v16+\n *\n * @link https://nextjs.org/blog/next-16#proxyts-formerly-middlewarets\n */\n files: [`{middleware,src/middleware}.{ts,tsx}`],\n rules: {\n 'import/no-unused-modules': ['off'],\n\n // eslint-plugin-react-refresh: https://github.com/ArnaudBarre/eslint-plugin-react-refresh\n 'react-refresh/only-export-components': [\n 'warn',\n {\n allowExportNames: [\n /**\n * Next.js allows exporting the following config options in middleware\n *\n * @link https://nextjs.org/docs/app/api-reference/file-conventions/middleware#config-object-optional\n */\n 'config',\n ],\n },\n ],\n },\n },\n {\n files: [`{proxy,src/proxy}.{ts,tsx}`],\n rules: {\n 'import/no-unused-modules': ['off'],\n\n // eslint-plugin-react-refresh: https://github.com/ArnaudBarre/eslint-plugin-react-refresh\n 'react-refresh/only-export-components': [\n 'warn',\n {\n allowExportNames: [\n /**\n * Next.js allows exporting the following exports in proxy files\n *\n * @link https://nextjs.org/docs/app/api-reference/file-conventions/proxy#config-object-optional\n */\n 'config',\n 'proxy',\n ],\n },\n ],\n },\n },\n);\n"],"mappings":";;;;;AAKA,IAAA,iBAAe,aACb,GAAGA,eACH;CACE,SAAS,EACP,cAAc,WAChB;CACA,OAAO;EACL,GAAG,WAAW,QAAQ,YAAY;EAClC,GAAG,WAAW,QAAQ,mBAAmB;CAC3C;AACF,GACA;CACE,OAAO,CAAC,qBAAqB,qBAAqB,KAAK,GAAG,EAAE,WAAW;CACvE,OAAO;EACL,4BAA4B,CAAC,KAAK;EAGlC,wCAAwC,CACtC,QACA,EACE,kBAAkB;GAMhB;GACA;GACA;GACA;GACA;GACA;GACA;GAOA;GACA;GAOA;GAOA;GACA;EACF,EACF,CACF;CACF;AACF,GACA;CACE,OAAO,CAAC,gDAAgD;CACxD,OAAO;EACL,4BAA4B,CAAC,KAAK;EAGlC,wCAAwC,CACtC,QACA,EACE,kBAAkB,CAMhB,UACF,EACF,CACF;CACF;AACF,GACA;;;;;;CAME,OAAO,CAAC,sCAAsC;CAC9C,OAAO;EACL,4BAA4B,CAAC,KAAK;EAGlC,wCAAwC,CACtC,QACA,EACE,kBAAkB,CAMhB,QACF,EACF,CACF;CACF;AACF,GACA;CACE,OAAO,CAAC,4BAA4B;CACpC,OAAO;EACL,4BAA4B,CAAC,KAAK;EAGlC,wCAAwC,CACtC,QACA,EACE,kBAAkB,CAMhB,UACA,OACF,EACF,CACF;CACF;AACF,CACF"}
@@ -3,7 +3,7 @@ let eslint_config = require("eslint/config");
3
3
  let eslint_plugin_playwright = require("eslint-plugin-playwright");
4
4
  eslint_plugin_playwright = require_runtime.__toESM(eslint_plugin_playwright, 1);
5
5
  //#region src/configs/playwright.ts
6
- const playwrightPlugin = eslint_plugin_playwright;
6
+ const playwrightPlugin = eslint_plugin_playwright.default;
7
7
  var playwright_default = (0, eslint_config.defineConfig)({
8
8
  ...playwrightPlugin.configs["flat/recommended"],
9
9
  rules: {
@@ -1,5 +1,5 @@
1
1
  import { defineConfig } from "eslint/config";
2
- import * as playwright from "eslint-plugin-playwright";
2
+ import playwright from "eslint-plugin-playwright";
3
3
  //#region src/configs/playwright.ts
4
4
  const playwrightPlugin = playwright;
5
5
  var playwright_default = defineConfig({
@@ -1 +1 @@
1
- {"version":3,"file":"playwright.mjs","names":[],"sources":["../../src/configs/playwright.ts"],"sourcesContent":["import * as playwright from 'eslint-plugin-playwright';\nimport { defineConfig } from 'eslint/config';\n\nconst playwrightPlugin = playwright as typeof playwright & {\n configs: {\n 'flat/recommended': {\n rules: Record<string, unknown>;\n };\n };\n};\n\nexport default defineConfig({\n ...playwrightPlugin.configs['flat/recommended'],\n rules: {\n /**\n * At the moment, `eslint-plugin-playwright` does not fully support component testing with type information.\n * https://github.com/playwright-community/eslint-plugin-playwright/issues/298\n *\n * The `mount` function is flagged as an error by the `@typescript-eslint/unbound-method` rule.\n * But it is okay to use `mount` in this context for test files.\n * https://typescript-eslint.io/rules/unbound-method/#when-not-to-use-it\n *\n * Hint: `eslint-plugin-jest` has already a customized version of this rule.\n * https://github.com/jest-community/eslint-plugin-jest/blob/main/docs/rules/unbound-method.md\n */\n '@typescript-eslint/unbound-method': 'off',\n\n // eslint-plugin-playwright: https://github.com/playwright-community/eslint-plugin-playwright\n ...playwrightPlugin.configs['flat/recommended'].rules,\n 'playwright/prefer-to-be': 'error',\n 'playwright/prefer-to-have-length': 'error',\n 'playwright/require-top-level-describe': 'error',\n },\n});\n"],"mappings":";;;AAGA,MAAM,mBAAmB;AAQzB,IAAA,qBAAe,aAAa;CAC1B,GAAG,iBAAiB,QAAQ;CAC5B,OAAO;;;;;;;;;;;;EAYL,qCAAqC;EAGrC,GAAG,iBAAiB,QAAQ,oBAAoB;EAChD,2BAA2B;EAC3B,oCAAoC;EACpC,yCAAyC;CAC3C;AACF,CAAC"}
1
+ {"version":3,"file":"playwright.mjs","names":[],"sources":["../../src/configs/playwright.ts"],"sourcesContent":["import playwright from 'eslint-plugin-playwright';\nimport { defineConfig } from 'eslint/config';\n\nconst playwrightPlugin = playwright as typeof playwright & {\n configs: {\n 'flat/recommended': {\n rules: Record<string, unknown>;\n };\n };\n};\n\nexport default defineConfig({\n ...playwrightPlugin.configs['flat/recommended'],\n rules: {\n /**\n * At the moment, `eslint-plugin-playwright` does not fully support component testing with type information.\n * https://github.com/playwright-community/eslint-plugin-playwright/issues/298\n *\n * The `mount` function is flagged as an error by the `@typescript-eslint/unbound-method` rule.\n * But it is okay to use `mount` in this context for test files.\n * https://typescript-eslint.io/rules/unbound-method/#when-not-to-use-it\n *\n * Hint: `eslint-plugin-jest` has already a customized version of this rule.\n * https://github.com/jest-community/eslint-plugin-jest/blob/main/docs/rules/unbound-method.md\n */\n '@typescript-eslint/unbound-method': 'off',\n\n // eslint-plugin-playwright: https://github.com/playwright-community/eslint-plugin-playwright\n ...playwrightPlugin.configs['flat/recommended'].rules,\n 'playwright/prefer-to-be': 'error',\n 'playwright/prefer-to-have-length': 'error',\n 'playwright/require-top-level-describe': 'error',\n },\n});\n"],"mappings":";;;AAGA,MAAM,mBAAmB;AAQzB,IAAA,qBAAe,aAAa;CAC1B,GAAG,iBAAiB,QAAQ;CAC5B,OAAO;;;;;;;;;;;;EAYL,qCAAqC;EAGrC,GAAG,iBAAiB,QAAQ,oBAAoB;EAChD,2BAA2B;EAC3B,oCAAoC;EACpC,yCAAyC;CAC3C;AACF,CAAC"}
@@ -4,9 +4,9 @@ let eslint_config_prettier = require("eslint-config-prettier");
4
4
  eslint_config_prettier = require_runtime.__toESM(eslint_config_prettier, 1);
5
5
  //#region src/configs/prettier-disable.ts
6
6
  var prettier_disable_default = (0, eslint_config.defineConfig)({
7
- ...eslint_config_prettier,
7
+ ...eslint_config_prettier.default,
8
8
  rules: {
9
- ...eslint_config_prettier.rules,
9
+ ...eslint_config_prettier.default.rules,
10
10
  curly: "error"
11
11
  }
12
12
  });
@@ -1,5 +1,5 @@
1
1
  import { defineConfig } from "eslint/config";
2
- import * as prettier from "eslint-config-prettier";
2
+ import prettier from "eslint-config-prettier";
3
3
  //#region src/configs/prettier-disable.ts
4
4
  var prettier_disable_default = defineConfig({
5
5
  ...prettier,
@@ -1 +1 @@
1
- {"version":3,"file":"prettier-disable.mjs","names":[],"sources":["../../src/configs/prettier-disable.ts"],"sourcesContent":["import * as prettier from 'eslint-config-prettier';\nimport { defineConfig } from 'eslint/config';\n\nexport default defineConfig({\n ...prettier,\n rules: {\n ...prettier.rules,\n curly: 'error',\n },\n});\n"],"mappings":";;;AAGA,IAAA,2BAAe,aAAa;CAC1B,GAAG;CACH,OAAO;EACL,GAAG,SAAS;EACZ,OAAO;CACT;AACF,CAAC"}
1
+ {"version":3,"file":"prettier-disable.mjs","names":[],"sources":["../../src/configs/prettier-disable.ts"],"sourcesContent":["import prettier from 'eslint-config-prettier';\nimport { defineConfig } from 'eslint/config';\n\nexport default defineConfig({\n ...prettier,\n rules: {\n ...prettier.rules,\n curly: 'error',\n },\n});\n"],"mappings":";;;AAGA,IAAA,2BAAe,aAAa;CAC1B,GAAG;CACH,OAAO;EACL,GAAG,SAAS;EACZ,OAAO;CACT;AACF,CAAC"}
@@ -4,9 +4,9 @@ let eslint_config = require("eslint/config");
4
4
  let typescript_eslint = require("typescript-eslint");
5
5
  typescript_eslint = require_runtime.__toESM(typescript_eslint, 1);
6
6
  //#region src/configs/strict.ts
7
- const strictTemplateExpressionsRule = typescript_eslint.plugin.rules["restrict-template-expressions"];
7
+ const strictTemplateExpressionsRule = typescript_eslint.default.plugin.rules["restrict-template-expressions"];
8
8
  if (!strictTemplateExpressionsRule) throw new Error("Expected to find the \"restrict-template-expressions\" rule in the typescript-eslint plugin, but it was not found.");
9
- var strict_default = (0, eslint_config.defineConfig)(...require_base.default, typescript_eslint.configs.strictTypeChecked, { rules: {
9
+ var strict_default = (0, eslint_config.defineConfig)(...require_base.default, typescript_eslint.default.configs.strictTypeChecked, { rules: {
10
10
  "@typescript-eslint/consistent-type-imports": "error",
11
11
  "@typescript-eslint/no-import-type-side-effects": "error",
12
12
  "@typescript-eslint/restrict-template-expressions": ["error", {
@@ -1,6 +1,6 @@
1
1
  import base_default from "./base.mjs";
2
2
  import { defineConfig } from "eslint/config";
3
- import * as tseslint from "typescript-eslint";
3
+ import tseslint from "typescript-eslint";
4
4
  //#region src/configs/strict.ts
5
5
  const strictTemplateExpressionsRule = tseslint.plugin.rules["restrict-template-expressions"];
6
6
  if (!strictTemplateExpressionsRule) throw new Error("Expected to find the \"restrict-template-expressions\" rule in the typescript-eslint plugin, but it was not found.");
@@ -1 +1 @@
1
- {"version":3,"file":"strict.mjs","names":["base"],"sources":["../../src/configs/strict.ts"],"sourcesContent":["import { defineConfig } from 'eslint/config';\nimport * as tseslint from 'typescript-eslint';\nimport base from './base.js';\n\nconst strictTemplateExpressionsRule = (\n tseslint.plugin as typeof tseslint.plugin & {\n rules: Record<string, { meta: { docs: { recommended: { strict: [Record<string, unknown>] } } } }>;\n }\n).rules['restrict-template-expressions'];\n\nif (!strictTemplateExpressionsRule) {\n throw new Error(\n 'Expected to find the \"restrict-template-expressions\" rule in the typescript-eslint plugin, but it was not found.',\n );\n}\n\nexport default defineConfig(...base, tseslint.configs.strictTypeChecked, {\n rules: {\n // @typescript-eslint: https://github.com/typescript-eslint/typescript-eslint/tree/main/packages/eslint-plugin/docs/rules\n '@typescript-eslint/consistent-type-imports': 'error',\n '@typescript-eslint/no-import-type-side-effects': 'error',\n '@typescript-eslint/restrict-template-expressions': [\n 'error',\n {\n ...strictTemplateExpressionsRule.meta.docs.recommended.strict[0],\n allowNumber: true,\n },\n ],\n\n // eslint-plugin-import: https://github.com/import-js/eslint-plugin-import/tree/main/docs/rules\n 'import/consistent-type-specifier-style': ['error', 'prefer-top-level'],\n },\n});\n"],"mappings":";;;;AAIA,MAAM,gCACJ,SAAS,OAGT,MAAM;AAER,IAAI,CAAC,+BACH,MAAM,IAAI,MACR,oHACF;AAGF,IAAA,iBAAe,aAAa,GAAGA,cAAM,SAAS,QAAQ,mBAAmB,EACvE,OAAO;CAEL,8CAA8C;CAC9C,kDAAkD;CAClD,oDAAoD,CAClD,SACA;EACE,GAAG,8BAA8B,KAAK,KAAK,YAAY,OAAO;EAC9D,aAAa;CACf,CACF;CAGA,0CAA0C,CAAC,SAAS,kBAAkB;AACxE,EACF,CAAC"}
1
+ {"version":3,"file":"strict.mjs","names":["base"],"sources":["../../src/configs/strict.ts"],"sourcesContent":["import { defineConfig } from 'eslint/config';\nimport tseslint from 'typescript-eslint';\nimport base from './base.js';\n\nconst strictTemplateExpressionsRule = (\n tseslint.plugin as typeof tseslint.plugin & {\n rules: Record<string, { meta: { docs: { recommended: { strict: [Record<string, unknown>] } } } }>;\n }\n).rules['restrict-template-expressions'];\n\nif (!strictTemplateExpressionsRule) {\n throw new Error(\n 'Expected to find the \"restrict-template-expressions\" rule in the typescript-eslint plugin, but it was not found.',\n );\n}\n\nexport default defineConfig(...base, tseslint.configs.strictTypeChecked, {\n rules: {\n // @typescript-eslint: https://github.com/typescript-eslint/typescript-eslint/tree/main/packages/eslint-plugin/docs/rules\n '@typescript-eslint/consistent-type-imports': 'error',\n '@typescript-eslint/no-import-type-side-effects': 'error',\n '@typescript-eslint/restrict-template-expressions': [\n 'error',\n {\n ...strictTemplateExpressionsRule.meta.docs.recommended.strict[0],\n allowNumber: true,\n },\n ],\n\n // eslint-plugin-import: https://github.com/import-js/eslint-plugin-import/tree/main/docs/rules\n 'import/consistent-type-specifier-style': ['error', 'prefer-top-level'],\n },\n});\n"],"mappings":";;;;AAIA,MAAM,gCACJ,SAAS,OAGT,MAAM;AAER,IAAI,CAAC,+BACH,MAAM,IAAI,MACR,oHACF;AAGF,IAAA,iBAAe,aAAa,GAAGA,cAAM,SAAS,QAAQ,mBAAmB,EACvE,OAAO;CAEL,8CAA8C;CAC9C,kDAAkD;CAClD,oDAAoD,CAClD,SACA;EACE,GAAG,8BAA8B,KAAK,KAAK,YAAY,OAAO;EAC9D,aAAa;CACf,CACF;CAGA,0CAA0C,CAAC,SAAS,kBAAkB;AACxE,EACF,CAAC"}
@@ -15,7 +15,7 @@ let _eslint_compat = require("@eslint/compat");
15
15
  const includeIgnoreFile = (ignoreFilePath = ".gitignore") => {
16
16
  if (typeof ignoreFilePath !== "string") throw new TypeError("Expected a string");
17
17
  if (ignoreFilePath === "") throw new Error("Expected a non-empty string");
18
- return (0, _eslint_compat.includeIgnoreFile)(node_path.resolve((0, node_process.cwd)(), ignoreFilePath));
18
+ return (0, _eslint_compat.includeIgnoreFile)(node_path.default.resolve((0, node_process.cwd)(), ignoreFilePath));
19
19
  };
20
20
  //#endregion
21
21
  exports.includeIgnoreFile = includeIgnoreFile;
@@ -1,4 +1,4 @@
1
- import * as path from "node:path";
1
+ import path from "node:path";
2
2
  import { cwd } from "node:process";
3
3
  import { includeIgnoreFile } from "@eslint/compat";
4
4
  //#region src/lib/include-ignore-file.ts
@@ -1 +1 @@
1
- {"version":3,"file":"include-ignore-file.mjs","names":["includeIgnoreFile","includeIgnoreFileAbsolute"],"sources":["../../src/lib/include-ignore-file.ts"],"sourcesContent":["import * as path from 'node:path';\nimport { cwd } from 'node:process';\nimport { includeIgnoreFile as includeIgnoreFileAbsolute } from '@eslint/compat';\n\n/**\n * Reads an ignore file (e.g. `.gitignore`) and returns an object with the ignore patterns.\n *\n * @param {string} [ignoreFilePath='.gitignore'] - The path to the ignore file. Defaults to `.gitignore`.\n * @throws {TypeError} If the provided path is not a string.\n * @throws {Error} If the provided path is an empty string.\n * @returns {import('@eslint/compat').FlatConfig} The result of including the ignore file at the resolved absolute path.\n */\nexport const includeIgnoreFile = (ignoreFilePath = '.gitignore') => {\n if (typeof ignoreFilePath !== 'string') {\n throw new TypeError('Expected a string');\n }\n\n if (ignoreFilePath === '') {\n throw new Error('Expected a non-empty string');\n }\n\n const absolutePath = path.resolve(cwd(), ignoreFilePath);\n return includeIgnoreFileAbsolute(absolutePath);\n};\n"],"mappings":";;;;;;;;;;;;AAYA,MAAaA,uBAAqB,iBAAiB,iBAAiB;CAClE,IAAI,OAAO,mBAAmB,UAC5B,MAAM,IAAI,UAAU,mBAAmB;CAGzC,IAAI,mBAAmB,IACrB,MAAM,IAAI,MAAM,6BAA6B;CAI/C,OAAOC,kBADc,KAAK,QAAQ,IAAI,GAAG,cACG,CAAC;AAC/C"}
1
+ {"version":3,"file":"include-ignore-file.mjs","names":["includeIgnoreFile","includeIgnoreFileAbsolute"],"sources":["../../src/lib/include-ignore-file.ts"],"sourcesContent":["import path from 'node:path';\nimport { cwd } from 'node:process';\nimport { includeIgnoreFile as includeIgnoreFileAbsolute } from '@eslint/compat';\n\n/**\n * Reads an ignore file (e.g. `.gitignore`) and returns an object with the ignore patterns.\n *\n * @param {string} [ignoreFilePath='.gitignore'] - The path to the ignore file. Defaults to `.gitignore`.\n * @throws {TypeError} If the provided path is not a string.\n * @throws {Error} If the provided path is an empty string.\n * @returns {import('@eslint/compat').FlatConfig} The result of including the ignore file at the resolved absolute path.\n */\nexport const includeIgnoreFile = (ignoreFilePath = '.gitignore') => {\n if (typeof ignoreFilePath !== 'string') {\n throw new TypeError('Expected a string');\n }\n\n if (ignoreFilePath === '') {\n throw new Error('Expected a non-empty string');\n }\n\n const absolutePath = path.resolve(cwd(), ignoreFilePath);\n return includeIgnoreFileAbsolute(absolutePath);\n};\n"],"mappings":";;;;;;;;;;;;AAYA,MAAaA,uBAAqB,iBAAiB,iBAAiB;CAClE,IAAI,OAAO,mBAAmB,UAC5B,MAAM,IAAI,UAAU,mBAAmB;CAGzC,IAAI,mBAAmB,IACrB,MAAM,IAAI,MAAM,6BAA6B;CAI/C,OAAOC,kBADc,KAAK,QAAQ,IAAI,GAAG,cACG,CAAC;AAC/C"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@boehringer-ingelheim/eslint-config",
3
- "version": "9.5.0-typescript-migration.2",
3
+ "version": "9.5.0-typescript-migration.3",
4
4
  "description": "Shared eslint configuration used at Boehringer Ingelheim for code styling",
5
5
  "keywords": [
6
6
  "boehringer",