{"version":3,"file":"ts-CmH3dc5-.cjs","names":["defineConfig","tseslintConfigs","defineConfig","js","importConfig","importPlugin","typescriptConfig","prettier"],"sources":["../src/shared/typescript.ts","../src/ts.ts"],"sourcesContent":["import { defineConfig } from 'eslint/config';\nimport { configs as tseslintConfigs } from 'typescript-eslint';\n\nexport const stylisticTypeChecked = defineConfig(\n  tseslintConfigs.stylisticTypeChecked,\n);\n\nexport default defineConfig(\n  tseslintConfigs.strictTypeChecked,\n  {\n    name: 'typescript/languageOptions',\n    languageOptions: {\n      parserOptions: {\n        projectService: true,\n      },\n    },\n  },\n  {\n    name: 'typescript/custom',\n    files: ['**/*.{ts,tsx,mts,cts}'],\n    rules: {\n      '@typescript-eslint/consistent-type-definitions': 'off',\n      '@typescript-eslint/no-misused-promises': [\n        'error',\n        {\n          checksVoidReturn: {\n            attributes: false,\n          },\n        },\n      ],\n      '@typescript-eslint/no-unused-vars': [\n        'error',\n        {\n          args: 'all',\n          argsIgnorePattern: '^_',\n          caughtErrors: 'all',\n          caughtErrorsIgnorePattern: '^_',\n          destructuredArrayIgnorePattern: '^_',\n          varsIgnorePattern: '^_',\n        },\n      ],\n      '@typescript-eslint/restrict-template-expressions': [\n        'error',\n        {\n          allowNumber: true,\n        },\n      ],\n      // https://tanstack.com/router/v1/docs/framework/react/api/router/redirectFunction\n      '@typescript-eslint/only-throw-error': [\n        'warn',\n        {\n          allow: [\n            {\n              from: 'package',\n              name: 'Redirect',\n              package: '@tanstack/router-core',\n            },\n          ],\n        },\n      ],\n    },\n  },\n  {\n    files: ['**/*.{js,jsx,mjs,cjs}'],\n    ...tseslintConfigs.disableTypeChecked,\n  },\n);\n","import js from '@eslint/js';\nimport { defineConfig } from 'eslint/config';\nimport prettier from 'eslint-config-prettier/flat';\nimport { importX as importPlugin } from 'eslint-plugin-import-x';\nimport globals from 'globals';\n\nimport importConfig from './shared/import.js';\nimport typescriptConfig, { stylisticTypeChecked } from './shared/typescript.js';\n\n// the difference between this and the `configs/typescript.js` file is that this is the entire\n// config for typescript projects, while that file is the eslint typescript config itself\n\nexport default {\n  configs: {\n    recommended: defineConfig(\n      js.configs.recommended,\n      importConfig,\n      importPlugin.flatConfigs.typescript,\n      {\n        name: 'ts/config-file-globals',\n        files: ['*.config.{js,mjs,cjs,ts,mts,cts}'],\n        languageOptions: {\n          globals: globals.node,\n        },\n      },\n      typescriptConfig,\n      prettier,\n    ),\n    stylisticTypeChecked: defineConfig(stylisticTypeChecked),\n  },\n};\n"],"mappings":";;;;;;;;;;;;AAGA,MAAa,wBAAA,GAAuBA,cAAAA,aAAAA,CAClCC,kBAAAA,QAAgB,oBAClB;AAEA,IAAA,sBAAA,GAAeD,cAAAA,aAAAA,CACbC,kBAAAA,QAAgB,mBAChB;CACE,MAAM;CACN,iBAAiB,EACf,eAAe,EACb,gBAAgB,KAClB,EACF;AACF,GACA;CACE,MAAM;CACN,OAAO,CAAC,uBAAuB;CAC/B,OAAO;EACL,kDAAkD;EAClD,0CAA0C,CACxC,SACA,EACE,kBAAkB,EAChB,YAAY,MACd,EACF,CACF;EACA,qCAAqC,CACnC,SACA;GACE,MAAM;GACN,mBAAmB;GACnB,cAAc;GACd,2BAA2B;GAC3B,gCAAgC;GAChC,mBAAmB;EACrB,CACF;EACA,oDAAoD,CAClD,SACA,EACE,aAAa,KACf,CACF;EAEA,uCAAuC,CACrC,QACA,EACE,OAAO,CACL;GACE,MAAM;GACN,MAAM;GACN,SAAS;EACX,CACF,EACF,CACF;CACF;AACF,GACA;CACE,OAAO,CAAC,uBAAuB;CAC/B,GAAGA,kBAAAA,QAAgB;AACrB,CACF;;ACtDA,IAAA,aAAe,EACb,SAAS;CACP,cAAA,GAAaC,cAAAA,aAAAA,CACXC,WAAAA,QAAG,QAAQ,aACXC,eAAAA,gBACAC,uBAAAA,QAAa,YAAY,YACzB;EACE,MAAM;EACN,OAAO,CAAC,kCAAkC;EAC1C,iBAAiB,EACf,SAAS,QAAA,QAAQ,KACnB;CACF,GACAC,oBACAC,4BAAAA,OACF;CACA,uBAAA,GAAsBL,cAAAA,aAAAA,CAAa,oBAAoB;AACzD,EACF"}