js-style-kit 0.0.2 → 0.0.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.
Files changed (77) hide show
  1. package/dist/chunk-4ELR5S33.js +20 -0
  2. package/dist/chunk-4ELR5S33.js.map +1 -0
  3. package/dist/chunk-7FYMBY3Z.js +41 -0
  4. package/dist/chunk-7FYMBY3Z.js.map +1 -0
  5. package/dist/{chunk-AL3W54BT.js → chunk-AHLHRIAC.js} +7 -7
  6. package/dist/{chunk-AL3W54BT.js.map → chunk-AHLHRIAC.js.map} +1 -1
  7. package/dist/{chunk-IOVQNUC6.js → chunk-CNGG6QVG.js} +2 -2
  8. package/dist/{chunk-Q3UZX7NT.js → chunk-CPBLULS5.js} +2 -2
  9. package/dist/chunk-CRVC7SG2.js +70 -0
  10. package/dist/chunk-CRVC7SG2.js.map +1 -0
  11. package/dist/chunk-GPY6RCW5.js +38 -0
  12. package/dist/chunk-GPY6RCW5.js.map +1 -0
  13. package/dist/{chunk-3H3TV7WG.js → chunk-HSSATLSU.js} +3 -3
  14. package/dist/chunk-HSSATLSU.js.map +1 -0
  15. package/dist/{chunk-JY5TAY3J.js → chunk-PSPFBSJV.js} +2 -2
  16. package/dist/chunk-PSPFBSJV.js.map +1 -0
  17. package/dist/{chunk-W56QT6S7.js → chunk-QCFCGFZH.js} +3 -1
  18. package/dist/chunk-QCFCGFZH.js.map +1 -0
  19. package/dist/{chunk-SVENELEJ.js → chunk-TQVG2NFE.js} +60 -65
  20. package/dist/chunk-TQVG2NFE.js.map +1 -0
  21. package/dist/chunk-W7UPJFRB.js +70 -0
  22. package/dist/chunk-W7UPJFRB.js.map +1 -0
  23. package/dist/chunk-WHP6ZMC7.js +21 -0
  24. package/dist/chunk-WHP6ZMC7.js.map +1 -0
  25. package/dist/{chunk-TQWE6NWW.js → chunk-YZ5DAWYS.js} +4 -4
  26. package/dist/chunk-YZ5DAWYS.js.map +1 -0
  27. package/dist/eslint/constants.d.ts +2 -0
  28. package/dist/eslint/constants.js +1 -1
  29. package/dist/eslint/ignores.js +2 -2
  30. package/dist/eslint/index.d.ts +16 -10
  31. package/dist/eslint/index.js +13 -10
  32. package/dist/eslint/index.test.js +19 -14
  33. package/dist/eslint/index.test.js.map +1 -1
  34. package/dist/eslint/javascript/config.d.ts +1 -1
  35. package/dist/eslint/javascript/config.js +3 -3
  36. package/dist/eslint/javascript/rules.d.ts +1 -1
  37. package/dist/eslint/javascript/rules.js +1 -1
  38. package/dist/eslint/jsdoc/config.d.ts +5 -0
  39. package/dist/eslint/jsdoc/config.js +10 -0
  40. package/dist/eslint/jsdoc/config.js.map +1 -0
  41. package/dist/eslint/jsdoc/rules.d.ts +17 -0
  42. package/dist/eslint/jsdoc/rules.js +8 -0
  43. package/dist/eslint/jsdoc/rules.js.map +1 -0
  44. package/dist/eslint/perfectionist/config.js +2 -2
  45. package/dist/eslint/react/config.d.ts +1 -1
  46. package/dist/eslint/react/config.js +3 -3
  47. package/dist/eslint/react/rules.d.ts +2 -2
  48. package/dist/eslint/react/rules.js +1 -1
  49. package/dist/eslint/react-compiler/config.d.ts +5 -0
  50. package/dist/eslint/react-compiler/config.js +9 -0
  51. package/dist/eslint/react-compiler/config.js.map +1 -0
  52. package/dist/eslint/typescript/config.d.ts +1 -1
  53. package/dist/eslint/typescript/config.js +3 -3
  54. package/dist/eslint/typescript/rules.js +1 -1
  55. package/dist/index.js +13 -10
  56. package/dist/{magic-string.es-UEL4LDHN.js → magic-string.es-HYRYIEM3.js} +3 -3
  57. package/dist/magic-string.es-HYRYIEM3.js.map +1 -0
  58. package/dist/prettier/index.test.js +15 -12
  59. package/dist/prettier/index.test.js.map +1 -1
  60. package/dist/types/modules.d.d.ts +3 -0
  61. package/dist/types/modules.d.js +1 -0
  62. package/dist/types/modules.d.js.map +1 -0
  63. package/package.json +18 -10
  64. package/dist/chunk-3H3TV7WG.js.map +0 -1
  65. package/dist/chunk-EQOUQWIX.js +0 -45
  66. package/dist/chunk-EQOUQWIX.js.map +0 -1
  67. package/dist/chunk-GZC424B7.js +0 -36
  68. package/dist/chunk-GZC424B7.js.map +0 -1
  69. package/dist/chunk-JY5TAY3J.js.map +0 -1
  70. package/dist/chunk-SVENELEJ.js.map +0 -1
  71. package/dist/chunk-TQWE6NWW.js.map +0 -1
  72. package/dist/chunk-W56QT6S7.js.map +0 -1
  73. package/dist/chunk-YS5XHQB5.js +0 -23
  74. package/dist/chunk-YS5XHQB5.js.map +0 -1
  75. package/dist/magic-string.es-UEL4LDHN.js.map +0 -1
  76. /package/dist/{chunk-IOVQNUC6.js.map → chunk-CNGG6QVG.js.map} +0 -0
  77. /package/dist/{chunk-Q3UZX7NT.js.map → chunk-CPBLULS5.js.map} +0 -0
