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.
- package/dist/chunk-4ELR5S33.js +20 -0
- package/dist/chunk-4ELR5S33.js.map +1 -0
- package/dist/chunk-7FYMBY3Z.js +41 -0
- package/dist/chunk-7FYMBY3Z.js.map +1 -0
- package/dist/{chunk-AL3W54BT.js → chunk-AHLHRIAC.js} +7 -7
- package/dist/{chunk-AL3W54BT.js.map → chunk-AHLHRIAC.js.map} +1 -1
- package/dist/{chunk-IOVQNUC6.js → chunk-CNGG6QVG.js} +2 -2
- package/dist/{chunk-Q3UZX7NT.js → chunk-CPBLULS5.js} +2 -2
- package/dist/chunk-CRVC7SG2.js +70 -0
- package/dist/chunk-CRVC7SG2.js.map +1 -0
- package/dist/chunk-GPY6RCW5.js +38 -0
- package/dist/chunk-GPY6RCW5.js.map +1 -0
- package/dist/{chunk-3H3TV7WG.js → chunk-HSSATLSU.js} +3 -3
- package/dist/chunk-HSSATLSU.js.map +1 -0
- package/dist/{chunk-JY5TAY3J.js → chunk-PSPFBSJV.js} +2 -2
- package/dist/chunk-PSPFBSJV.js.map +1 -0
- package/dist/{chunk-W56QT6S7.js → chunk-QCFCGFZH.js} +3 -1
- package/dist/chunk-QCFCGFZH.js.map +1 -0
- package/dist/{chunk-SVENELEJ.js → chunk-TQVG2NFE.js} +60 -65
- package/dist/chunk-TQVG2NFE.js.map +1 -0
- package/dist/chunk-W7UPJFRB.js +70 -0
- package/dist/chunk-W7UPJFRB.js.map +1 -0
- package/dist/chunk-WHP6ZMC7.js +21 -0
- package/dist/chunk-WHP6ZMC7.js.map +1 -0
- package/dist/{chunk-TQWE6NWW.js → chunk-YZ5DAWYS.js} +4 -4
- package/dist/chunk-YZ5DAWYS.js.map +1 -0
- package/dist/eslint/constants.d.ts +2 -0
- package/dist/eslint/constants.js +1 -1
- package/dist/eslint/ignores.js +2 -2
- package/dist/eslint/index.d.ts +16 -10
- package/dist/eslint/index.js +13 -10
- package/dist/eslint/index.test.js +19 -14
- package/dist/eslint/index.test.js.map +1 -1
- package/dist/eslint/javascript/config.d.ts +1 -1
- package/dist/eslint/javascript/config.js +3 -3
- package/dist/eslint/javascript/rules.d.ts +1 -1
- package/dist/eslint/javascript/rules.js +1 -1
- package/dist/eslint/jsdoc/config.d.ts +5 -0
- package/dist/eslint/jsdoc/config.js +10 -0
- package/dist/eslint/jsdoc/config.js.map +1 -0
- package/dist/eslint/jsdoc/rules.d.ts +17 -0
- package/dist/eslint/jsdoc/rules.js +8 -0
- package/dist/eslint/jsdoc/rules.js.map +1 -0
- package/dist/eslint/perfectionist/config.js +2 -2
- package/dist/eslint/react/config.d.ts +1 -1
- package/dist/eslint/react/config.js +3 -3
- package/dist/eslint/react/rules.d.ts +2 -2
- package/dist/eslint/react/rules.js +1 -1
- package/dist/eslint/react-compiler/config.d.ts +5 -0
- package/dist/eslint/react-compiler/config.js +9 -0
- package/dist/eslint/react-compiler/config.js.map +1 -0
- package/dist/eslint/typescript/config.d.ts +1 -1
- package/dist/eslint/typescript/config.js +3 -3
- package/dist/eslint/typescript/rules.js +1 -1
- package/dist/index.js +13 -10
- package/dist/{magic-string.es-UEL4LDHN.js → magic-string.es-HYRYIEM3.js} +3 -3
- package/dist/magic-string.es-HYRYIEM3.js.map +1 -0
- package/dist/prettier/index.test.js +15 -12
- package/dist/prettier/index.test.js.map +1 -1
- package/dist/types/modules.d.d.ts +3 -0
- package/dist/types/modules.d.js +1 -0
- package/dist/types/modules.d.js.map +1 -0
- package/package.json +18 -10
- package/dist/chunk-3H3TV7WG.js.map +0 -1
- package/dist/chunk-EQOUQWIX.js +0 -45
- package/dist/chunk-EQOUQWIX.js.map +0 -1
- package/dist/chunk-GZC424B7.js +0 -36
- package/dist/chunk-GZC424B7.js.map +0 -1
- package/dist/chunk-JY5TAY3J.js.map +0 -1
- package/dist/chunk-SVENELEJ.js.map +0 -1
- package/dist/chunk-TQWE6NWW.js.map +0 -1
- package/dist/chunk-W56QT6S7.js.map +0 -1
- package/dist/chunk-YS5XHQB5.js +0 -23
- package/dist/chunk-YS5XHQB5.js.map +0 -1
- package/dist/magic-string.es-UEL4LDHN.js.map +0 -1
- /package/dist/{chunk-IOVQNUC6.js.map → chunk-CNGG6QVG.js.map} +0 -0
- /package/dist/{chunk-Q3UZX7NT.js.map → chunk-CPBLULS5.js.map} +0 -0
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import {
|
|
2
|
+
configNames
|
|
3
|
+
} from "./chunk-QCFCGFZH.js";
|
|
4
|
+
|
|
5
|
+
// src/eslint/react-compiler/config.ts
|
|
6
|
+
import reactCompiler from "eslint-plugin-react-compiler";
|
|
7
|
+
var reactCompilerEslintConfig = {
|
|
8
|
+
name: configNames.reactCompiler,
|
|
9
|
+
plugins: {
|
|
10
|
+
"react-compiler": reactCompiler
|
|
11
|
+
},
|
|
12
|
+
rules: {
|
|
13
|
+
"react-compiler/react-compiler": "error"
|
|
14
|
+
}
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
export {
|
|
18
|
+
reactCompilerEslintConfig
|
|
19
|
+
};
|
|
20
|
+
//# sourceMappingURL=chunk-4ELR5S33.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/eslint/react-compiler/config.ts"],"sourcesContent":["import type { Linter } from \"eslint\";\n\nimport reactCompiler from \"eslint-plugin-react-compiler\";\n\nimport { configNames } from \"../constants.js\";\n\nexport const reactCompilerEslintConfig: Linter.Config = {\n name: configNames.reactCompiler,\n plugins: {\n \"react-compiler\": reactCompiler,\n },\n rules: {\n \"react-compiler/react-compiler\": \"error\",\n },\n};\n"],"mappings":";;;;;AAEA,OAAO,mBAAmB;AAInB,IAAM,4BAA2C;AAAA,EACtD,MAAM,YAAY;AAAA,EAClB,SAAS;AAAA,IACP,kBAAkB;AAAA,EACpB;AAAA,EACA,OAAO;AAAA,IACL,iCAAiC;AAAA,EACnC;AACF;","names":[]}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import {
|
|
2
|
+
reactRules
|
|
3
|
+
} from "./chunk-YZ5DAWYS.js";
|
|
4
|
+
import {
|
|
5
|
+
configNames
|
|
6
|
+
} from "./chunk-QCFCGFZH.js";
|
|
7
|
+
|
|
8
|
+
// src/eslint/react/config.ts
|
|
9
|
+
import react from "eslint-plugin-react";
|
|
10
|
+
import pluginReactHooks from "eslint-plugin-react-hooks";
|
|
11
|
+
import globals from "globals";
|
|
12
|
+
var reactEslintConfig = (functionStyle, typescript) => {
|
|
13
|
+
return {
|
|
14
|
+
languageOptions: {
|
|
15
|
+
globals: {
|
|
16
|
+
...globals.browser
|
|
17
|
+
},
|
|
18
|
+
parserOptions: {
|
|
19
|
+
ecmaFeatures: {
|
|
20
|
+
jsx: true
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
name: configNames.react,
|
|
25
|
+
plugins: {
|
|
26
|
+
react,
|
|
27
|
+
"react-hooks": pluginReactHooks
|
|
28
|
+
},
|
|
29
|
+
rules: reactRules(functionStyle, typescript),
|
|
30
|
+
settings: {
|
|
31
|
+
react: {
|
|
32
|
+
version: "detect"
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
|
|
38
|
+
export {
|
|
39
|
+
reactEslintConfig
|
|
40
|
+
};
|
|
41
|
+
//# sourceMappingURL=chunk-7FYMBY3Z.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/eslint/react/config.ts"],"sourcesContent":["import type { Linter } from \"eslint\";\n\nimport react from \"eslint-plugin-react\";\nimport pluginReactHooks from \"eslint-plugin-react-hooks\";\nimport globals from \"globals\";\n\nimport type { 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): Linter.Config => {\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":";;;;;;;;AAEA,OAAO,WAAW;AAClB,OAAO,sBAAsB;AAC7B,OAAO,aAAa;AAOb,IAAM,oBAAoB,CAC/B,eACA,eACkB;AAClB,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":[]}
|
|
@@ -111,12 +111,12 @@ var tseslintRules = {
|
|
|
111
111
|
"@typescript-eslint/restrict-template-expressions": [
|
|
112
112
|
"warn",
|
|
113
113
|
{
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
allowNullish:
|
|
118
|
-
allowNumber:
|
|
119
|
-
allowRegExp:
|
|
114
|
+
allow: [{ from: "lib", name: ["Error", "URL", "URLSearchParams"] }],
|
|
115
|
+
allowAny: true,
|
|
116
|
+
allowBoolean: true,
|
|
117
|
+
allowNullish: true,
|
|
118
|
+
allowNumber: true,
|
|
119
|
+
allowRegExp: true
|
|
120
120
|
}
|
|
121
121
|
],
|
|
122
122
|
"@typescript-eslint/return-await": [
|
|
@@ -134,4 +134,4 @@ var tseslintRules = {
|
|
|
134
134
|
export {
|
|
135
135
|
tseslintRules
|
|
136
136
|
};
|
|
137
|
-
//# sourceMappingURL=chunk-
|
|
137
|
+
//# sourceMappingURL=chunk-AHLHRIAC.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/eslint/typescript/rules.ts"],"sourcesContent":["import type { Linter } from \"eslint\";\n\nexport const tseslintRules: Linter.RulesRecord = {\n \"@typescript-eslint/adjacent-overload-signatures\": \"warn\",\n \"@typescript-eslint/array-type\": \"warn\",\n \"@typescript-eslint/await-thenable\": \"warn\",\n \"@typescript-eslint/ban-ts-comment\": [\n \"warn\",\n { minimumDescriptionLength: 10 },\n ],\n \"@typescript-eslint/ban-tslint-comment\": \"warn\",\n \"@typescript-eslint/class-literal-property-style\": \"warn\",\n \"@typescript-eslint/consistent-generic-constructors\": \"warn\",\n \"@typescript-eslint/consistent-indexed-object-style\": \"warn\",\n \"@typescript-eslint/consistent-type-assertions\": \"warn\",\n \"@typescript-eslint/consistent-type-definitions\": \"warn\",\n \"@typescript-eslint/consistent-type-exports\": [\n \"warn\",\n { fixMixedExportsWithInlineTypeSpecifier: true },\n ],\n \"@typescript-eslint/consistent-type-imports\": [\n \"warn\",\n {\n fixStyle: \"inline-type-imports\",\n prefer: \"type-imports\",\n },\n ],\n \"@typescript-eslint/dot-notation\": \"warn\",\n \"@typescript-eslint/no-array-constructor\": \"warn\",\n \"@typescript-eslint/no-array-delete\": \"warn\",\n \"@typescript-eslint/no-base-to-string\": \"warn\",\n \"@typescript-eslint/no-confusing-non-null-assertion\": \"warn\",\n \"@typescript-eslint/no-confusing-void-expression\": \"warn\",\n \"@typescript-eslint/no-deprecated\": \"warn\",\n \"@typescript-eslint/no-duplicate-enum-values\": \"warn\",\n \"@typescript-eslint/no-duplicate-type-constituents\": \"warn\",\n \"@typescript-eslint/no-dynamic-delete\": \"warn\",\n \"@typescript-eslint/no-empty-function\": \"warn\",\n \"@typescript-eslint/no-empty-object-type\": \"warn\",\n \"@typescript-eslint/no-explicit-any\": \"warn\",\n \"@typescript-eslint/no-extra-non-null-assertion\": \"warn\",\n \"@typescript-eslint/no-extraneous-class\": \"warn\",\n \"@typescript-eslint/no-floating-promises\": \"warn\",\n \"@typescript-eslint/no-for-in-array\": \"warn\",\n \"@typescript-eslint/no-implied-eval\": \"warn\",\n \"@typescript-eslint/no-import-type-side-effects\": \"warn\",\n \"@typescript-eslint/no-inferrable-types\": \"warn\",\n \"@typescript-eslint/no-invalid-void-type\": \"warn\",\n \"@typescript-eslint/no-meaningless-void-operator\": \"warn\",\n \"@typescript-eslint/no-misused-new\": \"warn\",\n \"@typescript-eslint/no-misused-promises\": \"warn\",\n \"@typescript-eslint/no-mixed-enums\": \"warn\",\n \"@typescript-eslint/no-namespace\": \"warn\",\n \"@typescript-eslint/no-non-null-asserted-nullish-coalescing\": \"warn\",\n \"@typescript-eslint/no-non-null-asserted-optional-chain\": \"warn\",\n \"@typescript-eslint/no-non-null-assertion\": \"warn\",\n \"@typescript-eslint/no-redundant-type-constituents\": \"warn\",\n \"@typescript-eslint/no-require-imports\": \"warn\",\n \"@typescript-eslint/no-this-alias\": \"warn\",\n \"@typescript-eslint/no-unnecessary-boolean-literal-compare\": \"warn\",\n \"@typescript-eslint/no-unnecessary-condition\": \"warn\",\n \"@typescript-eslint/no-unnecessary-template-expression\": \"warn\",\n \"@typescript-eslint/no-unnecessary-type-arguments\": \"warn\",\n \"@typescript-eslint/no-unnecessary-type-assertion\": \"warn\",\n \"@typescript-eslint/no-unnecessary-type-constraint\": \"warn\",\n \"@typescript-eslint/no-unnecessary-type-parameters\": \"warn\",\n \"@typescript-eslint/no-unsafe-declaration-merging\": \"warn\",\n \"@typescript-eslint/no-unsafe-enum-comparison\": \"warn\",\n \"@typescript-eslint/no-unsafe-function-type\": \"warn\",\n \"@typescript-eslint/no-unsafe-unary-minus\": \"warn\",\n \"@typescript-eslint/no-unused-expressions\": \"warn\",\n \"@typescript-eslint/no-unused-vars\": [\n \"warn\",\n {\n args: \"after-used\",\n argsIgnorePattern: \"^_\",\n ignoreRestSiblings: false,\n vars: \"all\",\n varsIgnorePattern: \"^_\",\n },\n ],\n \"@typescript-eslint/no-useless-constructor\": \"warn\",\n \"@typescript-eslint/no-wrapper-object-types\": \"warn\",\n \"@typescript-eslint/non-nullable-type-assertion-style\": \"warn\",\n \"@typescript-eslint/only-throw-error\": \"warn\",\n \"@typescript-eslint/prefer-as-const\": \"warn\",\n \"@typescript-eslint/prefer-find\": \"warn\",\n \"@typescript-eslint/prefer-for-of\": \"warn\",\n \"@typescript-eslint/prefer-function-type\": \"warn\",\n \"@typescript-eslint/prefer-includes\": \"warn\",\n \"@typescript-eslint/prefer-literal-enum-member\": \"warn\",\n \"@typescript-eslint/prefer-namespace-keyword\": \"warn\",\n \"@typescript-eslint/prefer-nullish-coalescing\": \"warn\",\n \"@typescript-eslint/prefer-optional-chain\": \"warn\",\n \"@typescript-eslint/prefer-promise-reject-errors\": \"warn\",\n \"@typescript-eslint/prefer-reduce-type-parameter\": \"warn\",\n \"@typescript-eslint/prefer-regexp-exec\": \"warn\",\n \"@typescript-eslint/prefer-return-this-type\": \"warn\",\n \"@typescript-eslint/prefer-string-starts-ends-with\": \"warn\",\n \"@typescript-eslint/related-getter-setter-pairs\": \"warn\",\n \"@typescript-eslint/require-await\": \"warn\",\n \"@typescript-eslint/restrict-plus-operands\": [\n \"warn\",\n {\n allowAny: false,\n allowBoolean: false,\n allowNullish: false,\n allowNumberAndString: false,\n allowRegExp: false,\n },\n ],\n \"@typescript-eslint/restrict-template-expressions\": [\n \"warn\",\n {\n
|
|
1
|
+
{"version":3,"sources":["../src/eslint/typescript/rules.ts"],"sourcesContent":["import type { Linter } from \"eslint\";\n\nexport const tseslintRules: Linter.RulesRecord = {\n \"@typescript-eslint/adjacent-overload-signatures\": \"warn\",\n \"@typescript-eslint/array-type\": \"warn\",\n \"@typescript-eslint/await-thenable\": \"warn\",\n \"@typescript-eslint/ban-ts-comment\": [\n \"warn\",\n { minimumDescriptionLength: 10 },\n ],\n \"@typescript-eslint/ban-tslint-comment\": \"warn\",\n \"@typescript-eslint/class-literal-property-style\": \"warn\",\n \"@typescript-eslint/consistent-generic-constructors\": \"warn\",\n \"@typescript-eslint/consistent-indexed-object-style\": \"warn\",\n \"@typescript-eslint/consistent-type-assertions\": \"warn\",\n \"@typescript-eslint/consistent-type-definitions\": \"warn\",\n \"@typescript-eslint/consistent-type-exports\": [\n \"warn\",\n { fixMixedExportsWithInlineTypeSpecifier: true },\n ],\n \"@typescript-eslint/consistent-type-imports\": [\n \"warn\",\n {\n fixStyle: \"inline-type-imports\",\n prefer: \"type-imports\",\n },\n ],\n \"@typescript-eslint/dot-notation\": \"warn\",\n \"@typescript-eslint/no-array-constructor\": \"warn\",\n \"@typescript-eslint/no-array-delete\": \"warn\",\n \"@typescript-eslint/no-base-to-string\": \"warn\",\n \"@typescript-eslint/no-confusing-non-null-assertion\": \"warn\",\n \"@typescript-eslint/no-confusing-void-expression\": \"warn\",\n \"@typescript-eslint/no-deprecated\": \"warn\",\n \"@typescript-eslint/no-duplicate-enum-values\": \"warn\",\n \"@typescript-eslint/no-duplicate-type-constituents\": \"warn\",\n \"@typescript-eslint/no-dynamic-delete\": \"warn\",\n \"@typescript-eslint/no-empty-function\": \"warn\",\n \"@typescript-eslint/no-empty-object-type\": \"warn\",\n \"@typescript-eslint/no-explicit-any\": \"warn\",\n \"@typescript-eslint/no-extra-non-null-assertion\": \"warn\",\n \"@typescript-eslint/no-extraneous-class\": \"warn\",\n \"@typescript-eslint/no-floating-promises\": \"warn\",\n \"@typescript-eslint/no-for-in-array\": \"warn\",\n \"@typescript-eslint/no-implied-eval\": \"warn\",\n \"@typescript-eslint/no-import-type-side-effects\": \"warn\",\n \"@typescript-eslint/no-inferrable-types\": \"warn\",\n \"@typescript-eslint/no-invalid-void-type\": \"warn\",\n \"@typescript-eslint/no-meaningless-void-operator\": \"warn\",\n \"@typescript-eslint/no-misused-new\": \"warn\",\n \"@typescript-eslint/no-misused-promises\": \"warn\",\n \"@typescript-eslint/no-mixed-enums\": \"warn\",\n \"@typescript-eslint/no-namespace\": \"warn\",\n \"@typescript-eslint/no-non-null-asserted-nullish-coalescing\": \"warn\",\n \"@typescript-eslint/no-non-null-asserted-optional-chain\": \"warn\",\n \"@typescript-eslint/no-non-null-assertion\": \"warn\",\n \"@typescript-eslint/no-redundant-type-constituents\": \"warn\",\n \"@typescript-eslint/no-require-imports\": \"warn\",\n \"@typescript-eslint/no-this-alias\": \"warn\",\n \"@typescript-eslint/no-unnecessary-boolean-literal-compare\": \"warn\",\n \"@typescript-eslint/no-unnecessary-condition\": \"warn\",\n \"@typescript-eslint/no-unnecessary-template-expression\": \"warn\",\n \"@typescript-eslint/no-unnecessary-type-arguments\": \"warn\",\n \"@typescript-eslint/no-unnecessary-type-assertion\": \"warn\",\n \"@typescript-eslint/no-unnecessary-type-constraint\": \"warn\",\n \"@typescript-eslint/no-unnecessary-type-parameters\": \"warn\",\n \"@typescript-eslint/no-unsafe-declaration-merging\": \"warn\",\n \"@typescript-eslint/no-unsafe-enum-comparison\": \"warn\",\n \"@typescript-eslint/no-unsafe-function-type\": \"warn\",\n \"@typescript-eslint/no-unsafe-unary-minus\": \"warn\",\n \"@typescript-eslint/no-unused-expressions\": \"warn\",\n \"@typescript-eslint/no-unused-vars\": [\n \"warn\",\n {\n args: \"after-used\",\n argsIgnorePattern: \"^_\",\n ignoreRestSiblings: false,\n vars: \"all\",\n varsIgnorePattern: \"^_\",\n },\n ],\n \"@typescript-eslint/no-useless-constructor\": \"warn\",\n \"@typescript-eslint/no-wrapper-object-types\": \"warn\",\n \"@typescript-eslint/non-nullable-type-assertion-style\": \"warn\",\n \"@typescript-eslint/only-throw-error\": \"warn\",\n \"@typescript-eslint/prefer-as-const\": \"warn\",\n \"@typescript-eslint/prefer-find\": \"warn\",\n \"@typescript-eslint/prefer-for-of\": \"warn\",\n \"@typescript-eslint/prefer-function-type\": \"warn\",\n \"@typescript-eslint/prefer-includes\": \"warn\",\n \"@typescript-eslint/prefer-literal-enum-member\": \"warn\",\n \"@typescript-eslint/prefer-namespace-keyword\": \"warn\",\n \"@typescript-eslint/prefer-nullish-coalescing\": \"warn\",\n \"@typescript-eslint/prefer-optional-chain\": \"warn\",\n \"@typescript-eslint/prefer-promise-reject-errors\": \"warn\",\n \"@typescript-eslint/prefer-reduce-type-parameter\": \"warn\",\n \"@typescript-eslint/prefer-regexp-exec\": \"warn\",\n \"@typescript-eslint/prefer-return-this-type\": \"warn\",\n \"@typescript-eslint/prefer-string-starts-ends-with\": \"warn\",\n \"@typescript-eslint/related-getter-setter-pairs\": \"warn\",\n \"@typescript-eslint/require-await\": \"warn\",\n \"@typescript-eslint/restrict-plus-operands\": [\n \"warn\",\n {\n allowAny: false,\n allowBoolean: false,\n allowNullish: false,\n allowNumberAndString: false,\n allowRegExp: false,\n },\n ],\n \"@typescript-eslint/restrict-template-expressions\": [\n \"warn\",\n {\n allow: [{ from: \"lib\", name: [\"Error\", \"URL\", \"URLSearchParams\"] }],\n allowAny: true,\n allowBoolean: true,\n allowNullish: true,\n allowNumber: true,\n allowRegExp: true,\n },\n ],\n \"@typescript-eslint/return-await\": [\n \"warn\",\n \"error-handling-correctness-only\",\n ],\n \"@typescript-eslint/triple-slash-reference\": \"warn\",\n \"@typescript-eslint/unbound-method\": \"warn\",\n \"@typescript-eslint/unified-signatures\": \"warn\",\n \"@typescript-eslint/use-unknown-in-catch-callback-variable\": \"warn\",\n \"dot-notation\": \"off\",\n \"no-empty-function\": \"off\",\n};\n"],"mappings":";AAEO,IAAM,gBAAoC;AAAA,EAC/C,mDAAmD;AAAA,EACnD,iCAAiC;AAAA,EACjC,qCAAqC;AAAA,EACrC,qCAAqC;AAAA,IACnC;AAAA,IACA,EAAE,0BAA0B,GAAG;AAAA,EACjC;AAAA,EACA,yCAAyC;AAAA,EACzC,mDAAmD;AAAA,EACnD,sDAAsD;AAAA,EACtD,sDAAsD;AAAA,EACtD,iDAAiD;AAAA,EACjD,kDAAkD;AAAA,EAClD,8CAA8C;AAAA,IAC5C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,6CAA6C;AAAA,EAC7C,8CAA8C;AAAA,EAC9C,wDAAwD;AAAA,EACxD,uCAAuC;AAAA,EACvC,sCAAsC;AAAA,EACtC,kCAAkC;AAAA,EAClC,oCAAoC;AAAA,EACpC,2CAA2C;AAAA,EAC3C,sCAAsC;AAAA,EACtC,iDAAiD;AAAA,EACjD,+CAA+C;AAAA,EAC/C,gDAAgD;AAAA,EAChD,4CAA4C;AAAA,EAC5C,mDAAmD;AAAA,EACnD,mDAAmD;AAAA,EACnD,yCAAyC;AAAA,EACzC,8CAA8C;AAAA,EAC9C,qDAAqD;AAAA,EACrD,kDAAkD;AAAA,EAClD,oCAAoC;AAAA,EACpC,6CAA6C;AAAA,IAC3C;AAAA,IACA;AAAA,MACE,UAAU;AAAA,MACV,cAAc;AAAA,MACd,cAAc;AAAA,MACd,sBAAsB;AAAA,MACtB,aAAa;AAAA,IACf;AAAA,EACF;AAAA,EACA,oDAAoD;AAAA,IAClD;AAAA,IACA;AAAA,MACE,OAAO,CAAC,EAAE,MAAM,OAAO,MAAM,CAAC,SAAS,OAAO,iBAAiB,EAAE,CAAC;AAAA,MAClE,UAAU;AAAA,MACV,cAAc;AAAA,MACd,cAAc;AAAA,MACd,aAAa;AAAA,MACb,aAAa;AAAA,IACf;AAAA,EACF;AAAA,EACA,mCAAmC;AAAA,IACjC;AAAA,IACA;AAAA,EACF;AAAA,EACA,6CAA6C;AAAA,EAC7C,qCAAqC;AAAA,EACrC,yCAAyC;AAAA,EACzC,6DAA6D;AAAA,EAC7D,gBAAgB;AAAA,EAChB,qBAAqB;AACvB;","names":[]}
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
} from "./chunk-GE5ZPFK5.js";
|
|
4
4
|
import {
|
|
5
5
|
configNames
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-QCFCGFZH.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-CNGG6QVG.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
configNames
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-QCFCGFZH.js";
|
|
4
4
|
|
|
5
5
|
// src/eslint/ignores.ts
|
|
6
6
|
var ignoresConfig = (userIgnores) => ({
|
|
@@ -11,4 +11,4 @@ var ignoresConfig = (userIgnores) => ({
|
|
|
11
11
|
export {
|
|
12
12
|
ignoresConfig
|
|
13
13
|
};
|
|
14
|
-
//# sourceMappingURL=chunk-
|
|
14
|
+
//# sourceMappingURL=chunk-CPBLULS5.js.map
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
// src/eslint/jsdoc/rules.ts
|
|
2
|
+
var jsdocRules = (requireJsdoc = false) => ({
|
|
3
|
+
"jsdoc/check-access": "warn",
|
|
4
|
+
"jsdoc/check-alignment": "warn",
|
|
5
|
+
"jsdoc/check-examples": "off",
|
|
6
|
+
"jsdoc/check-indentation": "off",
|
|
7
|
+
"jsdoc/check-line-alignment": "off",
|
|
8
|
+
"jsdoc/check-param-names": [
|
|
9
|
+
"warn",
|
|
10
|
+
{
|
|
11
|
+
checkDestructured: true,
|
|
12
|
+
enableFixer: true
|
|
13
|
+
}
|
|
14
|
+
],
|
|
15
|
+
"jsdoc/check-property-names": "warn",
|
|
16
|
+
"jsdoc/check-syntax": "off",
|
|
17
|
+
"jsdoc/check-tag-names": [
|
|
18
|
+
"warn",
|
|
19
|
+
{
|
|
20
|
+
typed: true
|
|
21
|
+
}
|
|
22
|
+
],
|
|
23
|
+
"jsdoc/check-template-names": "off",
|
|
24
|
+
"jsdoc/check-types": "warn",
|
|
25
|
+
"jsdoc/check-values": "warn",
|
|
26
|
+
"jsdoc/convert-to-jsdoc-comments": "off",
|
|
27
|
+
"jsdoc/empty-tags": "warn",
|
|
28
|
+
"jsdoc/implements-on-classes": "warn",
|
|
29
|
+
"jsdoc/imports-as-dependencies": "off",
|
|
30
|
+
"jsdoc/informative-docs": "off",
|
|
31
|
+
"jsdoc/lines-before-block": "off",
|
|
32
|
+
"jsdoc/match-description": "off",
|
|
33
|
+
"jsdoc/match-name": "off",
|
|
34
|
+
"jsdoc/multiline-blocks": "warn",
|
|
35
|
+
"jsdoc/no-bad-blocks": "off",
|
|
36
|
+
"jsdoc/no-blank-block-descriptions": "off",
|
|
37
|
+
"jsdoc/no-blank-blocks": "off",
|
|
38
|
+
"jsdoc/no-defaults": "warn",
|
|
39
|
+
"jsdoc/no-missing-syntax": "off",
|
|
40
|
+
"jsdoc/no-multi-asterisks": "warn",
|
|
41
|
+
"jsdoc/no-restricted-syntax": "off",
|
|
42
|
+
"jsdoc/no-types": "off",
|
|
43
|
+
"jsdoc/require-asterisk-prefix": "warn",
|
|
44
|
+
"jsdoc/require-description": requireJsdoc ? "warn" : "off",
|
|
45
|
+
"jsdoc/require-description-complete-sentence": "off",
|
|
46
|
+
"jsdoc/require-file-overview": "off",
|
|
47
|
+
"jsdoc/require-hyphen-before-param-description": "off",
|
|
48
|
+
"jsdoc/require-param": "warn",
|
|
49
|
+
"jsdoc/require-param-description": "warn",
|
|
50
|
+
"jsdoc/require-param-name": "warn",
|
|
51
|
+
"jsdoc/require-property": "warn",
|
|
52
|
+
"jsdoc/require-property-description": "warn",
|
|
53
|
+
"jsdoc/require-property-name": "warn",
|
|
54
|
+
"jsdoc/require-returns": "warn",
|
|
55
|
+
"jsdoc/require-returns-check": "warn",
|
|
56
|
+
"jsdoc/require-returns-description": "warn",
|
|
57
|
+
"jsdoc/require-template": "off",
|
|
58
|
+
"jsdoc/require-throws": "off",
|
|
59
|
+
"jsdoc/require-yields": "warn",
|
|
60
|
+
"jsdoc/require-yields-check": "warn",
|
|
61
|
+
"jsdoc/sort-tags": "off",
|
|
62
|
+
"jsdoc/tag-lines": "warn",
|
|
63
|
+
"jsdoc/text-escaping": "off",
|
|
64
|
+
"jsdoc/valid-types": "warn"
|
|
65
|
+
});
|
|
66
|
+
|
|
67
|
+
export {
|
|
68
|
+
jsdocRules
|
|
69
|
+
};
|
|
70
|
+
//# sourceMappingURL=chunk-CRVC7SG2.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-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;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":[]}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import {
|
|
2
|
+
tseslintRules
|
|
3
|
+
} from "./chunk-AHLHRIAC.js";
|
|
4
|
+
import {
|
|
5
|
+
configNames
|
|
6
|
+
} from "./chunk-QCFCGFZH.js";
|
|
7
|
+
|
|
8
|
+
// src/eslint/typescript/config.ts
|
|
9
|
+
import tseslint from "typescript-eslint";
|
|
10
|
+
var tseslintConfig = (tsconfigPath) => {
|
|
11
|
+
const userCwd = process.cwd();
|
|
12
|
+
return tseslint.config(
|
|
13
|
+
{
|
|
14
|
+
files: ["**/*.{js,cjs,mjs,ts,jsx,tsx}"],
|
|
15
|
+
languageOptions: {
|
|
16
|
+
parser: tseslint.parser,
|
|
17
|
+
parserOptions: {
|
|
18
|
+
...tsconfigPath ? { project: tsconfigPath, tsconfigRootDir: userCwd } : { projectService: true, tsconfigRootDir: import.meta.dirname }
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
name: configNames.typescript,
|
|
22
|
+
plugins: {
|
|
23
|
+
"@typescript-eslint": tseslint.plugin
|
|
24
|
+
},
|
|
25
|
+
rules: tseslintRules
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
// disable type-aware linting on JS files
|
|
29
|
+
extends: [tseslint.configs.disableTypeChecked],
|
|
30
|
+
files: ["**/*.js"]
|
|
31
|
+
}
|
|
32
|
+
);
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
export {
|
|
36
|
+
tseslintConfig
|
|
37
|
+
};
|
|
38
|
+
//# sourceMappingURL=chunk-GPY6RCW5.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/eslint/typescript/config.ts"],"sourcesContent":["import tseslint, { type Config } from \"typescript-eslint\";\n\nimport { configNames } from \"../constants.js\";\nimport { tseslintRules } from \"./rules.js\";\n\nexport const tseslintConfig = (tsconfigPath?: string): Config => {\n const userCwd = process.cwd();\n\n return tseslint.config(\n {\n files: [\"**/*.{js,cjs,mjs,ts,jsx,tsx}\"],\n languageOptions: {\n parser: tseslint.parser,\n parserOptions: {\n ...(tsconfigPath ?\n { project: tsconfigPath, tsconfigRootDir: userCwd }\n : { projectService: true, tsconfigRootDir: import.meta.dirname }),\n },\n },\n name: configNames.typescript,\n plugins: {\n \"@typescript-eslint\": tseslint.plugin,\n },\n rules: tseslintRules,\n },\n {\n // disable type-aware linting on JS files\n extends: [tseslint.configs.disableTypeChecked],\n files: [\"**/*.js\"],\n },\n );\n};\n"],"mappings":";;;;;;;;AAAA,OAAO,cAA+B;AAK/B,IAAM,iBAAiB,CAAC,iBAAkC;AAC/D,QAAM,UAAU,QAAQ,IAAI;AAE5B,SAAO,SAAS;AAAA,IACd;AAAA,MACE,OAAO,CAAC,8BAA8B;AAAA,MACtC,iBAAiB;AAAA,QACf,QAAQ,SAAS;AAAA,QACjB,eAAe;AAAA,UACb,GAAI,eACF,EAAE,SAAS,cAAc,iBAAiB,QAAQ,IAClD,EAAE,gBAAgB,MAAM,iBAAiB,YAAY,QAAQ;AAAA,QACjE;AAAA,MACF;AAAA,MACA,MAAM,YAAY;AAAA,MAClB,SAAS;AAAA,QACP,sBAAsB,SAAS;AAAA,MACjC;AAAA,MACA,OAAO;AAAA,IACT;AAAA,IACA;AAAA;AAAA,MAEE,SAAS,CAAC,SAAS,QAAQ,kBAAkB;AAAA,MAC7C,OAAO,CAAC,SAAS;AAAA,IACnB;AAAA,EACF;AACF;","names":[]}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
baseEslintRules
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-PSPFBSJV.js";
|
|
4
4
|
import {
|
|
5
5
|
configNames
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-QCFCGFZH.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-HSSATLSU.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/eslint/javascript/config.ts"],"sourcesContent":["import type { Linter } from \"eslint\";\n\nimport type { FunctionStyle } from \"../../types.js\";\n\nimport { configNames } from \"../constants.js\";\nimport { baseEslintRules } from \"./rules.js\";\n\nexport const baseEslintConfig = (\n functionStyle: \"off\" | FunctionStyle,\n): Linter.Config => ({\n languageOptions: {\n ecmaVersion: 2022,\n },\n linterOptions: { reportUnusedDisableDirectives: true },\n name: configNames.base,\n rules: baseEslintRules(functionStyle),\n});\n"],"mappings":";;;;;;;;AAOO,IAAM,mBAAmB,CAC9B,mBACmB;AAAA,EACnB,iBAAiB;AAAA,IACf,aAAa;AAAA,EACf;AAAA,EACA,eAAe,EAAE,+BAA+B,KAAK;AAAA,EACrD,MAAM,YAAY;AAAA,EAClB,OAAO,gBAAgB,aAAa;AACtC;","names":[]}
|
|
@@ -49,7 +49,7 @@ var baseEslintRules = (functionStyle) => ({
|
|
|
49
49
|
* 🚫 Not fixable - https://eslint.org/docs/rules/func-names
|
|
50
50
|
*/
|
|
51
51
|
"func-names": ["warn", "as-needed"],
|
|
52
|
-
"func-style": [
|
|
52
|
+
"func-style": functionStyle === "off" ? "off" : [
|
|
53
53
|
"warn",
|
|
54
54
|
functionStyle === "arrow" ? "expression" : functionStyle,
|
|
55
55
|
{ allowArrowFunctions: true }
|
|
@@ -425,4 +425,4 @@ var baseEslintRules = (functionStyle) => ({
|
|
|
425
425
|
export {
|
|
426
426
|
baseEslintRules
|
|
427
427
|
};
|
|
428
|
-
//# sourceMappingURL=chunk-
|
|
428
|
+
//# sourceMappingURL=chunk-PSPFBSJV.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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AAAA;AAAA;AAAA;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":[]}
|
|
@@ -3,12 +3,14 @@ var configNames = {
|
|
|
3
3
|
base: "base-config",
|
|
4
4
|
disableTypeChecked: "typescript-eslint/disable-type-checked",
|
|
5
5
|
ignores: "ignores-config",
|
|
6
|
+
jsdoc: "jsdoc-config",
|
|
6
7
|
perfectionist: "perfectionist-config",
|
|
7
8
|
react: "react-config",
|
|
9
|
+
reactCompiler: "react-compiler-config",
|
|
8
10
|
typescript: "tseslint-config"
|
|
9
11
|
};
|
|
10
12
|
|
|
11
13
|
export {
|
|
12
14
|
configNames
|
|
13
15
|
};
|
|
14
|
-
//# sourceMappingURL=chunk-
|
|
16
|
+
//# sourceMappingURL=chunk-QCFCGFZH.js.map
|
|
@@ -0,0 +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":[]}
|