js-style-kit 0.0.4 → 0.0.5
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/{chunk-GE5ZPFK5.js → chunk-3SHRYTUT.js} +1 -1
- package/dist/chunk-3SHRYTUT.js.map +1 -0
- package/dist/{chunk-W7UPJFRB.js → chunk-6RMH52MN.js} +11 -14
- package/dist/chunk-6RMH52MN.js.map +1 -0
- package/dist/{chunk-YZ5DAWYS.js → chunk-FKPZBDM2.js} +1 -1
- package/dist/chunk-FKPZBDM2.js.map +1 -0
- package/dist/{chunk-CRVC7SG2.js → chunk-GGJAIVFW.js} +2 -1
- package/dist/chunk-GGJAIVFW.js.map +1 -0
- package/dist/{chunk-GPY6RCW5.js → chunk-HCYPJVMS.js} +2 -2
- package/dist/{chunk-PSPFBSJV.js → chunk-HHSPUTJX.js} +1 -1
- package/dist/chunk-HHSPUTJX.js.map +1 -0
- package/dist/{chunk-7FYMBY3Z.js → chunk-I5KJFBUR.js} +3 -3
- package/dist/chunk-I5KJFBUR.js.map +1 -0
- package/dist/{chunk-HSSATLSU.js → chunk-SKA72A2W.js} +3 -3
- package/dist/chunk-SKA72A2W.js.map +1 -0
- package/dist/{chunk-CNGG6QVG.js → chunk-USZK5FQ5.js} +3 -3
- package/dist/chunk-USZK5FQ5.js.map +1 -0
- package/dist/{chunk-WHP6ZMC7.js → chunk-UUHSXW3X.js} +4 -4
- package/dist/chunk-UUHSXW3X.js.map +1 -0
- package/dist/{chunk-4ELR5S33.js → chunk-V6X244X5.js} +2 -2
- package/dist/chunk-V6X244X5.js.map +1 -0
- package/dist/{chunk-QCFCGFZH.js → chunk-VPM23SRN.js} +1 -1
- package/dist/{chunk-QCFCGFZH.js.map → chunk-VPM23SRN.js.map} +1 -1
- package/dist/{chunk-TQVG2NFE.js → chunk-XYU7AG7R.js} +6 -6
- package/dist/{chunk-TQVG2NFE.js.map → chunk-XYU7AG7R.js.map} +1 -1
- package/dist/{chunk-CPBLULS5.js → chunk-YPJZJ56S.js} +2 -2
- package/dist/eslint/constants.d.ts +2 -1
- package/dist/eslint/constants.js +1 -1
- package/dist/eslint/ignores.js +2 -2
- package/dist/eslint/index.d.ts +4 -3
- package/dist/eslint/index.js +13 -13
- package/dist/eslint/index.test.js +89 -44
- package/dist/eslint/index.test.js.map +1 -1
- package/dist/eslint/javascript/config.d.ts +4 -3
- package/dist/eslint/javascript/config.js +3 -3
- package/dist/eslint/javascript/rules.d.ts +3 -1
- package/dist/eslint/javascript/rules.js +1 -1
- package/dist/eslint/jsdoc/config.d.ts +4 -2
- package/dist/eslint/jsdoc/config.js +3 -3
- package/dist/eslint/jsdoc/rules.d.ts +3 -1
- package/dist/eslint/jsdoc/rules.js +1 -1
- package/dist/eslint/perfectionist/config.d.ts +4 -2
- package/dist/eslint/perfectionist/config.js +3 -3
- package/dist/eslint/perfectionist/rules.d.ts +3 -1
- package/dist/eslint/perfectionist/rules.js +1 -1
- package/dist/eslint/react/config.d.ts +4 -3
- package/dist/eslint/react/config.js +3 -3
- package/dist/eslint/react/rules.d.ts +3 -1
- package/dist/eslint/react/rules.js +1 -1
- package/dist/eslint/react-compiler/config.d.ts +4 -2
- package/dist/eslint/react-compiler/config.js +2 -2
- package/dist/{types.d.ts → eslint/types.d.ts} +7 -1
- package/dist/eslint/typescript/config.js +2 -2
- package/dist/index.d.ts +2 -1
- package/dist/index.js +16 -16
- package/dist/prettier/index.test.js +17 -17
- package/package.json +8 -8
- package/dist/chunk-4ELR5S33.js.map +0 -1
- package/dist/chunk-7FYMBY3Z.js.map +0 -1
- package/dist/chunk-CNGG6QVG.js.map +0 -1
- package/dist/chunk-CRVC7SG2.js.map +0 -1
- package/dist/chunk-GE5ZPFK5.js.map +0 -1
- package/dist/chunk-HSSATLSU.js.map +0 -1
- package/dist/chunk-PSPFBSJV.js.map +0 -1
- package/dist/chunk-W7UPJFRB.js.map +0 -1
- package/dist/chunk-WHP6ZMC7.js.map +0 -1
- package/dist/chunk-YZ5DAWYS.js.map +0 -1
- /package/dist/{chunk-GPY6RCW5.js.map → chunk-HCYPJVMS.js.map} +0 -0
- /package/dist/{chunk-CPBLULS5.js.map → chunk-YPJZJ56S.js.map} +0 -0
- /package/dist/{types.js → eslint/types.js} +0 -0
- /package/dist/{types.js.map → eslint/types.js.map} +0 -0
- /package/dist/{types/modules.d.d.ts → modules.d.d.ts} +0 -0
- /package/dist/{types/modules.d.js → modules.d.js} +0 -0
- /package/dist/{types/modules.d.js.map → modules.d.js.map} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/eslint/perfectionist/rules.ts"],"sourcesContent":["import type { EslintRuleConfig } from \"../types.js\";\n\ninterface PerfectionistRuleOptions {\n order: \"asc\" | \"desc\";\n type: \"alphabetical\" | \"custom\" | \"line-length\" | \"natural\";\n}\n\nconst defaultOptions: PerfectionistRuleOptions = {\n order: \"asc\",\n type: \"natural\",\n};\n\ntype PerfectionRules = Record<\n `perfectionist/${string}`,\n EslintRuleConfig<PerfectionistRuleOptions>\n>;\n\nexport const perfectionistRules: PerfectionRules = {\n \"perfectionist/sort-array-includes\": [\"warn\", defaultOptions],\n \"perfectionist/sort-classes\": [\"warn\", defaultOptions],\n \"perfectionist/sort-decorators\": [\"warn\", defaultOptions],\n \"perfectionist/sort-enums\": [\"warn\", defaultOptions],\n \"perfectionist/sort-exports\": [\"warn\", defaultOptions],\n \"perfectionist/sort-heritage-clauses\": [\"warn\", defaultOptions],\n \"perfectionist/sort-imports\": [\"warn\", defaultOptions],\n \"perfectionist/sort-interfaces\": [\"warn\", defaultOptions],\n \"perfectionist/sort-intersection-types\": [\"warn\", defaultOptions],\n \"perfectionist/sort-jsx-props\": [\"warn\", defaultOptions],\n \"perfectionist/sort-maps\": [\"warn\", defaultOptions],\n \"perfectionist/sort-modules\": [\"off\", defaultOptions],\n \"perfectionist/sort-named-exports\": [\"warn\", defaultOptions],\n \"perfectionist/sort-named-imports\": [\"warn\", defaultOptions],\n \"perfectionist/sort-object-types\": [\"warn\", defaultOptions],\n \"perfectionist/sort-objects\": [\"warn\", defaultOptions],\n \"perfectionist/sort-sets\": [\"warn\", defaultOptions],\n \"perfectionist/sort-switch-case\": [\"warn\", defaultOptions],\n \"perfectionist/sort-union-types\": [\"warn\", defaultOptions],\n \"perfectionist/sort-variable-declarations\": [\"warn\", defaultOptions],\n};\n"],"mappings":";AAOA,IAAM,iBAA2C;AAAA,EAC/C,OAAO;AAAA,EACP,MAAM;AACR;AAOO,IAAM,qBAAsC;AAAA,EACjD,qCAAqC,CAAC,QAAQ,cAAc;AAAA,EAC5D,8BAA8B,CAAC,QAAQ,cAAc;AAAA,EACrD,iCAAiC,CAAC,QAAQ,cAAc;AAAA,EACxD,4BAA4B,CAAC,QAAQ,cAAc;AAAA,EACnD,8BAA8B,CAAC,QAAQ,cAAc;AAAA,EACrD,uCAAuC,CAAC,QAAQ,cAAc;AAAA,EAC9D,8BAA8B,CAAC,QAAQ,cAAc;AAAA,EACrD,iCAAiC,CAAC,QAAQ,cAAc;AAAA,EACxD,yCAAyC,CAAC,QAAQ,cAAc;AAAA,EAChE,gCAAgC,CAAC,QAAQ,cAAc;AAAA,EACvD,2BAA2B,CAAC,QAAQ,cAAc;AAAA,EAClD,8BAA8B,CAAC,OAAO,cAAc;AAAA,EACpD,oCAAoC,CAAC,QAAQ,cAAc;AAAA,EAC3D,oCAAoC,CAAC,QAAQ,cAAc;AAAA,EAC3D,mCAAmC,CAAC,QAAQ,cAAc;AAAA,EAC1D,8BAA8B,CAAC,QAAQ,cAAc;AAAA,EACrD,2BAA2B,CAAC,QAAQ,cAAc;AAAA,EAClD,kCAAkC,CAAC,QAAQ,cAAc;AAAA,EACzD,kCAAkC,CAAC,QAAQ,cAAc;AAAA,EACzD,4CAA4C,CAAC,QAAQ,cAAc;AACrE;","names":[]}
|
|
@@ -1,29 +1,26 @@
|
|
|
1
1
|
import {
|
|
2
2
|
reactCompilerEslintConfig
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-V6X244X5.js";
|
|
4
4
|
import {
|
|
5
5
|
tseslintConfig
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-HCYPJVMS.js";
|
|
7
7
|
import {
|
|
8
8
|
baseEslintConfig
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-SKA72A2W.js";
|
|
10
10
|
import {
|
|
11
11
|
jsdocConfig
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-UUHSXW3X.js";
|
|
13
13
|
import {
|
|
14
14
|
perfectionistConfig
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-USZK5FQ5.js";
|
|
16
16
|
import {
|
|
17
17
|
reactEslintConfig
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-I5KJFBUR.js";
|
|
19
19
|
import {
|
|
20
20
|
ignoresConfig
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-YPJZJ56S.js";
|
|
22
22
|
|
|
23
23
|
// ../utils/dist/index.js
|
|
24
|
-
var isBoolean = (value) => {
|
|
25
|
-
return typeof value === "boolean";
|
|
26
|
-
};
|
|
27
24
|
var isString = (value) => {
|
|
28
25
|
return typeof value === "string";
|
|
29
26
|
};
|
|
@@ -42,8 +39,8 @@ var eslintConfig = ({
|
|
|
42
39
|
ignoresConfig(ignores),
|
|
43
40
|
baseEslintConfig(functionStyle)
|
|
44
41
|
];
|
|
45
|
-
if (jsdoc) {
|
|
46
|
-
configs.push(jsdocConfig(
|
|
42
|
+
if (jsdoc !== false) {
|
|
43
|
+
configs.push(jsdocConfig(jsdoc.requireJsdoc ?? false));
|
|
47
44
|
}
|
|
48
45
|
if (typescript) {
|
|
49
46
|
configs.push(
|
|
@@ -54,7 +51,7 @@ var eslintConfig = ({
|
|
|
54
51
|
}
|
|
55
52
|
if (react) {
|
|
56
53
|
configs.push(reactEslintConfig(functionStyle, Boolean(typescript)));
|
|
57
|
-
if ("reactCompiler" in options
|
|
54
|
+
if (!("reactCompiler" in options) || options.reactCompiler !== false) {
|
|
58
55
|
configs.push(reactCompilerEslintConfig);
|
|
59
56
|
}
|
|
60
57
|
}
|
|
@@ -67,4 +64,4 @@ var eslintConfig = ({
|
|
|
67
64
|
export {
|
|
68
65
|
eslintConfig
|
|
69
66
|
};
|
|
70
|
-
//# sourceMappingURL=chunk-
|
|
67
|
+
//# sourceMappingURL=chunk-6RMH52MN.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 { 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 | false\n | {\n requireJsdoc?: boolean;\n };\n sorting?: boolean;\n typescript?: boolean | string;\n} & (\n | {\n react: true;\n reactCompiler: boolean | undefined;\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 !== false) {\n configs.push(jsdocConfig(jsdoc.requireJsdoc ?? false));\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 // Default to true if not explicitly set to false\n if (!(\"reactCompiler\" in options) || options.reactCompiler !== false) {\n configs.push(reactCompilerEslintConfig);\n }\n }\n\n if (sorting) {\n configs.push(perfectionistConfig);\n }\n\n return configs;\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAGO,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,UAAU,OAAO;AACnB,YAAQ,KAAK,YAAY,MAAM,gBAAgB,KAAK,CAAC;AAAA,EACvD;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;AAGlE,QAAI,EAAE,mBAAmB,YAAY,QAAQ,kBAAkB,OAAO;AACpE,cAAQ,KAAK,yBAAyB;AAAA,IACxC;AAAA,EACF;AAEA,MAAI,SAAS;AACX,YAAQ,KAAK,mBAAmB;AAAA,EAClC;AAEA,SAAO;AACT;","names":[]}
|
|
@@ -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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AMvB,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":[]}
|
|
@@ -45,6 +45,7 @@ var jsdocRules = (requireJsdoc = false) => ({
|
|
|
45
45
|
"jsdoc/require-description-complete-sentence": "off",
|
|
46
46
|
"jsdoc/require-file-overview": "off",
|
|
47
47
|
"jsdoc/require-hyphen-before-param-description": "off",
|
|
48
|
+
"jsdoc/require-jsdoc": requireJsdoc ? "warn" : "off",
|
|
48
49
|
"jsdoc/require-param": "warn",
|
|
49
50
|
"jsdoc/require-param-description": "warn",
|
|
50
51
|
"jsdoc/require-param-name": "warn",
|
|
@@ -67,4 +68,4 @@ var jsdocRules = (requireJsdoc = false) => ({
|
|
|
67
68
|
export {
|
|
68
69
|
jsdocRules
|
|
69
70
|
};
|
|
70
|
-
//# sourceMappingURL=chunk-
|
|
71
|
+
//# sourceMappingURL=chunk-GGJAIVFW.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/eslint/jsdoc/rules.ts"],"sourcesContent":["import type { EslintRuleConfig } from \"../types.js\";\n\ntype JsdocRules = Record<`jsdoc/${string}`, EslintRuleConfig> & {\n \"jsdoc/check-param-names\": EslintRuleConfig<{\n allowExtraTrailingParamDocs?: boolean;\n checkDestructured?: boolean;\n checkRestProperty?: boolean;\n checkTypesPattern?: string;\n disableExtraPropertyReporting?: boolean;\n disableMissingParamChecks?: boolean;\n enableFixer?: boolean;\n useDefaultObjectProperties?: boolean;\n }>;\n};\n\nexport const jsdocRules = (requireJsdoc = false): JsdocRules => ({\n \"jsdoc/check-access\": \"warn\",\n \"jsdoc/check-alignment\": \"warn\",\n \"jsdoc/check-examples\": \"off\",\n \"jsdoc/check-indentation\": \"off\",\n \"jsdoc/check-line-alignment\": \"off\",\n \"jsdoc/check-param-names\": [\n \"warn\",\n {\n checkDestructured: true,\n enableFixer: true,\n },\n ],\n \"jsdoc/check-property-names\": \"warn\",\n \"jsdoc/check-syntax\": \"off\",\n \"jsdoc/check-tag-names\": [\n \"warn\",\n {\n typed: true,\n },\n ],\n \"jsdoc/check-template-names\": \"off\",\n \"jsdoc/check-types\": \"warn\",\n \"jsdoc/check-values\": \"warn\",\n \"jsdoc/convert-to-jsdoc-comments\": \"off\",\n \"jsdoc/empty-tags\": \"warn\",\n \"jsdoc/implements-on-classes\": \"warn\",\n \"jsdoc/imports-as-dependencies\": \"off\",\n \"jsdoc/informative-docs\": \"off\",\n \"jsdoc/lines-before-block\": \"off\",\n \"jsdoc/match-description\": \"off\",\n \"jsdoc/match-name\": \"off\",\n \"jsdoc/multiline-blocks\": \"warn\",\n \"jsdoc/no-bad-blocks\": \"off\",\n \"jsdoc/no-blank-block-descriptions\": \"off\",\n \"jsdoc/no-blank-blocks\": \"off\",\n \"jsdoc/no-defaults\": \"warn\",\n \"jsdoc/no-missing-syntax\": \"off\",\n \"jsdoc/no-multi-asterisks\": \"warn\",\n \"jsdoc/no-restricted-syntax\": \"off\",\n \"jsdoc/no-types\": \"off\",\n \"jsdoc/require-asterisk-prefix\": \"warn\",\n \"jsdoc/require-description\": requireJsdoc ? \"warn\" : \"off\",\n \"jsdoc/require-description-complete-sentence\": \"off\",\n \"jsdoc/require-file-overview\": \"off\",\n \"jsdoc/require-hyphen-before-param-description\": \"off\",\n \"jsdoc/require-jsdoc\": requireJsdoc ? \"warn\" : \"off\",\n \"jsdoc/require-param\": \"warn\",\n \"jsdoc/require-param-description\": \"warn\",\n \"jsdoc/require-param-name\": \"warn\",\n \"jsdoc/require-property\": \"warn\",\n \"jsdoc/require-property-description\": \"warn\",\n \"jsdoc/require-property-name\": \"warn\",\n \"jsdoc/require-returns\": \"warn\",\n \"jsdoc/require-returns-check\": \"warn\",\n \"jsdoc/require-returns-description\": \"warn\",\n \"jsdoc/require-template\": \"off\",\n \"jsdoc/require-throws\": \"off\",\n \"jsdoc/require-yields\": \"warn\",\n \"jsdoc/require-yields-check\": \"warn\",\n \"jsdoc/sort-tags\": \"off\",\n \"jsdoc/tag-lines\": \"warn\",\n \"jsdoc/text-escaping\": \"off\",\n \"jsdoc/valid-types\": \"warn\",\n});\n"],"mappings":";AAeO,IAAM,aAAa,CAAC,eAAe,WAAuB;AAAA,EAC/D,sBAAsB;AAAA,EACtB,yBAAyB;AAAA,EACzB,wBAAwB;AAAA,EACxB,2BAA2B;AAAA,EAC3B,8BAA8B;AAAA,EAC9B,2BAA2B;AAAA,IACzB;AAAA,IACA;AAAA,MACE,mBAAmB;AAAA,MACnB,aAAa;AAAA,IACf;AAAA,EACF;AAAA,EACA,8BAA8B;AAAA,EAC9B,sBAAsB;AAAA,EACtB,yBAAyB;AAAA,IACvB;AAAA,IACA;AAAA,MACE,OAAO;AAAA,IACT;AAAA,EACF;AAAA,EACA,8BAA8B;AAAA,EAC9B,qBAAqB;AAAA,EACrB,sBAAsB;AAAA,EACtB,mCAAmC;AAAA,EACnC,oBAAoB;AAAA,EACpB,+BAA+B;AAAA,EAC/B,iCAAiC;AAAA,EACjC,0BAA0B;AAAA,EAC1B,4BAA4B;AAAA,EAC5B,2BAA2B;AAAA,EAC3B,oBAAoB;AAAA,EACpB,0BAA0B;AAAA,EAC1B,uBAAuB;AAAA,EACvB,qCAAqC;AAAA,EACrC,yBAAyB;AAAA,EACzB,qBAAqB;AAAA,EACrB,2BAA2B;AAAA,EAC3B,4BAA4B;AAAA,EAC5B,8BAA8B;AAAA,EAC9B,kBAAkB;AAAA,EAClB,iCAAiC;AAAA,EACjC,6BAA6B,eAAe,SAAS;AAAA,EACrD,+CAA+C;AAAA,EAC/C,+BAA+B;AAAA,EAC/B,iDAAiD;AAAA,EACjD,uBAAuB,eAAe,SAAS;AAAA,EAC/C,uBAAuB;AAAA,EACvB,mCAAmC;AAAA,EACnC,4BAA4B;AAAA,EAC5B,0BAA0B;AAAA,EAC1B,sCAAsC;AAAA,EACtC,+BAA+B;AAAA,EAC/B,yBAAyB;AAAA,EACzB,+BAA+B;AAAA,EAC/B,qCAAqC;AAAA,EACrC,0BAA0B;AAAA,EAC1B,wBAAwB;AAAA,EACxB,wBAAwB;AAAA,EACxB,8BAA8B;AAAA,EAC9B,mBAAmB;AAAA,EACnB,mBAAmB;AAAA,EACnB,uBAAuB;AAAA,EACvB,qBAAqB;AACvB;","names":[]}
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
} from "./chunk-AHLHRIAC.js";
|
|
4
4
|
import {
|
|
5
5
|
configNames
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-VPM23SRN.js";
|
|
7
7
|
|
|
8
8
|
// src/eslint/typescript/config.ts
|
|
9
9
|
import tseslint from "typescript-eslint";
|
|
@@ -35,4 +35,4 @@ var tseslintConfig = (tsconfigPath) => {
|
|
|
35
35
|
export {
|
|
36
36
|
tseslintConfig
|
|
37
37
|
};
|
|
38
|
-
//# sourceMappingURL=chunk-
|
|
38
|
+
//# sourceMappingURL=chunk-HCYPJVMS.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/eslint/javascript/rules.ts"],"sourcesContent":["import type { EslintRuleConfig, FunctionStyle } from \"../types.js\";\n\ntype BaseRules = Record<string, EslintRuleConfig> & {\n \"func-style\"?: EslintRuleConfig<\n \"declaration\" | \"expression\",\n {\n allowArrowFunctions?: boolean;\n overrides?: {\n namedExports?: \"declaration\" | \"expression\" | \"ignore\";\n };\n }\n >;\n};\n\nexport const baseEslintRules = (\n functionStyle: \"off\" | FunctionStyle,\n): BaseRules => ({\n /**\n * Require return statements in array methods callbacks.\n *\n * 🚫 Not fixable -https://eslint.org/docs/rules/array-callback-return\n */\n \"array-callback-return\": [\n \"warn\",\n { allowImplicit: true, checkForEach: true },\n ],\n /**\n * Treat `var` statements as if they were block scoped.\n *\n * 🚫 Not fixable - https://eslint.org/docs/rules/block-scoped-var\n */\n \"block-scoped-var\": \"warn\",\n /**\n * Require camel case names.\n *\n * 🚫 Not fixable - https://eslint.org/docs/rules/camelcase\n */\n camelcase: [\n \"warn\",\n { allow: [\"^UNSAFE_\"], ignoreDestructuring: false, properties: \"never\" },\n ],\n /**\n * Require curly braces for multiline blocks.\n *\n * 🔧 Fixable - https://eslint.org/docs/rules/curly\n */\n curly: [\"warn\", \"multi-line\"],\n /**\n * Require default clauses in switch statements to be last (if used).\n *\n * 🚫 Not fixable - https://eslint.org/docs/rules/default-case-last\n */\n \"default-case-last\": \"warn\",\n /**\n * Require triple equals (`===` and `!==`).\n *å\n * 🔧 Fixable - https://eslint.org/docs/rules/eqeqeq\n */\n eqeqeq: \"warn\",\n \"for-direction\": \"warn\",\n /**\n * Require function expressions to have a name.\n *\n * 🚫 Not fixable - https://eslint.org/docs/rules/func-names\n */\n \"func-names\": [\"warn\", \"as-needed\"],\n \"func-style\":\n functionStyle === \"off\" ? \"off\" : (\n [\n \"warn\",\n functionStyle === \"arrow\" ? \"expression\" : functionStyle,\n { allowArrowFunctions: true },\n ]\n ),\n /**\n * Require grouped accessor pairs in object literals and classes.\n *\n * 🚫 Not fixable - https://eslint.org/docs/rules/grouped-accessor-pairs\n */\n \"grouped-accessor-pairs\": \"warn\",\n /**\n * Require a capital letter for constructors.\n *\n * 🚫 Not fixable - https://eslint.org/docs/rules/new-cap\n */\n \"new-cap\": [\"warn\", { capIsNew: false }],\n /**\n * Disallow use of `alert()`.\n *\n * 🚫 Not fixable - https://eslint.org/docs/rules/no-alert\n */\n \"no-alert\": \"warn\",\n \"no-async-promise-executor\": \"warn\",\n /**\n * Disallow use of bitwise operators.\n *\n * 🚫 Not fixable - https://eslint.org/docs/rules/no-bitwise\n */\n \"no-bitwise\": \"warn\",\n /**\n * Disallow use of `caller`/`callee`.\n *\n * 🚫 Not fixable - https://eslint.org/docs/rules/no-caller\n */\n \"no-caller\": \"warn\",\n \"no-case-declarations\": \"warn\",\n \"no-compare-neg-zero\": \"warn\",\n \"no-cond-assign\": \"warn\",\n /**\n * Disallow the use of console.\n *\n * 🚫 Not fixable - https://eslint.org/docs/rules/no-console\n */\n \"no-console\": [\"warn\", { allow: [\"info\", \"warn\", \"error\"] }],\n /**\n * Disallow expressions where the operation doesn't affect the value.\n *\n * 🚫 Not fixable - https://eslint.org/docs/rules/no-console\n */\n \"no-constant-binary-expression\": \"warn\",\n \"no-constant-condition\": \"warn\",\n /**\n * Disallow returning value in constructor.\n *\n * 🚫 Not fixable - https://eslint.org/docs/rules/no-constructor-return\n */\n \"no-constructor-return\": \"warn\",\n \"no-control-regex\": \"warn\",\n \"no-debugger\": \"warn\",\n \"no-delete-var\": \"warn\",\n \"no-dupe-else-if\": \"warn\",\n \"no-duplicate-case\": \"warn\",\n /**\n * Disallow using an `else` if the `if` block contains a return.\n *\n * 🔧 Fixable - https://eslint.org/docs/rules/no-else-return\n */\n \"no-else-return\": \"warn\",\n \"no-empty\": \"warn\",\n \"no-empty-character-class\": \"warn\",\n \"no-empty-pattern\": \"warn\",\n \"no-empty-static-block\": \"warn\",\n /**\n * Disallow `eval()`.\n *\n * 🚫 Not fixable - https://eslint.org/docs/rules/no-eval\n */\n \"no-eval\": \"warn\",\n \"no-ex-assign\": \"warn\",\n /**\n * Disallow extending native objects.\n *\n * 🚫 Not fixable - https://eslint.org/docs/rules/no-extend-native\n */\n \"no-extend-native\": \"warn\",\n /**\n * Disallow unnecessary function binding.\n *\n * 🔧 Fixable - https://eslint.org/docs/rules/no-extra-bind\n */\n \"no-extra-bind\": \"warn\",\n \"no-extra-boolean-cast\": \"warn\",\n /**\n * Disallow unnecessary labels.\n *\n * 🔧 Fixable - https://eslint.org/docs/rules/no-extra-label\n */\n \"no-extra-label\": \"warn\",\n \"no-fallthrough\": \"warn\",\n \"no-global-assign\": \"warn\",\n /**\n * Make people convert types explicitly e.g. `Boolean(foo)` instead of `!!foo`.\n *\n * 🔧 Partially Fixable - https://eslint.org/docs/rules/no-implicit-coercion\n */\n \"no-implicit-coercion\": \"warn\",\n \"no-invalid-regexp\": \"warn\",\n \"no-irregular-whitespace\": \"warn\",\n /**\n * Disallow usage of `__iterator__` property.\n *\n * 🚫 Not fixable - https://eslint.org/docs/rules/no-iterator\n */\n \"no-iterator\": \"warn\",\n /**\n * Disallow labels that share a name with a variable.\n *\n * 🚫 Not fixable - https://eslint.org/docs/rules/no-label-var\n */\n \"no-label-var\": \"warn\",\n /**\n * Disallow use of labels for anything other than loops and switches.\n *\n * 🚫 Not fixable - https://eslint.org/docs/rules/no-labels\n */\n \"no-labels\": [\"warn\"],\n /**\n * Disallow unnecessary nested blocks.\n *\n * 🚫 Not fixable - https://eslint.org/docs/rules/no-lone-blocks\n */\n \"no-lone-blocks\": \"warn\",\n /**\n * Disallow if as the only statement in an else block.\n *\n * 🔧 Fixable - https://eslint.org/docs/rules/no-lonely-if\n */\n \"no-lonely-if\": \"warn\",\n \"no-loss-of-precision\": \"warn\",\n \"no-misleading-character-class\": \"warn\",\n /**\n * Disallow use of chained assignment expressions.\n *\n * 🚫 Not fixable - https://eslint.org/docs/rules/no-multi-assign\n */\n \"no-multi-assign\": [\"warn\"],\n /**\n * Disallow nested ternary expressions.\n *\n * 🚫 Not fixable - https://eslint.org/docs/rules/no-nested-ternary\n */\n \"no-nested-ternary\": \"warn\",\n /**\n * Disallow `new` for side effects.\n *\n * 🚫 Not fixable - https://eslint.org/docs/rules/no-new\n */\n \"no-new\": \"warn\",\n /**\n * Disallow function constructors.\n *\n * 🚫 Not fixable - https://eslint.org/docs/rules/no-new-func\n */\n \"no-new-func\": \"warn\",\n /**\n * Disallow primitive wrapper instances, such as `new String('foo')`.\n *\n * 🚫 Not fixable - https://eslint.org/docs/rules/no-new-wrappers\n */\n \"no-new-wrappers\": \"warn\",\n \"no-nonoctal-decimal-escape\": \"warn\",\n \"no-octal\": \"warn\",\n /**\n * Disallow use of octal escape sequences in string literals.\n *\n * 🚫 Not fixable - https://eslint.org/docs/rules/no-octal-escape\n */\n \"no-octal-escape\": \"warn\",\n /**\n * Disallow reassignment of function parameters.\n *\n * 🚫 Not fixable - https://eslint.org/docs/rules/no-param-reassign\n */\n \"no-param-reassign\": \"warn\",\n /**\n * Disallow returning values from Promise executor functions.\n *\n * 🚫 Not fixable - https://eslint.org/docs/rules/no-promise-executor-return\n */\n \"no-promise-executor-return\": \"warn\",\n /**\n * Disallow usage of the deprecated `__proto__` property.\n *\n * 🚫 Not fixable - https://eslint.org/docs/rules/no-proto\n */\n \"no-proto\": \"warn\",\n \"no-prototype-builtins\": \"warn\",\n \"no-regex-spaces\": \"warn\",\n /**\n * Disallow assignment in `return` statement.\n *\n * 🚫 Not fixable - https://eslint.org/docs/rules/no-return-assign\n */\n \"no-return-assign\": \"warn\",\n /**\n * Disallow use of `javascript:` urls.\n *\n * 🚫 Not fixable - https://eslint.org/docs/rules/no-script-url\n */\n \"no-script-url\": \"warn\",\n \"no-self-assign\": \"warn\",\n /**\n * Disallow comparisons where both sides are exactly the same.\n *\n * 🚫 Not fixable - https://eslint.org/docs/rules/no-self-compare\n */\n \"no-self-compare\": \"warn\",\n /**\n * Disallow use of comma operator.\n *\n * 🚫 Not fixable - https://eslint.org/docs/rules/no-sequences\n */\n \"no-sequences\": \"warn\",\n \"no-shadow-restricted-names\": \"warn\",\n \"no-sparse-arrays\": \"warn\",\n /**\n * Disallow template literal placeholder syntax in regular strings, as\n * these are likely errors.\n *\n * 🚫 Not fixable - https://eslint.org/docs/rules/no-template-curly-in-string\n */\n \"no-template-curly-in-string\": \"warn\",\n /**\n * Disallow initializing variables to `undefined`.\n *\n * 🔧 Fixable - https://eslint.org/docs/rules/no-undef-init\n */\n \"no-undef-init\": \"warn\",\n \"no-unexpected-multiline\": \"warn\",\n /**\n * Disallow ternary operators when simpler alternatives exist.\n *\n * 🚫 Not fixable - https://eslint.org/docs/rules/no-unneeded-ternary\n */\n \"no-unneeded-ternary\": \"warn\",\n /**\n * Disallow loops with a body that allows only one iteration.\n *\n * 🚫 Not fixable - https://eslint.org/docs/rules/no-unreachable-loop\n */\n \"no-unreachable-loop\": \"warn\",\n \"no-unsafe-finally\": \"warn\",\n \"no-unsafe-optional-chaining\": \"warn\",\n \"no-unused-labels\": \"warn\",\n \"no-unused-private-class-members\": \"warn\",\n \"no-useless-backreference\": \"warn\",\n /**\n * Disallow unnecessary `.call()` and `.apply()`.\n *\n * 🚫 Not fixable - https://eslint.org/docs/rules/no-useless-call\n */\n \"no-useless-call\": \"warn\",\n \"no-useless-catch\": \"warn\",\n /**\n * Disallow useless computed property keys.\n *\n * � Fixable - https://eslint.org/docs/rules/no-useless-computed-key\n */\n \"no-useless-computed-key\": \"warn\",\n /**\n * Disallow unnecessary concatenation of strings.\n *\n * � Not fixable - https://eslint.org/docs/rules/no-useless-concat\n */\n \"no-useless-concat\": \"warn\",\n \"no-useless-escape\": \"warn\",\n /**\n * Disallow renaming import, export, and destructured assignments to the\n * same name.\n *\n * � Fixable - https://eslint.org/docs/rules/no-useless-rename\n */\n \"no-useless-rename\": \"warn\",\n /**\n * Disallow redundant return statements.\n *\n * � Fixable - https://eslint.org/docs/rules/no-useless-return\n */\n \"no-useless-return\": \"warn\",\n /**\n * Require `let` or `const` instead of `var`.\n * ts transpiles let/const to var, so no need for vars any more\n *\n * 🔧 Fixable - https://eslint.org/docs/rules/no-var\n */\n \"no-var\": \"warn\",\n \"no-with\": \"warn\",\n /**\n * Require object literal shorthand syntax.\n *\n * 🔧 Fixable - https://eslint.org/docs/rules/object-shorthand\n */\n \"object-shorthand\": \"warn\",\n /**\n * Require default to `const` instead of `let`.\n * ts provides better types with const\n *\n * 🔧 Fixable - https://eslint.org/docs/rules/prefer-const\n */\n \"prefer-const\": \"warn\",\n /**\n * Require using named capture groups in regular expressions.\n *\n * � Not fixable - https://eslint.org/docs/rules/prefer-named-capture-group\n */\n \"prefer-named-capture-group\": \"warn\",\n /**\n * Disallow parseInt() in favor of binary, octal, and hexadecimal literals.\n *\n * 🔧 Fixable - https://eslint.org/docs/rules/prefer-numeric-literals\n */\n \"prefer-numeric-literals\": \"warn\",\n /**\n * Require use of an object spread over Object.assign.\n *\n * 🔧 Fixable - https://eslint.org/docs/rules/prefer-object-spread\n */\n \"prefer-object-spread\": \"warn\",\n /**\n * Disallow use of the RegExp constructor in favor of regular expression\n * literals.\n *\n * � Not fixable - https://eslint.org/docs/rules/prefer-regex-literals\n */\n \"prefer-regex-literals\": \"warn\",\n /**\n * Require using rest parameters instead of `arguments`.\n * ts provides better types with rest args over arguments\n *\n * 🚫 Not fixable - https://eslint.org/docs/rules/prefer-rest-params\n */\n \"prefer-rest-params\": \"warn\",\n /**\n * Require using spread syntax instead of `.apply()`.\n * ts transpiles spread to apply, so no need for manual apply\n *\n * 🚫 Not fixable - https://eslint.org/docs/rules/prefer-spread\n */\n \"prefer-spread\": \"warn\",\n /**\n * Require using template literals instead of string concatenation.\n *\n * 🔧 Fixable - https://eslint.org/docs/rules/prefer-template\n */\n \"prefer-template\": \"warn\",\n \"require-yield\": \"warn\",\n /**\n * Require a `Symbol` description.\n *\n * 🚫 Not fixable - https://eslint.org/docs/rules/symbol-description\n */\n \"symbol-description\": \"warn\",\n \"use-isnan\": \"warn\",\n \"valid-typeof\": \"warn\",\n /**\n * Disallow \"Yoda conditions\", ensuring the comparison.\n *\n * 🔧 Fixable - https://eslint.org/docs/rules/yoda\n */\n yoda: \"warn\",\n});\n"],"mappings":";AAcO,IAAM,kBAAkB,CAC7B,mBACe;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAMf,yBAAyB;AAAA,IACvB;AAAA,IACA,EAAE,eAAe,MAAM,cAAc,KAAK;AAAA,EAC5C;AAAA;AAAA;AAAA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AAAA,EAOpB,gBAAgB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAMhB,8BAA8B;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAM9B,2BAA2B;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAM3B,wBAAwB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAOxB,yBAAyB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAOzB,sBAAsB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAOtB,iBAAiB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAMjB,mBAAmB;AAAA,EACnB,iBAAiB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAMjB,sBAAsB;AAAA,EACtB,aAAa;AAAA,EACb,gBAAgB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAMhB,MAAM;AACR;","names":[]}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
reactRules
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-FKPZBDM2.js";
|
|
4
4
|
import {
|
|
5
5
|
configNames
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-VPM23SRN.js";
|
|
7
7
|
|
|
8
8
|
// src/eslint/react/config.ts
|
|
9
9
|
import react from "eslint-plugin-react";
|
|
@@ -38,4 +38,4 @@ var reactEslintConfig = (functionStyle, typescript) => {
|
|
|
38
38
|
export {
|
|
39
39
|
reactEslintConfig
|
|
40
40
|
};
|
|
41
|
-
//# sourceMappingURL=chunk-
|
|
41
|
+
//# sourceMappingURL=chunk-I5KJFBUR.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/eslint/react/config.ts"],"sourcesContent":["import react from \"eslint-plugin-react\";\nimport pluginReactHooks from \"eslint-plugin-react-hooks\";\nimport globals from \"globals\";\n\nimport type { EslintConfigObject, FunctionStyle } from \"../types.js\";\n\nimport { configNames } from \"../constants.js\";\nimport { reactRules } from \"./rules.js\";\n\nexport const reactEslintConfig = (\n functionStyle: \"off\" | FunctionStyle,\n typescript: boolean,\n): EslintConfigObject => {\n return {\n languageOptions: {\n globals: {\n ...globals.browser,\n },\n parserOptions: {\n ecmaFeatures: {\n jsx: true,\n },\n },\n },\n name: configNames.react,\n plugins: {\n react,\n \"react-hooks\": pluginReactHooks,\n },\n rules: reactRules(functionStyle, typescript),\n settings: {\n react: {\n version: \"detect\",\n },\n },\n };\n};\n"],"mappings":";;;;;;;;AAAA,OAAO,WAAW;AAClB,OAAO,sBAAsB;AAC7B,OAAO,aAAa;AAOb,IAAM,oBAAoB,CAC/B,eACA,eACuB;AACvB,SAAO;AAAA,IACL,iBAAiB;AAAA,MACf,SAAS;AAAA,QACP,GAAG,QAAQ;AAAA,MACb;AAAA,MACA,eAAe;AAAA,QACb,cAAc;AAAA,UACZ,KAAK;AAAA,QACP;AAAA,MACF;AAAA,IACF;AAAA,IACA,MAAM,YAAY;AAAA,IAClB,SAAS;AAAA,MACP;AAAA,MACA,eAAe;AAAA,IACjB;AAAA,IACA,OAAO,WAAW,eAAe,UAAU;AAAA,IAC3C,UAAU;AAAA,MACR,OAAO;AAAA,QACL,SAAS;AAAA,MACX;AAAA,IACF;AAAA,EACF;AACF;","names":[]}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
baseEslintRules
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-HHSPUTJX.js";
|
|
4
4
|
import {
|
|
5
5
|
configNames
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-VPM23SRN.js";
|
|
7
7
|
|
|
8
8
|
// src/eslint/javascript/config.ts
|
|
9
9
|
var baseEslintConfig = (functionStyle) => ({
|
|
@@ -18,4 +18,4 @@ var baseEslintConfig = (functionStyle) => ({
|
|
|
18
18
|
export {
|
|
19
19
|
baseEslintConfig
|
|
20
20
|
};
|
|
21
|
-
//# sourceMappingURL=chunk-
|
|
21
|
+
//# sourceMappingURL=chunk-SKA72A2W.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/eslint/javascript/config.ts"],"sourcesContent":["import type { EslintConfigObject, FunctionStyle } from \"../types.js\";\n\nimport { configNames } from \"../constants.js\";\nimport { baseEslintRules } from \"./rules.js\";\n\nexport const baseEslintConfig = (\n functionStyle: \"off\" | FunctionStyle,\n): EslintConfigObject => ({\n languageOptions: {\n ecmaVersion: 2022,\n },\n linterOptions: { reportUnusedDisableDirectives: true },\n name: configNames.base,\n rules: baseEslintRules(functionStyle),\n});\n"],"mappings":";;;;;;;;AAKO,IAAM,mBAAmB,CAC9B,mBACwB;AAAA,EACxB,iBAAiB;AAAA,IACf,aAAa;AAAA,EACf;AAAA,EACA,eAAe,EAAE,+BAA+B,KAAK;AAAA,EACrD,MAAM,YAAY;AAAA,EAClB,OAAO,gBAAgB,aAAa;AACtC;","names":[]}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
perfectionistRules
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-3SHRYTUT.js";
|
|
4
4
|
import {
|
|
5
5
|
configNames
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-VPM23SRN.js";
|
|
7
7
|
|
|
8
8
|
// src/eslint/perfectionist/config.ts
|
|
9
9
|
import perfectionist from "eslint-plugin-perfectionist";
|
|
@@ -18,4 +18,4 @@ var perfectionistConfig = {
|
|
|
18
18
|
export {
|
|
19
19
|
perfectionistConfig
|
|
20
20
|
};
|
|
21
|
-
//# sourceMappingURL=chunk-
|
|
21
|
+
//# sourceMappingURL=chunk-USZK5FQ5.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/eslint/perfectionist/config.ts"],"sourcesContent":["import perfectionist from \"eslint-plugin-perfectionist\";\n\nimport type { EslintConfigObject } from \"../types.js\";\n\nimport { configNames } from \"../constants.js\";\nimport { perfectionistRules } from \"./rules.js\";\n\nexport const perfectionistConfig: EslintConfigObject = {\n name: configNames.perfectionist,\n plugins: {\n perfectionist,\n },\n rules: perfectionistRules,\n};\n"],"mappings":";;;;;;;;AAAA,OAAO,mBAAmB;AAOnB,IAAM,sBAA0C;AAAA,EACrD,MAAM,YAAY;AAAA,EAClB,SAAS;AAAA,IACP;AAAA,EACF;AAAA,EACA,OAAO;AACT;","names":[]}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
jsdocRules
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-GGJAIVFW.js";
|
|
4
4
|
import {
|
|
5
5
|
configNames
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-VPM23SRN.js";
|
|
7
7
|
|
|
8
8
|
// src/eslint/jsdoc/config.ts
|
|
9
9
|
import jsdoc from "eslint-plugin-jsdoc";
|
|
10
10
|
var jsdocConfig = (requireJsdoc = false) => ({
|
|
11
|
-
name: configNames.
|
|
11
|
+
name: configNames.jsdoc,
|
|
12
12
|
plugins: {
|
|
13
13
|
jsdoc
|
|
14
14
|
},
|
|
@@ -18,4 +18,4 @@ var jsdocConfig = (requireJsdoc = false) => ({
|
|
|
18
18
|
export {
|
|
19
19
|
jsdocConfig
|
|
20
20
|
};
|
|
21
|
-
//# sourceMappingURL=chunk-
|
|
21
|
+
//# sourceMappingURL=chunk-UUHSXW3X.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/eslint/jsdoc/config.ts"],"sourcesContent":["import jsdoc from \"eslint-plugin-jsdoc\";\n\nimport type { EslintConfigObject } from \"../types.js\";\n\nimport { configNames } from \"../constants.js\";\nimport { jsdocRules } from \"./rules.js\";\n\nexport const jsdocConfig = (requireJsdoc = false): EslintConfigObject => ({\n name: configNames.jsdoc,\n plugins: {\n jsdoc,\n },\n rules: jsdocRules(requireJsdoc),\n});\n"],"mappings":";;;;;;;;AAAA,OAAO,WAAW;AAOX,IAAM,cAAc,CAAC,eAAe,WAA+B;AAAA,EACxE,MAAM,YAAY;AAAA,EAClB,SAAS;AAAA,IACP;AAAA,EACF;AAAA,EACA,OAAO,WAAW,YAAY;AAChC;","names":[]}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
configNames
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-VPM23SRN.js";
|
|
4
4
|
|
|
5
5
|
// src/eslint/react-compiler/config.ts
|
|
6
6
|
import reactCompiler from "eslint-plugin-react-compiler";
|
|
@@ -17,4 +17,4 @@ var reactCompilerEslintConfig = {
|
|
|
17
17
|
export {
|
|
18
18
|
reactCompilerEslintConfig
|
|
19
19
|
};
|
|
20
|
-
//# sourceMappingURL=chunk-
|
|
20
|
+
//# sourceMappingURL=chunk-V6X244X5.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/eslint/react-compiler/config.ts"],"sourcesContent":["import reactCompiler from \"eslint-plugin-react-compiler\";\n\nimport type { EslintConfigObject } from \"../types.js\";\n\nimport { configNames } from \"../constants.js\";\n\nexport const reactCompilerEslintConfig: EslintConfigObject = {\n name: configNames.reactCompiler,\n plugins: {\n \"react-compiler\": reactCompiler,\n },\n rules: {\n \"react-compiler/react-compiler\": \"error\",\n },\n};\n"],"mappings":";;;;;AAAA,OAAO,mBAAmB;AAMnB,IAAM,4BAAgD;AAAA,EAC3D,MAAM,YAAY;AAAA,EAClB,SAAS;AAAA,IACP,kBAAkB;AAAA,EACpB;AAAA,EACA,OAAO;AAAA,IACL,iCAAiC;AAAA,EACnC;AACF;","names":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/eslint/constants.ts"],"sourcesContent":["export const configNames = {\n base: \"base-config\",\n disableTypeChecked: \"typescript-eslint/disable-type-checked\",\n ignores: \"ignores-config\",\n jsdoc: \"jsdoc-config\",\n perfectionist: \"perfectionist-config\",\n react: \"react-config\",\n reactCompiler: \"react-compiler-config\",\n typescript: \"tseslint-config\",\n} as const;\n"],"mappings":";AAAO,IAAM,cAAc;AAAA,EACzB,MAAM;AAAA,EACN,oBAAoB;AAAA,EACpB,SAAS;AAAA,EACT,OAAO;AAAA,EACP,eAAe;AAAA,EACf,OAAO;AAAA,EACP,eAAe;AAAA,EACf,YAAY;AACd;","names":[]}
|
|
1
|
+
{"version":3,"sources":["../src/eslint/constants.ts"],"sourcesContent":["export const configNames = {\n base: \"base-config\",\n disableTypeChecked: \"typescript-eslint/disable-type-checked\",\n ignores: \"ignores-config\",\n jsdoc: \"jsdoc-config\",\n perfectionist: \"perfectionist-config\",\n react: \"react-config\",\n reactCompiler: \"react-compiler-config\",\n typescript: \"tseslint-config\",\n} as const;\n\nexport type ConfigName = (typeof configNames)[keyof typeof configNames];\n"],"mappings":";AAAO,IAAM,cAAc;AAAA,EACzB,MAAM;AAAA,EACN,oBAAoB;AAAA,EACpB,SAAS;AAAA,EACT,OAAO;AAAA,EACP,eAAe;AAAA,EACf,OAAO;AAAA,EACP,eAAe;AAAA,EACf,YAAY;AACd;","names":[]}
|
|
@@ -12127,7 +12127,7 @@ var JestExtend = (chai2, utils) => {
|
|
|
12127
12127
|
);
|
|
12128
12128
|
};
|
|
12129
12129
|
|
|
12130
|
-
// ../../node_modules/.pnpm/vitest@3.0.5_@types+debug@4.1.12_@types+node@22.13.
|
|
12130
|
+
// ../../node_modules/.pnpm/vitest@3.0.5_@types+debug@4.1.12_@types+node@22.13.4_jiti@1.21.7_terser@5.37.0_yaml@2.7.0/node_modules/vitest/dist/chunks/utils.C8RiOc4B.js
|
|
12131
12131
|
var NAME_WORKER_STATE = "__vitest_worker__";
|
|
12132
12132
|
function getWorkerState() {
|
|
12133
12133
|
const workerState = globalThis[NAME_WORKER_STATE];
|
|
@@ -12187,7 +12187,7 @@ async function waitForImportsToResolve() {
|
|
|
12187
12187
|
await waitForImportsToResolve();
|
|
12188
12188
|
}
|
|
12189
12189
|
|
|
12190
|
-
// ../../node_modules/.pnpm/vitest@3.0.5_@types+debug@4.1.12_@types+node@22.13.
|
|
12190
|
+
// ../../node_modules/.pnpm/vitest@3.0.5_@types+debug@4.1.12_@types+node@22.13.4_jiti@1.21.7_terser@5.37.0_yaml@2.7.0/node_modules/vitest/dist/chunks/_commonjsHelpers.BFTU3MAI.js
|
|
12191
12191
|
var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
|
|
12192
12192
|
function getDefaultExportFromCjs3(x2) {
|
|
12193
12193
|
return x2 && x2.__esModule && Object.prototype.hasOwnProperty.call(x2, "default") ? x2["default"] : x2;
|
|
@@ -14256,7 +14256,7 @@ var SnapshotClient = class {
|
|
|
14256
14256
|
}
|
|
14257
14257
|
};
|
|
14258
14258
|
|
|
14259
|
-
// ../../node_modules/.pnpm/vitest@3.0.5_@types+debug@4.1.12_@types+node@22.13.
|
|
14259
|
+
// ../../node_modules/.pnpm/vitest@3.0.5_@types+debug@4.1.12_@types+node@22.13.4_jiti@1.21.7_terser@5.37.0_yaml@2.7.0/node_modules/vitest/dist/chunks/date.W2xKR2qe.js
|
|
14260
14260
|
var RealDate = Date;
|
|
14261
14261
|
var now2 = null;
|
|
14262
14262
|
var MockDate = class _MockDate extends RealDate {
|
|
@@ -14309,7 +14309,7 @@ function resetDate() {
|
|
|
14309
14309
|
globalThis.Date = RealDate;
|
|
14310
14310
|
}
|
|
14311
14311
|
|
|
14312
|
-
// ../../node_modules/.pnpm/vitest@3.0.5_@types+debug@4.1.12_@types+node@22.13.
|
|
14312
|
+
// ../../node_modules/.pnpm/vitest@3.0.5_@types+debug@4.1.12_@types+node@22.13.4_jiti@1.21.7_terser@5.37.0_yaml@2.7.0/node_modules/vitest/dist/chunks/vi.CjhMlMwf.js
|
|
14313
14313
|
var unsupported = [
|
|
14314
14314
|
// .poll is meant to retry matchers until they succeed, and
|
|
14315
14315
|
// snapshots will always succeed as long as the poll method doesn't throw an error
|
|
@@ -17269,7 +17269,7 @@ function getImporter(name) {
|
|
|
17269
17269
|
return stack?.file || "";
|
|
17270
17270
|
}
|
|
17271
17271
|
|
|
17272
|
-
// ../../node_modules/.pnpm/vitest@3.0.5_@types+debug@4.1.12_@types+node@22.13.
|
|
17272
|
+
// ../../node_modules/.pnpm/vitest@3.0.5_@types+debug@4.1.12_@types+node@22.13.4_jiti@1.21.7_terser@5.37.0_yaml@2.7.0/node_modules/vitest/dist/index.js
|
|
17273
17273
|
var import_expect_type = __toESM(require_dist(), 1);
|
|
17274
17274
|
|
|
17275
17275
|
export {
|
|
@@ -17568,4 +17568,4 @@ chai/chai.js:
|
|
|
17568
17568
|
* @license MIT License
|
|
17569
17569
|
*)
|
|
17570
17570
|
*/
|
|
17571
|
-
//# sourceMappingURL=chunk-
|
|
17571
|
+
//# sourceMappingURL=chunk-XYU7AG7R.js.map
|