@@ -0,0 +1,70 @@
1
+ import {
2
+ reactCompilerEslintConfig
3
+ } from "./chunk-4ELR5S33.js";
4
+ import {
5
+ tseslintConfig
6
+ } from "./chunk-GPY6RCW5.js";
7
+ import {
8
+ baseEslintConfig
9
+ } from "./chunk-HSSATLSU.js";
10
+ import {
11
+ jsdocConfig
12
+ } from "./chunk-WHP6ZMC7.js";
13
+ import {
14
+ perfectionistConfig
15
+ } from "./chunk-CNGG6QVG.js";
16
+ import {
17
+ reactEslintConfig
18
+ } from "./chunk-7FYMBY3Z.js";
19
+ import {
20
+ ignoresConfig
21
+ } from "./chunk-CPBLULS5.js";
22
+
23
+ // ../utils/dist/index.js
24
+ var isBoolean = (value) => {
25
+ return typeof value === "boolean";
26
+ };
27
+ var isString = (value) => {
28
+ return typeof value === "string";
29
+ };
30
+
31
+ // src/eslint/index.ts
32
+ var eslintConfig = ({
33
+ functionStyle = "arrow",
34
+ ignores = [],
35
+ jsdoc = { requireJsdoc: false },
36
+ react = false,
37
+ sorting = true,
38
+ typescript = true,
39
+ ...options
40
+ } = {}) => {
41
+ const configs = [
42
+ ignoresConfig(ignores),
43
+ baseEslintConfig(functionStyle)
44
+ ];
45
+ if (jsdoc) {
46
+ configs.push(jsdocConfig(isBoolean(jsdoc) ? false : jsdoc.requireJsdoc));
47
+ }
48
+ if (typescript) {
49
+ configs.push(
50
+ ...tseslintConfig(
51
+ isString(typescript) ? typescript : void 0
52
+ )
53
+ );
54
+ }
55
+ if (react) {
56
+ configs.push(reactEslintConfig(functionStyle, Boolean(typescript)));
57
+ if ("reactCompiler" in options && options.reactCompiler) {
58
+ configs.push(reactCompilerEslintConfig);
59
+ }
60
+ }
61
+ if (sorting) {
62
+ configs.push(perfectionistConfig);
63
+ }
64
+ return configs;
65
+ };
66
+
67
+ export {
68
+ eslintConfig
69
+ };
70
+ //# sourceMappingURL=chunk-W7UPJFRB.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../utils/dist/index.js","../src/eslint/index.ts"],"sourcesContent":["export const isBoolean = (value) => {\n return typeof value === \"boolean\";\n};\nexport const isString = (value) => {\n return typeof value === \"string\";\n};\nexport const isNumber = (value) => {\n return typeof value === \"number\";\n};\nexport const isObject = (value) => {\n return value !== null && typeof value === \"object\" && !Array.isArray(value);\n};\nexport const isArray = (value) => {\n return Array.isArray(value);\n};\n","import type { Linter } from \"eslint\";\n\nimport { isBoolean, isString } from \"@repo/utils\";\n\nimport type { FunctionStyle } from \"../types.js\";\n\nimport { ignoresConfig } from \"./ignores.js\";\nimport { baseEslintConfig } from \"./javascript/config.js\";\nimport { jsdocConfig } from \"./jsdoc/config.js\";\nimport { perfectionistConfig } from \"./perfectionist/config.js\";\nimport { reactCompilerEslintConfig } from \"./react-compiler/config.js\";\nimport { reactEslintConfig } from \"./react/config.js\";\nimport { tseslintConfig } from \"./typescript/config.js\";\n\nexport type EslintConfigOptions = {\n functionStyle?: \"off\" | FunctionStyle;\n ignores?: string[];\n jsdoc?:\n | boolean\n | {\n requireJsdoc?: boolean;\n };\n sorting?: boolean;\n typescript?: boolean | string;\n} & (\n | {\n react: true;\n reactCompiler?: boolean;\n }\n | {\n react?: boolean;\n }\n);\n\n/**\n * This function configures your ESLint config based on inputs. It accepts a configuration object with the following properties:\n * @param options - The optional configuration object.\n * @param options.functionStyle - The function style to use. Defaults to \"arrow\".\n * @param options.ignores - An array of paths to ignore. Already excludes `node_modules` and `dist`.\n * @param options.jsdoc - Whether to include JSDoc rules. Defaults to true.\n * @param options.react - Whether to include React rules. Defaults to false.\n * @param options.sorting - Whether to include sorting rules from Perfectionist. Defaults to true.\n * @param options.typescript - Whether to include TypeScript rules OR a string with the path to your tsconfig. Defaults to true.\n * @returns The ESLint configuration array.\n */\nexport const eslintConfig = ({\n functionStyle = \"arrow\",\n ignores = [],\n jsdoc = { requireJsdoc: false },\n react = false,\n sorting = true,\n typescript = true,\n ...options\n}: EslintConfigOptions = {}): Linter.Config[] => {\n const configs: Linter.Config[] = [\n ignoresConfig(ignores),\n baseEslintConfig(functionStyle),\n ];\n\n if (jsdoc) {\n configs.push(jsdocConfig(isBoolean(jsdoc) ? false : jsdoc.requireJsdoc));\n }\n\n if (typescript) {\n configs.push(\n ...(tseslintConfig(\n isString(typescript) ? typescript : undefined,\n ) as Linter.Config[]),\n );\n }\n\n if (react) {\n configs.push(reactEslintConfig(functionStyle, Boolean(typescript)));\n\n if (\"reactCompiler\" in options && options.reactCompiler) {\n configs.push(reactCompilerEslintConfig);\n }\n }\n\n if (sorting) {\n configs.push(perfectionistConfig);\n }\n\n return configs;\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAAO,IAAM,YAAY,CAAC,UAAU;AAChC,SAAO,OAAO,UAAU;AAC5B;AACO,IAAM,WAAW,CAAC,UAAU;AAC/B,SAAO,OAAO,UAAU;AAC5B;;;ACwCO,IAAM,eAAe,CAAC;AAAA,EAC3B,gBAAgB;AAAA,EAChB,UAAU,CAAC;AAAA,EACX,QAAQ,EAAE,cAAc,MAAM;AAAA,EAC9B,QAAQ;AAAA,EACR,UAAU;AAAA,EACV,aAAa;AAAA,EACb,GAAG;AACL,IAAyB,CAAC,MAAuB;AAC/C,QAAM,UAA2B;AAAA,IAC/B,cAAc,OAAO;AAAA,IACrB,iBAAiB,aAAa;AAAA,EAChC;AAEA,MAAI,OAAO;AACT,YAAQ,KAAK,YAAY,UAAU,KAAK,IAAI,QAAQ,MAAM,YAAY,CAAC;AAAA,EACzE;AAEA,MAAI,YAAY;AACd,YAAQ;AAAA,MACN,GAAI;AAAA,QACF,SAAS,UAAU,IAAI,aAAa;AAAA,MACtC;AAAA,IACF;AAAA,EACF;AAEA,MAAI,OAAO;AACT,YAAQ,KAAK,kBAAkB,eAAe,QAAQ,UAAU,CAAC,CAAC;AAElE,QAAI,mBAAmB,WAAW,QAAQ,eAAe;AACvD,cAAQ,KAAK,yBAAyB;AAAA,IACxC;AAAA,EACF;AAEA,MAAI,SAAS;AACX,YAAQ,KAAK,mBAAmB;AAAA,EAClC;AAEA,SAAO;AACT;","names":[]}
@@ -0,0 +1,21 @@
1
+ import {
2
+ jsdocRules
3
+ } from "./chunk-CRVC7SG2.js";
4
+ import {
5
+ configNames
6
+ } from "./chunk-QCFCGFZH.js";
7
+
8
+ // src/eslint/jsdoc/config.ts
9
+ import jsdoc from "eslint-plugin-jsdoc";
10
+ var jsdocConfig = (requireJsdoc = false) => ({
11
+ name: configNames.base,
12
+ plugins: {
13
+ jsdoc
14
+ },
15
+ rules: jsdocRules(requireJsdoc)
16
+ });
17
+
18
+ export {
19
+ jsdocConfig
20
+ };
21
+ //# sourceMappingURL=chunk-WHP6ZMC7.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/eslint/jsdoc/config.ts"],"sourcesContent":["import type { Linter } from \"eslint\";\n\nimport jsdoc from \"eslint-plugin-jsdoc\";\n\nimport { configNames } from \"../constants.js\";\nimport { jsdocRules } from \"./rules.js\";\n\nexport const jsdocConfig = (requireJsdoc = false): Linter.Config => ({\n name: configNames.base,\n plugins: {\n jsdoc,\n },\n rules: jsdocRules(requireJsdoc),\n});\n"],"mappings":";;;;;;;;AAEA,OAAO,WAAW;AAKX,IAAM,cAAc,CAAC,eAAe,WAA0B;AAAA,EACnE,MAAM,YAAY;AAAA,EAClB,SAAS;AAAA,IACP;AAAA,EACF;AAAA,EACA,OAAO,WAAW,YAAY;AAChC;","names":[]}
@@ -10,6 +10,8 @@ var reactRules = (functionStyle, typescript) => {
10
10
  * Disabled in favor of TypeScript for type checking, reducing build size
11
11
  */
12
12
  ...typescript ? {} : { "react/prop-types": "warn" },
13
+ "react-hooks/exhaustive-deps": "warn",
14
+ "react-hooks/rules-of-hooks": "warn",
13
15
  /**
14
16
  * Require an explicit type when using button elements.
15
17
  *
@@ -23,7 +25,7 @@ var reactRules = (functionStyle, typescript) => {
23
25
  *
24
26
  * 🔧 Fixable - https://github.com/jsx-eslint/eslint-plugin-react/blob/HEAD/docs/rules/function-component-definition.md
25
27
  */
26
- "react/function-component-definition": [
28
+ "react/function-component-definition": functionStyle === "off" ? "off" : [
27
29
  "warn",
28
30
  {
29
31
  namedComponents: functionStyleMap[functionStyle],
@@ -115,8 +117,6 @@ var reactRules = (functionStyle, typescript) => {
115
117
  * 🚫 Not fixable - https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/no-unstable-nested-components.md
116
118
  */
117
119
  "react/no-unstable-nested-components": "warn",
118
- "react/prop-types": "warn",
119
- "react/react-in-jsx-scope": "warn",
120
120
  "react/require-render-return": "warn",
121
121
  /**
122
122
  * Disallow closing tags for components without children.
@@ -130,4 +130,4 @@ var reactRules = (functionStyle, typescript) => {
130
130
  export {
131
131
  reactRules
132
132
  };
133
- //# sourceMappingURL=chunk-TQWE6NWW.js.map
133
+ //# sourceMappingURL=chunk-YZ5DAWYS.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/eslint/react/rules.ts"],"sourcesContent":["import type { EslintRuleConfig, FunctionStyle } from \"../../types.js\";\n\ntype ReactFunctionDefinitions =\n | \"arrow-function\"\n | \"function-declaration\"\n | \"function-expression\";\n\ntype ReactRules = Record<\n `${\"react\" | \"react-hooks\"}/${string}`,\n EslintRuleConfig\n> & {\n \"react/destructuring-assignment\"?: EslintRuleConfig<\n \"always\" | \"never\",\n {\n destructureInSignature?: \"always\" | \"ignore\";\n ignoreClassFields?: boolean;\n }\n >;\n \"react/function-component-definition\"?: EslintRuleConfig<{\n namedComponents?: ReactFunctionDefinitions | ReactFunctionDefinitions[];\n unnamedComponents?:\n | \"arrow-function\"\n | \"function-expression\"\n | (\"arrow-function\" | \"function-expression\")[];\n }>;\n};\n\nexport const reactRules = (\n functionStyle: \"off\" | FunctionStyle,\n typescript: boolean,\n): ReactRules => {\n const functionStyleMap: Record<FunctionStyle, ReactFunctionDefinitions> = {\n arrow: \"arrow-function\",\n declaration: \"function-declaration\",\n expression: \"function-expression\",\n };\n\n return {\n /**\n * Disabled in favor of TypeScript for type checking, reducing build size\n */\n ...(typescript ? {} : { \"react/prop-types\": \"warn\" }),\n \"react-hooks/exhaustive-deps\": \"warn\",\n \"react-hooks/rules-of-hooks\": \"warn\",\n /**\n * Require an explicit type when using button elements.\n *\n * 🚫 Not fixable - https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/button-has-type.md\n */\n \"react/button-has-type\": \"warn\",\n \"react/destructuring-assignment\": [\"warn\", \"always\"],\n \"react/display-name\": \"warn\",\n /**\n * Require consistent function type for function components.\n *\n * 🔧 Fixable - https://github.com/jsx-eslint/eslint-plugin-react/blob/HEAD/docs/rules/function-component-definition.md\n */\n \"react/function-component-definition\":\n functionStyle === \"off\" ? \"off\" : (\n [\n \"warn\",\n {\n namedComponents: functionStyleMap[functionStyle],\n unnamedComponents:\n functionStyle === \"arrow\" ? \"arrow-function\" : (\n \"function-expression\"\n ),\n },\n ]\n ),\n /**\n * Require destructuring and symmetric naming of `useState` hook value and setter variables.\n *\n * 🚫 Not fixable - https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/hook-use-state.md\n */\n \"react/hook-use-state\": \"warn\",\n /**\n * Require consistent boolean attributes notation in JSX.\n *\n * 🔧 Fixable - https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/jsx-boolean-value.md\n */\n \"react/jsx-boolean-value\": \"warn\",\n /**\n * Disallow unnecessary curly braces in JSX props and children.\n *\n * 🔧 Fixable - https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/jsx-curly-brace-presence.md\n */\n \"react/jsx-curly-brace-presence\": \"warn\",\n /**\n * Require using shorthand form for React fragments, unless required.\n *\n * 🔧 Fixable - https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/jsx-fragments.md\n */\n \"react/jsx-fragments\": \"warn\",\n \"react/jsx-key\": \"warn\",\n \"react/jsx-no-comment-textnodes\": \"warn\",\n \"react/jsx-no-duplicate-props\": \"warn\",\n /**\n * Prevent problematic leaked values from being rendered.\n *\n * 🔧 Fixable - https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/jsx-no-leaked-render.md\n */\n \"react/jsx-no-leaked-render\": \"warn\",\n /**\n * Prevents usage of unsafe `target='_blank'`.\n *\n * This rule is a part of `react/recommended`, but we've modified it to\n * allow referrer.\n *\n * 🔧 Fixable - https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/jsx-no-target-blank.md\n */\n \"react/jsx-no-target-blank\": [\n \"warn\",\n {\n allowReferrer: true,\n },\n ],\n \"react/jsx-no-undef\": \"warn\",\n /**\n * Disallow empty React fragments.\n *\n * 🔧 Fixable - https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/jsx-no-useless-fragment.md\n */\n \"react/jsx-no-useless-fragment\": [\"warn\", { allowExpressions: true }],\n /**\n * Require the use of PascalCase for user-defined JSX components.\n *\n * 🚫 Not fixable - https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/jsx-pascal-case.md\n */\n \"react/jsx-pascal-case\": \"warn\",\n \"react/jsx-uses-react\": \"warn\",\n \"react/jsx-uses-vars\": \"warn\",\n /**\n * Disallow usage of Array index in keys.\n *\n * � Not fixable - https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/no-array-index-key.md\n */\n \"react/no-array-index-key\": \"warn\",\n \"react/no-children-prop\": \"warn\",\n \"react/no-danger-with-children\": \"warn\",\n \"react/no-deprecated\": \"warn\",\n \"react/no-direct-mutation-state\": \"warn\",\n \"react/no-find-dom-node\": \"warn\",\n \"react/no-is-mounted\": \"warn\",\n \"react/no-render-return-value\": \"warn\",\n \"react/no-string-refs\": \"warn\",\n \"react/no-unescaped-entities\": \"warn\",\n \"react/no-unknown-property\": \"warn\",\n \"react/no-unsafe\": \"warn\",\n /**\n * Disallow creating unstable components inside components.\n *\n * 🚫 Not fixable - https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/no-unstable-nested-components.md\n */\n \"react/no-unstable-nested-components\": \"warn\",\n \"react/require-render-return\": \"warn\",\n /**\n * Disallow closing tags for components without children.\n *\n * 🔧 Fixable - https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/self-closing-comp.md\n */\n \"react/self-closing-comp\": \"warn\",\n };\n};\n"],"mappings":";AA2BO,IAAM,aAAa,CACxB,eACA,eACe;AACf,QAAM,mBAAoE;AAAA,IACxE,OAAO;AAAA,IACP,aAAa;AAAA,IACb,YAAY;AAAA,EACd;AAEA,SAAO;AAAA;AAAA;AAAA;AAAA,IAIL,GAAI,aAAa,CAAC,IAAI,EAAE,oBAAoB,OAAO;AAAA,IACnD,+BAA+B;AAAA,IAC/B,8BAA8B;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAM9B,yBAAyB;AAAA,IACzB,kCAAkC,CAAC,QAAQ,QAAQ;AAAA,IACnD,sBAAsB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAMtB,uCACE,kBAAkB,QAAQ,QACxB;AAAA,MACE;AAAA,MACA;AAAA,QACE,iBAAiB,iBAAiB,aAAa;AAAA,QAC/C,mBACE,kBAAkB,UAAU,mBAC1B;AAAA,MAEN;AAAA,IACF;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAOJ,wBAAwB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAMxB,2BAA2B;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAM3B,kCAAkC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAMlC,uBAAuB;AAAA,IACvB,iBAAiB;AAAA,IACjB,kCAAkC;AAAA,IAClC,gCAAgC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAMhC,8BAA8B;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAS9B,6BAA6B;AAAA,MAC3B;AAAA,MACA;AAAA,QACE,eAAe;AAAA,MACjB;AAAA,IACF;AAAA,IACA,sBAAsB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAMtB,iCAAiC,CAAC,QAAQ,EAAE,kBAAkB,KAAK,CAAC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAMpE,yBAAyB;AAAA,IACzB,wBAAwB;AAAA,IACxB,uBAAuB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAMvB,4BAA4B;AAAA,IAC5B,0BAA0B;AAAA,IAC1B,iCAAiC;AAAA,IACjC,uBAAuB;AAAA,IACvB,kCAAkC;AAAA,IAClC,0BAA0B;AAAA,IAC1B,uBAAuB;AAAA,IACvB,gCAAgC;AAAA,IAChC,wBAAwB;AAAA,IACxB,+BAA+B;AAAA,IAC/B,6BAA6B;AAAA,IAC7B,mBAAmB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAMnB,uCAAuC;AAAA,IACvC,+BAA+B;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAM/B,2BAA2B;AAAA,EAC7B;AACF;","names":[]}
@@ -2,8 +2,10 @@ declare const configNames: {
2
2
  readonly base: "base-config";
3
3
  readonly disableTypeChecked: "typescript-eslint/disable-type-checked";
4
4
  readonly ignores: "ignores-config";
5
+ readonly jsdoc: "jsdoc-config";
5
6
  readonly perfectionist: "perfectionist-config";
6
7
  readonly react: "react-config";
8
+ readonly reactCompiler: "react-compiler-config";
7
9
  readonly typescript: "tseslint-config";
8
10
  };
9
11
 
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  configNames
3
- } from "../chunk-W56QT6S7.js";
3
+ } from "../chunk-QCFCGFZH.js";
4
4
  import "../chunk-7D4SUZUM.js";
5
5
  export {
6
6
  configNames
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  ignoresConfig
3
- } from "../chunk-Q3UZX7NT.js";
4
- import "../chunk-W56QT6S7.js";
3
+ } from "../chunk-CPBLULS5.js";
4
+ import "../chunk-QCFCGFZH.js";
5
5
  import "../chunk-7D4SUZUM.js";
6
6
  export {
7
7
  ignoresConfig
@@ -1,25 +1,31 @@
1
1
  import { Linter } from 'eslint';
2
2
  import { FunctionStyle } from '../types.js';
3
3
 
4
- interface EslintConfigOptions {
5
- functionStyle?: FunctionStyle;
4
+ type EslintConfigOptions = {
5
+ functionStyle?: "off" | FunctionStyle;
6
6
  ignores?: string[];
7
- import?: boolean;
8
- react?: boolean;
7
+ jsdoc?: boolean | {
8
+ requireJsdoc?: boolean;
9
+ };
9
10
  sorting?: boolean;
10
- typescript?: boolean;
11
- }
11
+ typescript?: boolean | string;
12
+ } & ({
13
+ react: true;
14
+ reactCompiler?: boolean;
15
+ } | {
16
+ react?: boolean;
17
+ });
12
18
  /**
13
19
  * This function configures your ESLint config based on inputs. It accepts a configuration object with the following properties:
14
- *
15
- * @param options
20
+ * @param options - The optional configuration object.
16
21
  * @param options.functionStyle - The function style to use. Defaults to "arrow".
17
22
  * @param options.ignores - An array of paths to ignore. Already excludes `node_modules` and `dist`.
23
+ * @param options.jsdoc - Whether to include JSDoc rules. Defaults to true.
18
24
  * @param options.react - Whether to include React rules. Defaults to false.
19
25
  * @param options.sorting - Whether to include sorting rules from Perfectionist. Defaults to true.
20
- * @param options.typescript - Whether to include TypeScript rules. Defaults to true.
26
+ * @param options.typescript - Whether to include TypeScript rules OR a string with the path to your tsconfig. Defaults to true.
21
27
  * @returns The ESLint configuration array.
22
28
  */
23
- declare const eslintConfig: (options?: EslintConfigOptions) => Linter.Config[];
29
+ declare const eslintConfig: ({ functionStyle, ignores, jsdoc, react, sorting, typescript, ...options }?: EslintConfigOptions) => Linter.Config[];
24
30
 
25
31
  export { type EslintConfigOptions, eslintConfig };
@@ -1,16 +1,19 @@
1
1
  import {
2
2
  eslintConfig
3
- } from "../chunk-EQOUQWIX.js";
4
- import "../chunk-3H3TV7WG.js";
5
- import "../chunk-JY5TAY3J.js";
6
- import "../chunk-YS5XHQB5.js";
7
- import "../chunk-TQWE6NWW.js";
8
- import "../chunk-IOVQNUC6.js";
3
+ } from "../chunk-W7UPJFRB.js";
4
+ import "../chunk-4ELR5S33.js";
5
+ import "../chunk-GPY6RCW5.js";
6
+ import "../chunk-AHLHRIAC.js";
7
+ import "../chunk-HSSATLSU.js";
8
+ import "../chunk-PSPFBSJV.js";
9
+ import "../chunk-WHP6ZMC7.js";
10
+ import "../chunk-CRVC7SG2.js";
11
+ import "../chunk-CNGG6QVG.js";
9
12
  import "../chunk-GE5ZPFK5.js";
10
- import "../chunk-GZC424B7.js";
11
- import "../chunk-AL3W54BT.js";
12
- import "../chunk-Q3UZX7NT.js";
13
- import "../chunk-W56QT6S7.js";
13
+ import "../chunk-7FYMBY3Z.js";
14
+ import "../chunk-YZ5DAWYS.js";
15
+ import "../chunk-CPBLULS5.js";
16
+ import "../chunk-QCFCGFZH.js";
14
17
  import "../chunk-7D4SUZUM.js";
15
18
  export {
16
19
  eslintConfig
@@ -2,22 +2,25 @@ import {
2
2
  describe,
3
3
  globalExpect,
4
4
  it
5
- } from "../chunk-SVENELEJ.js";
5
+ } from "../chunk-TQVG2NFE.js";
6
6
  import {
7
7
  eslintConfig
8
- } from "../chunk-EQOUQWIX.js";
9
- import "../chunk-3H3TV7WG.js";
10
- import "../chunk-JY5TAY3J.js";
11
- import "../chunk-YS5XHQB5.js";
12
- import "../chunk-TQWE6NWW.js";
13
- import "../chunk-IOVQNUC6.js";
8
+ } from "../chunk-W7UPJFRB.js";
9
+ import "../chunk-4ELR5S33.js";
10
+ import "../chunk-GPY6RCW5.js";
11
+ import "../chunk-AHLHRIAC.js";
12
+ import "../chunk-HSSATLSU.js";
13
+ import "../chunk-PSPFBSJV.js";
14
+ import "../chunk-WHP6ZMC7.js";
15
+ import "../chunk-CRVC7SG2.js";
16
+ import "../chunk-CNGG6QVG.js";
14
17
  import "../chunk-GE5ZPFK5.js";
15
- import "../chunk-GZC424B7.js";
16
- import "../chunk-AL3W54BT.js";
17
- import "../chunk-Q3UZX7NT.js";
18
+ import "../chunk-7FYMBY3Z.js";
19
+ import "../chunk-YZ5DAWYS.js";
20
+ import "../chunk-CPBLULS5.js";
18
21
  import {
19
22
  configNames
20
- } from "../chunk-W56QT6S7.js";
23
+ } from "../chunk-QCFCGFZH.js";
21
24
  import "../chunk-7D4SUZUM.js";
22
25
 
23
26
  // src/eslint/index.test.ts
@@ -41,15 +44,17 @@ describe("eslintConfig", () => {
41
44
  });
42
45
  it("includes React config when enabled", () => {
43
46
  const config = eslintConfig({ react: true });
44
- globalExpect(config.some((c) => c.name === "react-config")).toBe(true);
47
+ globalExpect(config.some((c) => c.name === configNames.react)).toBe(true);
45
48
  });
46
49
  it("excludes TypeScript config when disabled", () => {
47
50
  const config = eslintConfig({ typescript: false });
48
- globalExpect(config.some((c) => c.name === "tseslint-config")).toBe(false);
51
+ globalExpect(config.some((c) => c.name === configNames.typescript)).toBe(false);
49
52
  });
50
53
  it("excludes sorting config when disabled", () => {
51
54
  const config = eslintConfig({ sorting: false });
52
- globalExpect(config.some((c) => c.name === "perfectionist-config")).toBe(false);
55
+ globalExpect(config.some((c) => c.name === configNames.perfectionist)).toBe(
56
+ false
57
+ );
53
58
  });
54
59
  it("applies custom ignores", () => {
55
60
  const customIgnores = ["*.test.ts", "*.spec.ts"];
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/eslint/index.test.ts"],"sourcesContent":["import { describe, expect, it } from \"vitest\";\n\nimport { configNames } from \"./constants.js\";\nimport { eslintConfig } from \"./index.js\";\n\ndescribe(\"eslintConfig\", () => {\n it(\"returns default configuration\", () => {\n const config = eslintConfig();\n const names = config.map((c) => c.name);\n const expectedConfigs = [\n configNames.ignores,\n configNames.base,\n configNames.typescript,\n configNames.perfectionist,\n configNames.disableTypeChecked,\n // the disable type checked config comes with an additional un-named config\n undefined,\n ];\n\n expect(config).toBeInstanceOf(Array);\n expectedConfigs.forEach((expectedName) => {\n expect(names).toContain(expectedName);\n });\n });\n\n it(\"includes React config when enabled\", () => {\n const config = eslintConfig({ react: true });\n\n expect(config.some((c) => c.name === \"react-config\")).toBe(true);\n });\n\n it(\"excludes TypeScript config when disabled\", () => {\n const config = eslintConfig({ typescript: false });\n\n expect(config.some((c) => c.name === \"tseslint-config\")).toBe(false);\n });\n\n it(\"excludes sorting config when disabled\", () => {\n const config = eslintConfig({ sorting: false });\n\n expect(config.some((c) => c.name === \"perfectionist-config\")).toBe(false);\n });\n\n it(\"applies custom ignores\", () => {\n const customIgnores = [\"*.test.ts\", \"*.spec.ts\"];\n const config = eslintConfig({ ignores: customIgnores });\n\n expect(config[0]?.ignores).toEqual(expect.arrayContaining(customIgnores));\n });\n});\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAKA,SAAS,gBAAgB,MAAM;AAC7B,KAAG,iCAAiC,MAAM;AACxC,UAAM,SAAS,aAAa;AAC5B,UAAM,QAAQ,OAAO,IAAI,CAAC,MAAM,EAAE,IAAI;AACtC,UAAM,kBAAkB;AAAA,MACtB,YAAY;AAAA,MACZ,YAAY;AAAA,MACZ,YAAY;AAAA,MACZ,YAAY;AAAA,MACZ,YAAY;AAAA;AAAA,MAEZ;AAAA,IACF;AAEA,iBAAO,MAAM,EAAE,eAAe,KAAK;AACnC,oBAAgB,QAAQ,CAAC,iBAAiB;AACxC,mBAAO,KAAK,EAAE,UAAU,YAAY;AAAA,IACtC,CAAC;AAAA,EACH,CAAC;AAED,KAAG,sCAAsC,MAAM;AAC7C,UAAM,SAAS,aAAa,EAAE,OAAO,KAAK,CAAC;AAE3C,iBAAO,OAAO,KAAK,CAAC,MAAM,EAAE,SAAS,cAAc,CAAC,EAAE,KAAK,IAAI;AAAA,EACjE,CAAC;AAED,KAAG,4CAA4C,MAAM;AACnD,UAAM,SAAS,aAAa,EAAE,YAAY,MAAM,CAAC;AAEjD,iBAAO,OAAO,KAAK,CAAC,MAAM,EAAE,SAAS,iBAAiB,CAAC,EAAE,KAAK,KAAK;AAAA,EACrE,CAAC;AAED,KAAG,yCAAyC,MAAM;AAChD,UAAM,SAAS,aAAa,EAAE,SAAS,MAAM,CAAC;AAE9C,iBAAO,OAAO,KAAK,CAAC,MAAM,EAAE,SAAS,sBAAsB,CAAC,EAAE,KAAK,KAAK;AAAA,EAC1E,CAAC;AAED,KAAG,0BAA0B,MAAM;AACjC,UAAM,gBAAgB,CAAC,aAAa,WAAW;AAC/C,UAAM,SAAS,aAAa,EAAE,SAAS,cAAc,CAAC;AAEtD,iBAAO,OAAO,CAAC,GAAG,OAAO,EAAE,QAAQ,aAAO,gBAAgB,aAAa,CAAC;AAAA,EAC1E,CAAC;AACH,CAAC;","names":[]}
1
+ {"version":3,"sources":["../../src/eslint/index.test.ts"],"sourcesContent":["import { describe, expect, it } from \"vitest\";\n\nimport { configNames } from \"./constants.js\";\nimport { eslintConfig } from \"./index.js\";\n\ndescribe(\"eslintConfig\", () => {\n it(\"returns default configuration\", () => {\n const config = eslintConfig();\n const names = config.map((c) => c.name);\n const expectedConfigs = [\n configNames.ignores,\n configNames.base,\n configNames.typescript,\n configNames.perfectionist,\n configNames.disableTypeChecked,\n // the disable type checked config comes with an additional un-named config\n undefined,\n ];\n\n expect(config).toBeInstanceOf(Array);\n expectedConfigs.forEach((expectedName) => {\n expect(names).toContain(expectedName);\n });\n });\n\n it(\"includes React config when enabled\", () => {\n const config = eslintConfig({ react: true });\n\n expect(config.some((c) => c.name === configNames.react)).toBe(true);\n });\n\n it(\"excludes TypeScript config when disabled\", () => {\n const config = eslintConfig({ typescript: false });\n\n expect(config.some((c) => c.name === configNames.typescript)).toBe(false);\n });\n\n it(\"excludes sorting config when disabled\", () => {\n const config = eslintConfig({ sorting: false });\n\n expect(config.some((c) => c.name === configNames.perfectionist)).toBe(\n false,\n );\n });\n\n it(\"applies custom ignores\", () => {\n const customIgnores = [\"*.test.ts\", \"*.spec.ts\"];\n const config = eslintConfig({ ignores: customIgnores });\n\n expect(config[0]?.ignores).toEqual(expect.arrayContaining(customIgnores));\n });\n});\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAKA,SAAS,gBAAgB,MAAM;AAC7B,KAAG,iCAAiC,MAAM;AACxC,UAAM,SAAS,aAAa;AAC5B,UAAM,QAAQ,OAAO,IAAI,CAAC,MAAM,EAAE,IAAI;AACtC,UAAM,kBAAkB;AAAA,MACtB,YAAY;AAAA,MACZ,YAAY;AAAA,MACZ,YAAY;AAAA,MACZ,YAAY;AAAA,MACZ,YAAY;AAAA;AAAA,MAEZ;AAAA,IACF;AAEA,iBAAO,MAAM,EAAE,eAAe,KAAK;AACnC,oBAAgB,QAAQ,CAAC,iBAAiB;AACxC,mBAAO,KAAK,EAAE,UAAU,YAAY;AAAA,IACtC,CAAC;AAAA,EACH,CAAC;AAED,KAAG,sCAAsC,MAAM;AAC7C,UAAM,SAAS,aAAa,EAAE,OAAO,KAAK,CAAC;AAE3C,iBAAO,OAAO,KAAK,CAAC,MAAM,EAAE,SAAS,YAAY,KAAK,CAAC,EAAE,KAAK,IAAI;AAAA,EACpE,CAAC;AAED,KAAG,4CAA4C,MAAM;AACnD,UAAM,SAAS,aAAa,EAAE,YAAY,MAAM,CAAC;AAEjD,iBAAO,OAAO,KAAK,CAAC,MAAM,EAAE,SAAS,YAAY,UAAU,CAAC,EAAE,KAAK,KAAK;AAAA,EAC1E,CAAC;AAED,KAAG,yCAAyC,MAAM;AAChD,UAAM,SAAS,aAAa,EAAE,SAAS,MAAM,CAAC;AAE9C,iBAAO,OAAO,KAAK,CAAC,MAAM,EAAE,SAAS,YAAY,aAAa,CAAC,EAAE;AAAA,MAC/D;AAAA,IACF;AAAA,EACF,CAAC;AAED,KAAG,0BAA0B,MAAM;AACjC,UAAM,gBAAgB,CAAC,aAAa,WAAW;AAC/C,UAAM,SAAS,aAAa,EAAE,SAAS,cAAc,CAAC;AAEtD,iBAAO,OAAO,CAAC,GAAG,OAAO,EAAE,QAAQ,aAAO,gBAAgB,aAAa,CAAC;AAAA,EAC1E,CAAC;AACH,CAAC;","names":[]}
@@ -1,6 +1,6 @@
1
1
  import { Linter } from 'eslint';
2
2
  import { FunctionStyle } from '../../types.js';
3
3
 
4
- declare const baseEslintConfig: (functionStyle: FunctionStyle) => Linter.Config;
4
+ declare const baseEslintConfig: (functionStyle: "off" | FunctionStyle) => Linter.Config;
5
5
 
6
6
  export { baseEslintConfig };
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  baseEslintConfig
3
- } from "../../chunk-3H3TV7WG.js";
4
- import "../../chunk-JY5TAY3J.js";
5
- import "../../chunk-W56QT6S7.js";
3
+ } from "../../chunk-HSSATLSU.js";
4
+ import "../../chunk-PSPFBSJV.js";
5
+ import "../../chunk-QCFCGFZH.js";
6
6
  import "../../chunk-7D4SUZUM.js";
7
7
  export {
8
8
  baseEslintConfig
@@ -8,6 +8,6 @@ type BaseRules = Record<string, EslintRuleConfig> & {
8
8
  };
9
9
  }>;
10
10
  };
11
- declare const baseEslintRules: (functionStyle: FunctionStyle) => BaseRules;
11
+ declare const baseEslintRules: (functionStyle: "off" | FunctionStyle) => BaseRules;
12
12
 
13
13
  export { baseEslintRules };
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  baseEslintRules
3
- } from "../../chunk-JY5TAY3J.js";
3
+ } from "../../chunk-PSPFBSJV.js";
4
4
  import "../../chunk-7D4SUZUM.js";
5
5
  export {
6
6
  baseEslintRules
@@ -0,0 +1,5 @@
1
+ import { Linter } from 'eslint';
2
+
3
+ declare const jsdocConfig: (requireJsdoc?: boolean) => Linter.Config;
4
+
5
+ export { jsdocConfig };
@@ -0,0 +1,10 @@
1
+ import {
2
+ jsdocConfig
3
+ } from "../../chunk-WHP6ZMC7.js";
4
+ import "../../chunk-CRVC7SG2.js";
5
+ import "../../chunk-QCFCGFZH.js";
6
+ import "../../chunk-7D4SUZUM.js";
7
+ export {
8
+ jsdocConfig
9
+ };
10
+ //# sourceMappingURL=config.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -0,0 +1,17 @@
1
+ import { EslintRuleConfig } from '../../types.js';
2
+
3
+ type JsdocRules = Record<`jsdoc/${string}`, EslintRuleConfig> & {
4
+ "jsdoc/check-param-names": EslintRuleConfig<{
5
+ allowExtraTrailingParamDocs?: boolean;
6
+ checkDestructured?: boolean;
7
+ checkRestProperty?: boolean;
8
+ checkTypesPattern?: string;
9
+ disableExtraPropertyReporting?: boolean;
10
+ disableMissingParamChecks?: boolean;
11
+ enableFixer?: boolean;
12
+ useDefaultObjectProperties?: boolean;
13
+ }>;
14
+ };
15
+ declare const jsdocRules: (requireJsdoc?: boolean) => JsdocRules;
16
+
17
+ export { jsdocRules };
@@ -0,0 +1,8 @@
1
+ import {
2
+ jsdocRules
3
+ } from "../../chunk-CRVC7SG2.js";
4
+ import "../../chunk-7D4SUZUM.js";
5
+ export {
6
+ jsdocRules
7
+ };
8
+ //# sourceMappingURL=rules.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  perfectionistConfig
3
- } from "../../chunk-IOVQNUC6.js";
3
+ } from "../../chunk-CNGG6QVG.js";
4
4
  import "../../chunk-GE5ZPFK5.js";
5
- import "../../chunk-W56QT6S7.js";
5
+ import "../../chunk-QCFCGFZH.js";
6
6
  import "../../chunk-7D4SUZUM.js";
7
7
  export {
8
8
  perfectionistConfig
@@ -1,6 +1,6 @@
1
1
  import { Linter } from 'eslint';
2
2
  import { FunctionStyle } from '../../types.js';
3
3
 
4
- declare const reactEslintConfig: (functionStyle: FunctionStyle, typescript: boolean) => Linter.Config;
4
+ declare const reactEslintConfig: (functionStyle: "off" | FunctionStyle, typescript: boolean) => Linter.Config;
5
5
 
6
6
  export { reactEslintConfig };
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  reactEslintConfig
3
- } from "../../chunk-YS5XHQB5.js";
4
- import "../../chunk-TQWE6NWW.js";
5
- import "../../chunk-W56QT6S7.js";
3
+ } from "../../chunk-7FYMBY3Z.js";
4
+ import "../../chunk-YZ5DAWYS.js";
5
+ import "../../chunk-QCFCGFZH.js";
6
6
  import "../../chunk-7D4SUZUM.js";
7
7
  export {
8
8
  reactEslintConfig
@@ -1,7 +1,7 @@
1
1
  import { FunctionStyle, EslintRuleConfig } from '../../types.js';
2
2
 
3
3
  type ReactFunctionDefinitions = "arrow-function" | "function-declaration" | "function-expression";
4
- type ReactRules = Record<`react/${string}`, EslintRuleConfig> & {
4
+ type ReactRules = Record<`${"react" | "react-hooks"}/${string}`, EslintRuleConfig> & {
5
5
  "react/destructuring-assignment"?: EslintRuleConfig<"always" | "never", {
6
6
  destructureInSignature?: "always" | "ignore";
7
7
  ignoreClassFields?: boolean;
@@ -11,6 +11,6 @@ type ReactRules = Record<`react/${string}`, EslintRuleConfig> & {
11
11
  unnamedComponents?: "arrow-function" | "function-expression" | ("arrow-function" | "function-expression")[];
12
12
  }>;
13
13
  };
14
- declare const reactRules: (functionStyle: FunctionStyle, typescript: boolean) => ReactRules;
14
+ declare const reactRules: (functionStyle: "off" | FunctionStyle, typescript: boolean) => ReactRules;
15
15
 
16
16
  export { reactRules };
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  reactRules
3
- } from "../../chunk-TQWE6NWW.js";
3
+ } from "../../chunk-YZ5DAWYS.js";
4
4
  import "../../chunk-7D4SUZUM.js";
5
5
  export {
6
6
  reactRules
@@ -0,0 +1,5 @@
1
+ import { Linter } from 'eslint';
2
+
3
+ declare const reactCompilerEslintConfig: Linter.Config;
4
+
5
+ export { reactCompilerEslintConfig };
@@ -0,0 +1,9 @@
1
+ import {
2
+ reactCompilerEslintConfig
3
+ } from "../../chunk-4ELR5S33.js";
4
+ import "../../chunk-QCFCGFZH.js";
5
+ import "../../chunk-7D4SUZUM.js";
6
+ export {
7
+ reactCompilerEslintConfig
8
+ };
9
+ //# sourceMappingURL=config.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -1,5 +1,5 @@
1
1
  import { Config } from 'typescript-eslint';
2
2
 
3
- declare const tseslintConfig: Config;
3
+ declare const tseslintConfig: (tsconfigPath?: string) => Config;
4
4
 
5
5
  export { tseslintConfig };
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  tseslintConfig
3
- } from "../../chunk-GZC424B7.js";
4
- import "../../chunk-AL3W54BT.js";
5
- import "../../chunk-W56QT6S7.js";
3
+ } from "../../chunk-GPY6RCW5.js";
4
+ import "../../chunk-AHLHRIAC.js";
5
+ import "../../chunk-QCFCGFZH.js";
6
6
  import "../../chunk-7D4SUZUM.js";
7
7
  export {
8
8
  tseslintConfig
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  tseslintRules
3
- } from "../../chunk-AL3W54BT.js";
3
+ } from "../../chunk-AHLHRIAC.js";
4
4
  import "../../chunk-7D4SUZUM.js";
5
5
  export {
6
6
  tseslintRules
package/dist/index.js CHANGED
@@ -1,17 +1,20 @@
1
1
  import "./chunk-ETHEVVRU.js";
2
2
  import {
3
3
  eslintConfig
4
- } from "./chunk-EQOUQWIX.js";
5
- import "./chunk-3H3TV7WG.js";
6
- import "./chunk-JY5TAY3J.js";
7
- import "./chunk-YS5XHQB5.js";
8
- import "./chunk-TQWE6NWW.js";
9
- import "./chunk-IOVQNUC6.js";
4
+ } from "./chunk-W7UPJFRB.js";
5
+ import "./chunk-4ELR5S33.js";
6
+ import "./chunk-GPY6RCW5.js";
7
+ import "./chunk-AHLHRIAC.js";
8
+ import "./chunk-HSSATLSU.js";
9
+ import "./chunk-PSPFBSJV.js";
10
+ import "./chunk-WHP6ZMC7.js";
11
+ import "./chunk-CRVC7SG2.js";
12
+ import "./chunk-CNGG6QVG.js";
10
13
  import "./chunk-GE5ZPFK5.js";
11
- import "./chunk-GZC424B7.js";
12
- import "./chunk-AL3W54BT.js";
13
- import "./chunk-Q3UZX7NT.js";
14
- import "./chunk-W56QT6S7.js";
14
+ import "./chunk-7FYMBY3Z.js";
15
+ import "./chunk-YZ5DAWYS.js";
16
+ import "./chunk-CPBLULS5.js";
17
+ import "./chunk-QCFCGFZH.js";
15
18
  import {
16
19
  prettierConfig
17
20
  } from "./chunk-UTXH73LC.js";
@@ -1,6 +1,6 @@
1
1
  import "./chunk-7D4SUZUM.js";
2
2
 
3
- // ../node_modules/.pnpm/@jridgewell+sourcemap-codec@1.5.0/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.mjs
3
+ // ../../node_modules/.pnpm/@jridgewell+sourcemap-codec@1.5.0/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.mjs
4
4
  var comma = ",".charCodeAt(0);
5
5
  var semicolon = ";".charCodeAt(0);
6
6
  var chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
@@ -88,7 +88,7 @@ function encode(decoded) {
88
88
  return writer.flush();
89
89
  }
90
90
 
91
- // ../node_modules/.pnpm/magic-string@0.30.17/node_modules/magic-string/dist/magic-string.es.mjs
91
+ // ../../node_modules/.pnpm/magic-string@0.30.17/node_modules/magic-string/dist/magic-string.es.mjs
92
92
  var BitSet = class _BitSet {
93
93
  constructor(arg) {
94
94
  this.bits = arg instanceof _BitSet ? arg.bits.slice() : [];
@@ -1297,4 +1297,4 @@ export {
1297
1297
  SourceMap,
1298
1298
  MagicString as default
1299
1299
  };
1300
- //# sourceMappingURL=magic-string.es-UEL4LDHN.js.map
1300
+ //# sourceMappingURL=magic-string.es-HYRYIEM3.js.map