@kikiutils/eslint-config 11.5.0 → 12.0.0
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/README.md +41 -23
- package/dist/_internals/configs/base-rules.d.ts.map +1 -1
- package/dist/_internals/configs/base-rules.js +38 -37
- package/dist/_internals/configs/base-rules.js.map +1 -1
- package/dist/_internals/configs/jsdoc.d.ts +0 -36
- package/dist/_internals/configs/jsdoc.d.ts.map +1 -1
- package/dist/_internals/configs/jsdoc.js +1 -42
- package/dist/_internals/configs/jsdoc.js.map +1 -1
- package/dist/_internals/configs/type-aware.d.ts.map +1 -1
- package/dist/_internals/configs/type-aware.js +26 -1
- package/dist/_internals/configs/type-aware.js.map +1 -1
- package/dist/_internals/configs/typescript.d.ts +42 -0
- package/dist/_internals/configs/typescript.d.ts.map +1 -0
- package/dist/_internals/configs/typescript.js +49 -0
- package/dist/_internals/configs/typescript.js.map +1 -0
- package/dist/_internals/eslint-plugin-promise.d.ts +7 -0
- package/dist/_internals/eslint-plugin-promise.d.ts.map +1 -0
- package/dist/_internals/rules/consistent-condition-layout.d.ts.map +1 -1
- package/dist/_internals/rules/consistent-condition-layout.js +15 -14
- package/dist/_internals/rules/consistent-condition-layout.js.map +1 -1
- package/dist/_internals/rules/consistent-parameter-layout.d.ts.map +1 -1
- package/dist/_internals/rules/consistent-parameter-layout.js +17 -11
- package/dist/_internals/rules/consistent-parameter-layout.js.map +1 -1
- package/dist/_internals/rules/index.d.ts +7 -1
- package/dist/_internals/rules/index.d.ts.map +1 -1
- package/dist/_internals/rules/index.js +11 -2
- package/dist/_internals/rules/index.js.map +1 -1
- package/dist/_internals/rules/no-composable-in-head-getter.d.ts.map +1 -1
- package/dist/_internals/rules/no-composable-in-head-getter.js +97 -19
- package/dist/_internals/rules/no-composable-in-head-getter.js.map +1 -1
- package/dist/_internals/rules/no-reactive-composable-return.d.ts +3 -0
- package/dist/_internals/rules/no-reactive-composable-return.d.ts.map +1 -0
- package/dist/_internals/rules/no-reactive-composable-return.js +43 -0
- package/dist/_internals/rules/no-reactive-composable-return.js.map +1 -0
- package/dist/_internals/rules/no-reactive-destructure.d.ts +3 -0
- package/dist/_internals/rules/no-reactive-destructure.d.ts.map +1 -0
- package/dist/_internals/rules/no-reactive-destructure.js +44 -0
- package/dist/_internals/rules/no-reactive-destructure.js.map +1 -0
- package/dist/_internals/rules/no-silent-catch.d.ts.map +1 -1
- package/dist/_internals/rules/no-silent-catch.js +3 -2
- package/dist/_internals/rules/no-silent-catch.js.map +1 -1
- package/dist/_internals/rules/no-thenable-zod-refinement.d.ts.map +1 -1
- package/dist/_internals/rules/no-thenable-zod-refinement.js +9 -3
- package/dist/_internals/rules/no-thenable-zod-refinement.js.map +1 -1
- package/dist/_internals/rules/prefer-enhanced-date.d.ts +3 -0
- package/dist/_internals/rules/prefer-enhanced-date.d.ts.map +1 -0
- package/dist/_internals/rules/prefer-enhanced-date.js +307 -0
- package/dist/_internals/rules/prefer-enhanced-date.js.map +1 -0
- package/dist/_internals/rules/promise-function-async.d.ts.map +1 -1
- package/dist/_internals/rules/promise-function-async.js.map +1 -1
- package/dist/_internals/rules/statement-padding.d.ts.map +1 -1
- package/dist/_internals/rules/statement-padding.js +19 -15
- package/dist/_internals/rules/statement-padding.js.map +1 -1
- package/dist/_internals/rules/utils.d.ts +23 -0
- package/dist/_internals/rules/utils.d.ts.map +1 -0
- package/dist/_internals/rules/utils.js +17 -0
- package/dist/_internals/rules/utils.js.map +1 -0
- package/dist/_internals/rules/vue-reactivity.d.ts +3 -0
- package/dist/_internals/rules/vue-reactivity.d.ts.map +1 -0
- package/dist/_internals/rules/vue-reactivity.js +30 -0
- package/dist/_internals/rules/vue-reactivity.js.map +1 -0
- package/dist/base.d.ts.map +1 -1
- package/dist/base.js +51 -29
- package/dist/base.js.map +1 -1
- package/dist/nuxt.d.ts +3 -1
- package/dist/nuxt.d.ts.map +1 -1
- package/dist/nuxt.js +53 -3
- package/dist/nuxt.js.map +1 -1
- package/dist/style.d.ts.map +1 -1
- package/dist/style.js +1 -0
- package/dist/style.js.map +1 -1
- package/dist/vue.d.ts +1 -1
- package/dist/vue.d.ts.map +1 -1
- package/dist/vue.js +17 -19
- package/dist/vue.js.map +1 -1
- package/package.json +6 -5
- package/src/_internals/configs/base-rules.ts +30 -44
- package/src/_internals/configs/jsdoc.ts +0 -51
- package/src/_internals/configs/type-aware.ts +29 -1
- package/src/_internals/configs/typescript.ts +62 -0
- package/src/_internals/eslint-plugin-promise.d.ts +6 -0
- package/src/_internals/rules/consistent-condition-layout.ts +20 -23
- package/src/_internals/rules/consistent-parameter-layout.ts +30 -34
- package/src/_internals/rules/index.ts +10 -1
- package/src/_internals/rules/no-composable-in-head-getter.ts +132 -26
- package/src/_internals/rules/no-reactive-composable-return.ts +55 -0
- package/src/_internals/rules/no-reactive-destructure.ts +64 -0
- package/src/_internals/rules/no-silent-catch.ts +4 -10
- package/src/_internals/rules/no-thenable-zod-refinement.ts +14 -9
- package/src/_internals/rules/prefer-enhanced-date.ts +448 -0
- package/src/_internals/rules/promise-function-async.ts +2 -6
- package/src/_internals/rules/statement-padding.ts +23 -24
- package/src/_internals/{utils.ts → rules/utils.ts} +31 -0
- package/src/_internals/rules/vue-reactivity.ts +42 -0
- package/src/base.ts +51 -47
- package/src/nuxt.ts +90 -5
- package/src/style.ts +1 -0
- package/src/vue.ts +24 -26
- package/dist/_internals/configs/restricted-syntax.d.ts +0 -5
- package/dist/_internals/configs/restricted-syntax.d.ts.map +0 -1
- package/dist/_internals/configs/restricted-syntax.js +0 -12
- package/dist/_internals/configs/restricted-syntax.js.map +0 -1
- package/dist/_internals/configs/typefest.d.ts +0 -3
- package/dist/_internals/configs/typefest.d.ts.map +0 -1
- package/dist/_internals/configs/typefest.js +0 -21
- package/dist/_internals/configs/typefest.js.map +0 -1
- package/dist/_internals/utils.d.ts +0 -4
- package/dist/_internals/utils.d.ts.map +0 -1
- package/dist/_internals/utils.js +0 -10
- package/dist/_internals/utils.js.map +0 -1
- package/src/_internals/configs/restricted-syntax.ts +0 -8
- package/src/_internals/configs/typefest.ts +0 -19
package/README.md
CHANGED
|
@@ -2,42 +2,54 @@
|
|
|
2
2
|
|
|
3
3
|
[![npm version][npm-version-src]][npm-version-href]
|
|
4
4
|
[![npm downloads][npm-downloads-src]][npm-downloads-href]
|
|
5
|
+
[![Node.js][node-src]][node-href]
|
|
6
|
+
[![codecov][codecov-src]][codecov-href]
|
|
5
7
|
[![License][license-src]][license-href]
|
|
6
8
|
|
|
7
|
-
|
|
9
|
+
Opinionated flat config presets layered on [`@antfu/eslint-config`](https://github.com/antfu/eslint-config), with type-aware TypeScript and Vue checks and custom rules, built for the author's own repositories. ESM only.
|
|
8
10
|
|
|
9
11
|
- [✨ Release Notes](./CHANGELOG.md)
|
|
10
12
|
|
|
11
|
-
## Features
|
|
12
|
-
|
|
13
|
-
## Requirements
|
|
14
|
-
|
|
15
|
-
- **Node.js** `>=24.15.0`
|
|
16
|
-
|
|
17
13
|
## Installation
|
|
18
14
|
|
|
19
|
-
Using [pnpm](https://pnpm.io):
|
|
20
|
-
|
|
21
15
|
```bash
|
|
22
|
-
pnpm add -D @kikiutils/eslint-config
|
|
23
|
-
pnpm add ts-extras type-fest
|
|
16
|
+
pnpm add -D @antfu/eslint-config @kikiutils/eslint-config eslint ts-extras type-fest typescript
|
|
24
17
|
```
|
|
25
18
|
|
|
26
|
-
|
|
19
|
+
Keep `ts-extras` in `dependencies` instead when application code imports its helpers.
|
|
20
|
+
|
|
21
|
+
## Optional Peer Dependencies
|
|
22
|
+
|
|
23
|
+
| Package | Enables |
|
|
24
|
+
| --- | --- |
|
|
25
|
+
| `tailwindcss` | Tailwind CSS class checks in Vue templates |
|
|
27
26
|
|
|
28
27
|
## Usage
|
|
29
28
|
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
29
|
+
```ts
|
|
30
|
+
// eslint.config.ts
|
|
31
|
+
import { antfu } from '@antfu/eslint-config';
|
|
32
|
+
import { createBaseConfigs } from '@kikiutils/eslint-config/base';
|
|
33
|
+
import { createNuxtConfigs } from '@kikiutils/eslint-config/nuxt';
|
|
34
|
+
import { createStyleFilesConfigs } from '@kikiutils/eslint-config/style';
|
|
35
|
+
import { createVueConfig } from '@kikiutils/eslint-config/vue';
|
|
36
|
+
|
|
37
|
+
export default antfu(
|
|
38
|
+
{
|
|
39
|
+
typescript: true,
|
|
40
|
+
vue: true,
|
|
41
|
+
},
|
|
42
|
+
createBaseConfigs(),
|
|
43
|
+
createStyleFilesConfigs(),
|
|
44
|
+
createNuxtConfigs(),
|
|
45
|
+
createVueConfig(),
|
|
46
|
+
);
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
- Only `createBaseConfigs()` is required; the other presets cover Vue, Nuxt, and CSS/SCSS files (indented `.sass` is not supported).
|
|
50
|
+
- `createNuxtConfigs()` turns off the SSR-only rules when `nuxt.config.*` sets `ssr: false`; pass `{ ssr }` to override.
|
|
51
|
+
- Type-aware checks use TypeScript's Project Service, so linted TypeScript and Vue files must belong to a discoverable `tsconfig.json`.
|
|
52
|
+
- `kikiutils/prefer-enhanced-date` fixes code to `EnhancedDate` from `@kikiutils/shared` v24 or later; install it, or turn the rule off.
|
|
41
53
|
|
|
42
54
|
## License
|
|
43
55
|
|
|
@@ -50,5 +62,11 @@ Style configs format CSS and SCSS; indented Sass (`.sass`) is not supported.
|
|
|
50
62
|
[npm-downloads-href]: https://npmjs.com/package/@kikiutils/eslint-config
|
|
51
63
|
[npm-downloads-src]: https://img.shields.io/npm/dm/@kikiutils/eslint-config.svg?colorA=18181b&colorB=28cf8d&style=flat
|
|
52
64
|
|
|
65
|
+
[node-href]: ./package.json
|
|
66
|
+
[node-src]: https://img.shields.io/node/v/@kikiutils/eslint-config?colorA=18181b&colorB=28cf8d&style=flat
|
|
67
|
+
|
|
68
|
+
[codecov-href]: https://codecov.io/gh/kikiutils/eslint-config
|
|
69
|
+
[codecov-src]: https://codecov.io/gh/kikiutils/eslint-config/graph/badge.svg
|
|
70
|
+
|
|
53
71
|
[license-href]: https://github.com/kikiutils/eslint-config/blob/main/LICENSE
|
|
54
72
|
[license-src]: https://img.shields.io/github/license/kikiutils/eslint-config?colorA=18181b&colorB=28cf8d&style=flat
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"base-rules.d.ts","names":[],"sources":["../../../src/_internals/configs/base-rules.ts"],"mappings":";
|
|
1
|
+
{"version":3,"file":"base-rules.d.ts","names":[],"sources":["../../../src/_internals/configs/base-rules.ts"],"mappings":";wBAOgB,gBAAgB,+BAAuC"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { restrictedSyntax } from "./restricted-syntax.js";
|
|
2
1
|
// src/_internals/configs/base-rules.ts
|
|
3
2
|
const basePerfectionistSortOptions = {
|
|
4
3
|
ignoreCase: false,
|
|
@@ -16,7 +15,9 @@ function createBaseRules(environment = "node") {
|
|
|
16
15
|
"antfu/reasonable-newline": "off",
|
|
17
16
|
"arrow-body-style": ["error", "as-needed"],
|
|
18
17
|
"curly": ["error", "multi-line"],
|
|
19
|
-
"
|
|
18
|
+
"eslint-comments/require-description": ["error", { ignore: ["eslint-enable"] }],
|
|
19
|
+
"for-direction": "error",
|
|
20
|
+
"jsdoc/check-param-names": ["error", { disableMissingParamChecks: true }],
|
|
20
21
|
"jsdoc/check-tag-names": "error",
|
|
21
22
|
"jsdoc/multiline-blocks": "error",
|
|
22
23
|
"jsdoc/no-blank-blocks": ["error", { enableFixer: true }],
|
|
@@ -31,22 +32,37 @@ function createBaseRules(environment = "node") {
|
|
|
31
32
|
"kikiutils/consistent-condition-layout": "error",
|
|
32
33
|
"kikiutils/consistent-parameter-layout": "error",
|
|
33
34
|
"kikiutils/no-silent-catch": "error",
|
|
35
|
+
"kikiutils/prefer-enhanced-date": "error",
|
|
34
36
|
"kikiutils/statement-padding": "error",
|
|
35
37
|
"max-classes-per-file": ["error", 1],
|
|
36
38
|
"no-constant-binary-expression": "error",
|
|
39
|
+
"no-constant-condition": "error",
|
|
40
|
+
"no-constructor-return": "error",
|
|
41
|
+
"no-dupe-else-if": "error",
|
|
37
42
|
"no-empty": ["error", { allowEmptyCatch: false }],
|
|
43
|
+
"no-empty-static-block": "error",
|
|
38
44
|
"no-promise-executor-return": ["error", { allowVoid: true }],
|
|
39
45
|
"no-restricted-imports": ["error", { patterns: [{
|
|
40
46
|
message: "`_internals` modules are private to their own directory; import the public module instead.",
|
|
41
47
|
regex: String.raw`^[^.].*/_internals(/|$)`
|
|
42
48
|
}] }],
|
|
43
|
-
"no-restricted-syntax": [
|
|
49
|
+
"no-restricted-syntax": [
|
|
50
|
+
"error",
|
|
51
|
+
"TSEnumDeclaration[const=true]",
|
|
52
|
+
"TSExportAssignment",
|
|
53
|
+
{
|
|
54
|
+
message: "Use `axios.isAxiosError(error)`; `instanceof` fails when the error comes from another copy of axios.",
|
|
55
|
+
selector: "BinaryExpression[operator=\"instanceof\"][right.name=\"AxiosError\"]"
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
message: "`structuredClone()` drops prototypes, turning class instances such as `ObjectId` into plain objects, and throws on Vue reactive proxies. Use `cloneDeep()` from es-toolkit, or spread only the level you change.",
|
|
59
|
+
selector: "CallExpression[callee.name=\"structuredClone\"]"
|
|
60
|
+
}
|
|
61
|
+
],
|
|
62
|
+
"no-unassigned-vars": "error",
|
|
63
|
+
"no-unsafe-optional-chaining": "error",
|
|
44
64
|
"no-useless-assignment": "error",
|
|
45
65
|
"perfectionist/sort-array-includes": ["error", basePerfectionistSortOptions],
|
|
46
|
-
"perfectionist/sort-enums": ["error", {
|
|
47
|
-
...basePerfectionistSortOptions,
|
|
48
|
-
sortByValue: "never"
|
|
49
|
-
}],
|
|
50
66
|
"perfectionist/sort-heritage-clauses": ["error", basePerfectionistSortOptions],
|
|
51
67
|
"perfectionist/sort-imports": ["error", {
|
|
52
68
|
environment,
|
|
@@ -72,7 +88,6 @@ function createBaseRules(environment = "node") {
|
|
|
72
88
|
}],
|
|
73
89
|
"perfectionist/sort-interfaces": ["error", basePerfectionistSortOptions],
|
|
74
90
|
"perfectionist/sort-intersection-types": ["error", basePerfectionistSortOptions],
|
|
75
|
-
"perfectionist/sort-maps": ["error", basePerfectionistSortOptions],
|
|
76
91
|
"perfectionist/sort-modules": ["error", {
|
|
77
92
|
...basePerfectionistSortOptions,
|
|
78
93
|
groups: [
|
|
@@ -89,12 +104,7 @@ function createBaseRules(environment = "node") {
|
|
|
89
104
|
]
|
|
90
105
|
}],
|
|
91
106
|
"perfectionist/sort-object-types": ["error", basePerfectionistSortOptions],
|
|
92
|
-
"perfectionist/sort-
|
|
93
|
-
"perfectionist/sort-sets": ["error", basePerfectionistSortOptions],
|
|
94
|
-
"perfectionist/sort-switch-case": ["error", {
|
|
95
|
-
ignoreCase: false,
|
|
96
|
-
type: "natural"
|
|
97
|
-
}],
|
|
107
|
+
"perfectionist/sort-switch-case": ["error", basePerfectionistSortOptions],
|
|
98
108
|
"perfectionist/sort-union-types": ["error", basePerfectionistSortOptions],
|
|
99
109
|
"perfectionist/sort-variable-declarations": ["error", basePerfectionistSortOptions],
|
|
100
110
|
"preserve-caught-error": "error",
|
|
@@ -102,6 +112,7 @@ function createBaseRules(environment = "node") {
|
|
|
102
112
|
"promise/no-return-in-finally": "error",
|
|
103
113
|
"promise/no-return-wrap": "error",
|
|
104
114
|
"require-await": "off",
|
|
115
|
+
"require-yield": "error",
|
|
105
116
|
"style/array-bracket-newline": ["error", { multiline: true }],
|
|
106
117
|
"style/array-element-newline": ["error", {
|
|
107
118
|
ArrayExpression: {
|
|
@@ -118,12 +129,6 @@ function createBaseRules(environment = "node") {
|
|
|
118
129
|
],
|
|
119
130
|
"style/function-call-spacing": ["error", "never"],
|
|
120
131
|
"style/indent": ["error", 4],
|
|
121
|
-
"style/max-len": ["warn", {
|
|
122
|
-
code: 120,
|
|
123
|
-
comments: 120,
|
|
124
|
-
ignoreStrings: true,
|
|
125
|
-
ignoreTemplateLiterals: true
|
|
126
|
-
}],
|
|
127
132
|
"style/member-delimiter-style": ["error", { multiline: {
|
|
128
133
|
delimiter: "semi",
|
|
129
134
|
requireLast: true
|
|
@@ -157,24 +162,20 @@ function createBaseRules(environment = "node") {
|
|
|
157
162
|
"before",
|
|
158
163
|
{ overrides: { "=": "after" } }
|
|
159
164
|
],
|
|
160
|
-
"style/padding-line-between-statements": [
|
|
161
|
-
"
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
prev: "*"
|
|
170
|
-
},
|
|
171
|
-
{
|
|
172
|
-
blankLine: "always",
|
|
173
|
-
next: "*",
|
|
174
|
-
prev: ["class", "function"]
|
|
175
|
-
}
|
|
176
|
-
],
|
|
165
|
+
"style/padding-line-between-statements": ["error", {
|
|
166
|
+
blankLine: "always",
|
|
167
|
+
next: [
|
|
168
|
+
"class",
|
|
169
|
+
"enum",
|
|
170
|
+
"function"
|
|
171
|
+
],
|
|
172
|
+
prev: "*"
|
|
173
|
+
}],
|
|
177
174
|
"style/semi": ["error", "always"],
|
|
175
|
+
"unicorn/no-array-callback-reference": "error",
|
|
176
|
+
"unicorn/no-array-fill-with-reference-type": "error",
|
|
177
|
+
"unicorn/no-await-in-promise-methods": "error",
|
|
178
|
+
"unicorn/no-single-promise-in-promise-methods": "error",
|
|
178
179
|
"unicorn/no-useless-promise-resolve-reject": "error",
|
|
179
180
|
"unicorn/no-useless-spread": "error",
|
|
180
181
|
"unicorn/prefer-array-find": "error",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"base-rules.js","names":[],"sources":["../../../src/_internals/configs/base-rules.ts"],"sourcesContent":["import type { Rules } from '@antfu/eslint-config';\n\nimport { restrictedSyntax } from './restricted-syntax';\n\nconst basePerfectionistSortOptions = {\n ignoreCase: false,\n type: 'natural',\n} as const;\n\nexport function createBaseRules(environment: 'bun' | 'node' = 'node'): Rules {\n return {\n 'antfu/consistent-list-newline': [\n 'error',\n {\n ArrayExpression: false,\n ArrayPattern: false,\n },\n ],\n 'antfu/curly': 'off',\n 'antfu/if-newline': 'off',\n 'antfu/no-top-level-await': 'off',\n 'antfu/reasonable-newline': 'off',\n 'arrow-body-style': [\n 'error',\n 'as-needed',\n ],\n 'curly': [\n 'error',\n 'multi-line',\n ],\n 'jsdoc/check-param-names': [\n 'warn',\n { disableMissingParamChecks: true },\n ],\n 'jsdoc/check-tag-names': 'error',\n 'jsdoc/multiline-blocks': 'error',\n 'jsdoc/no-blank-blocks': [\n 'error',\n { enableFixer: true },\n ],\n 'jsdoc/require-asterisk-prefix': 'error',\n 'jsdoc/require-hyphen-before-param-description': [\n 'error',\n 'always',\n { tags: { typeParam: 'always' } },\n ],\n 'kikiutils/comment-indent': 'error',\n 'kikiutils/compact-iteration-layout': 'error',\n 'kikiutils/consistent-condition-layout': 'error',\n 'kikiutils/consistent-parameter-layout': 'error',\n 'kikiutils/no-silent-catch': 'error',\n 'kikiutils/statement-padding': 'error',\n 'max-classes-per-file': [\n 'error',\n 1,\n ],\n 'no-constant-binary-expression': 'error',\n // An ignored error needs at least a comment in the block saying why.\n 'no-empty': [\n 'error',\n { allowEmptyCatch: false },\n ],\n 'no-promise-executor-return': [\n 'error',\n { allowVoid: true },\n ],\n 'no-restricted-imports': [\n 'error',\n {\n patterns: [\n {\n message: '`_internals` modules are private to their own directory; import the public module instead.',\n regex: String.raw`^[^.].*/_internals(/|$)`,\n },\n ],\n },\n ],\n 'no-restricted-syntax': [\n 'error',\n ...restrictedSyntax,\n ],\n 'no-useless-assignment': 'error',\n 'perfectionist/sort-array-includes': [\n 'error',\n basePerfectionistSortOptions,\n ],\n 'perfectionist/sort-enums': [\n 'error',\n {\n ...basePerfectionistSortOptions,\n sortByValue: 'never',\n },\n ],\n 'perfectionist/sort-heritage-clauses': [\n 'error',\n basePerfectionistSortOptions,\n ],\n 'perfectionist/sort-imports': [\n 'error',\n {\n environment,\n groups: [\n 'side-effect',\n 'side-effect-style',\n 'style',\n [\n 'value-builtin',\n 'type-builtin',\n ],\n [\n 'value-external',\n 'type-external',\n ],\n [\n 'value-internal',\n 'type-internal',\n ],\n [\n 'value-parent',\n 'type-parent',\n ],\n [\n 'value-sibling',\n 'type-sibling',\n ],\n [\n 'value-index',\n 'type-index',\n ],\n 'unknown',\n ],\n ignoreCase: false,\n internalPattern: [\n '^#.*',\n '^@/.*',\n '^~/.*',\n ],\n type: 'natural',\n },\n ],\n 'perfectionist/sort-interfaces': [\n 'error',\n basePerfectionistSortOptions,\n ],\n 'perfectionist/sort-intersection-types': [\n 'error',\n basePerfectionistSortOptions,\n ],\n 'perfectionist/sort-maps': [\n 'error',\n basePerfectionistSortOptions,\n ],\n 'perfectionist/sort-modules': [\n 'error',\n {\n ...basePerfectionistSortOptions,\n groups: [\n 'declare-type',\n [\n 'export-type',\n 'type',\n ],\n 'declare-interface',\n [\n 'export-interface',\n 'interface',\n ],\n 'declare-enum',\n [\n 'enum',\n 'export-enum',\n ],\n 'declare-class',\n [\n 'class',\n 'export-class',\n ],\n 'declare-function',\n [\n 'export-function',\n 'function',\n ],\n ],\n },\n ],\n 'perfectionist/sort-object-types': [\n 'error',\n basePerfectionistSortOptions,\n ],\n 'perfectionist/sort-objects': [\n 'error',\n basePerfectionistSortOptions,\n ],\n 'perfectionist/sort-sets': [\n 'error',\n basePerfectionistSortOptions,\n ],\n 'perfectionist/sort-switch-case': [\n 'error',\n {\n ignoreCase: false,\n type: 'natural',\n },\n ],\n 'perfectionist/sort-union-types': [\n 'error',\n basePerfectionistSortOptions,\n ],\n 'perfectionist/sort-variable-declarations': [\n 'error',\n basePerfectionistSortOptions,\n ],\n 'preserve-caught-error': 'error',\n 'promise/no-multiple-resolved': 'error',\n 'promise/no-return-in-finally': 'error',\n 'promise/no-return-wrap': 'error',\n 'require-await': 'off',\n 'style/array-bracket-newline': [\n 'error',\n { multiline: true },\n ],\n 'style/array-element-newline': [\n 'error',\n {\n ArrayExpression: {\n consistent: true,\n minItems: 2,\n },\n ArrayPattern: { minItems: 3 },\n },\n ],\n 'style/arrow-parens': [\n 'error',\n 'always',\n ],\n 'style/brace-style': [\n 'error',\n '1tbs',\n { allowSingleLine: false },\n ],\n 'style/function-call-spacing': [\n 'error',\n 'never',\n ],\n 'style/indent': [\n 'error',\n 4,\n ],\n 'style/max-len': [\n 'warn',\n {\n code: 120,\n comments: 120,\n ignoreStrings: true,\n ignoreTemplateLiterals: true,\n },\n ],\n 'style/member-delimiter-style': [\n 'error',\n {\n multiline: {\n delimiter: 'semi',\n requireLast: true,\n },\n },\n ],\n 'style/no-extra-parens': [\n 'error',\n 'all',\n { nestedBinaryExpressions: false },\n ],\n 'style/no-extra-semi': 'error',\n 'style/object-curly-newline': [\n 'error',\n {\n ExportDeclaration: {\n minProperties: 2,\n multiline: true,\n },\n ImportDeclaration: {\n minProperties: 2,\n multiline: true,\n },\n ObjectExpression: {\n minProperties: 2,\n multiline: true,\n },\n ObjectPattern: {\n minProperties: 3,\n multiline: true,\n },\n },\n ],\n 'style/operator-linebreak': [\n 'error',\n 'before',\n { overrides: { '=': 'after' } },\n ],\n 'style/padding-line-between-statements': [\n 'error',\n {\n blankLine: 'always',\n next: [\n 'class',\n 'enum',\n 'function',\n ],\n prev: '*',\n },\n {\n blankLine: 'always',\n next: '*',\n prev: [\n 'class',\n 'function',\n ],\n },\n ],\n 'style/semi': [\n 'error',\n 'always',\n ],\n 'unicorn/no-useless-promise-resolve-reject': 'error',\n 'unicorn/no-useless-spread': 'error',\n 'unicorn/prefer-array-find': 'error',\n 'unicorn/prefer-array-some': 'error',\n 'unicorn/prefer-at': 'error',\n 'unicorn/prefer-string-replace-all': 'error',\n };\n}\n"],"mappings":"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"}
|
|
1
|
+
{"version":3,"file":"base-rules.js","names":[],"sources":["../../../src/_internals/configs/base-rules.ts"],"sourcesContent":["import type { Rules } from '@antfu/eslint-config';\n\nconst basePerfectionistSortOptions = {\n ignoreCase: false,\n type: 'natural',\n} as const;\n\nexport function createBaseRules(environment: 'bun' | 'node' = 'node'): Rules {\n return {\n 'antfu/consistent-list-newline': [\n 'error',\n {\n ArrayExpression: false,\n ArrayPattern: false,\n },\n ],\n 'antfu/curly': 'off',\n 'antfu/if-newline': 'off',\n 'antfu/no-top-level-await': 'off',\n 'antfu/reasonable-newline': 'off',\n 'arrow-body-style': [\n 'error',\n 'as-needed',\n ],\n 'curly': [\n 'error',\n 'multi-line',\n ],\n 'eslint-comments/require-description': [\n 'error',\n { ignore: ['eslint-enable'] },\n ],\n 'for-direction': 'error',\n 'jsdoc/check-param-names': [\n 'error',\n { disableMissingParamChecks: true },\n ],\n 'jsdoc/check-tag-names': 'error',\n 'jsdoc/multiline-blocks': 'error',\n 'jsdoc/no-blank-blocks': [\n 'error',\n { enableFixer: true },\n ],\n 'jsdoc/require-asterisk-prefix': 'error',\n 'jsdoc/require-hyphen-before-param-description': [\n 'error',\n 'always',\n { tags: { typeParam: 'always' } },\n ],\n 'kikiutils/comment-indent': 'error',\n 'kikiutils/compact-iteration-layout': 'error',\n 'kikiutils/consistent-condition-layout': 'error',\n 'kikiutils/consistent-parameter-layout': 'error',\n 'kikiutils/no-silent-catch': 'error',\n 'kikiutils/prefer-enhanced-date': 'error',\n 'kikiutils/statement-padding': 'error',\n 'max-classes-per-file': [\n 'error',\n 1,\n ],\n 'no-constant-binary-expression': 'error',\n 'no-constant-condition': 'error',\n 'no-constructor-return': 'error',\n 'no-dupe-else-if': 'error',\n // An ignored error needs at least a comment in the block saying why.\n 'no-empty': [\n 'error',\n { allowEmptyCatch: false },\n ],\n 'no-empty-static-block': 'error',\n 'no-promise-executor-return': [\n 'error',\n { allowVoid: true },\n ],\n 'no-restricted-imports': [\n 'error',\n {\n patterns: [\n {\n message: '`_internals` modules are private to their own directory; import the public module instead.',\n regex: String.raw`^[^.].*/_internals(/|$)`,\n },\n ],\n },\n ],\n // Repeats antfu's entries because a later config replaces the whole option list.\n 'no-restricted-syntax': [\n 'error',\n 'TSEnumDeclaration[const=true]',\n 'TSExportAssignment',\n {\n message: 'Use `axios.isAxiosError(error)`; `instanceof` fails when the error comes from another copy of axios.',\n selector: 'BinaryExpression[operator=\"instanceof\"][right.name=\"AxiosError\"]',\n },\n {\n message: '`structuredClone()` drops prototypes, turning class instances such as `ObjectId` into plain objects, and throws on Vue reactive proxies. Use `cloneDeep()` from es-toolkit, or spread only the level you change.',\n selector: 'CallExpression[callee.name=\"structuredClone\"]',\n },\n ],\n 'no-unassigned-vars': 'error',\n 'no-unsafe-optional-chaining': 'error',\n 'no-useless-assignment': 'error',\n 'perfectionist/sort-array-includes': [\n 'error',\n basePerfectionistSortOptions,\n ],\n 'perfectionist/sort-heritage-clauses': [\n 'error',\n basePerfectionistSortOptions,\n ],\n 'perfectionist/sort-imports': [\n 'error',\n {\n environment,\n groups: [\n 'side-effect',\n 'side-effect-style',\n 'style',\n [\n 'value-builtin',\n 'type-builtin',\n ],\n [\n 'value-external',\n 'type-external',\n ],\n [\n 'value-internal',\n 'type-internal',\n ],\n [\n 'value-parent',\n 'type-parent',\n ],\n [\n 'value-sibling',\n 'type-sibling',\n ],\n [\n 'value-index',\n 'type-index',\n ],\n 'unknown',\n ],\n ignoreCase: false,\n internalPattern: [\n '^#.*',\n '^@/.*',\n '^~/.*',\n ],\n type: 'natural',\n },\n ],\n 'perfectionist/sort-interfaces': [\n 'error',\n basePerfectionistSortOptions,\n ],\n 'perfectionist/sort-intersection-types': [\n 'error',\n basePerfectionistSortOptions,\n ],\n 'perfectionist/sort-modules': [\n 'error',\n {\n ...basePerfectionistSortOptions,\n groups: [\n 'declare-type',\n [\n 'export-type',\n 'type',\n ],\n 'declare-interface',\n [\n 'export-interface',\n 'interface',\n ],\n 'declare-enum',\n [\n 'enum',\n 'export-enum',\n ],\n 'declare-class',\n [\n 'class',\n 'export-class',\n ],\n 'declare-function',\n [\n 'export-function',\n 'function',\n ],\n ],\n },\n ],\n 'perfectionist/sort-object-types': [\n 'error',\n basePerfectionistSortOptions,\n ],\n 'perfectionist/sort-switch-case': [\n 'error',\n basePerfectionistSortOptions,\n ],\n 'perfectionist/sort-union-types': [\n 'error',\n basePerfectionistSortOptions,\n ],\n 'perfectionist/sort-variable-declarations': [\n 'error',\n basePerfectionistSortOptions,\n ],\n 'preserve-caught-error': 'error',\n 'promise/no-multiple-resolved': 'error',\n 'promise/no-return-in-finally': 'error',\n 'promise/no-return-wrap': 'error',\n 'require-await': 'off',\n 'require-yield': 'error',\n 'style/array-bracket-newline': [\n 'error',\n { multiline: true },\n ],\n 'style/array-element-newline': [\n 'error',\n {\n ArrayExpression: {\n consistent: true,\n minItems: 2,\n },\n ArrayPattern: { minItems: 3 },\n },\n ],\n 'style/arrow-parens': [\n 'error',\n 'always',\n ],\n 'style/brace-style': [\n 'error',\n '1tbs',\n { allowSingleLine: false },\n ],\n 'style/function-call-spacing': [\n 'error',\n 'never',\n ],\n 'style/indent': [\n 'error',\n 4,\n ],\n 'style/member-delimiter-style': [\n 'error',\n {\n multiline: {\n delimiter: 'semi',\n requireLast: true,\n },\n },\n ],\n 'style/no-extra-parens': [\n 'error',\n 'all',\n { nestedBinaryExpressions: false },\n ],\n 'style/no-extra-semi': 'error',\n 'style/object-curly-newline': [\n 'error',\n {\n ExportDeclaration: {\n minProperties: 2,\n multiline: true,\n },\n ImportDeclaration: {\n minProperties: 2,\n multiline: true,\n },\n ObjectExpression: {\n minProperties: 2,\n multiline: true,\n },\n ObjectPattern: {\n minProperties: 3,\n multiline: true,\n },\n },\n ],\n 'style/operator-linebreak': [\n 'error',\n 'before',\n { overrides: { '=': 'after' } },\n ],\n 'style/padding-line-between-statements': [\n 'error',\n {\n blankLine: 'always',\n next: [\n 'class',\n 'enum',\n 'function',\n ],\n prev: '*',\n },\n ],\n 'style/semi': [\n 'error',\n 'always',\n ],\n 'unicorn/no-array-callback-reference': 'error',\n 'unicorn/no-array-fill-with-reference-type': 'error',\n 'unicorn/no-await-in-promise-methods': 'error',\n 'unicorn/no-single-promise-in-promise-methods': 'error',\n 'unicorn/no-useless-promise-resolve-reject': 'error',\n 'unicorn/no-useless-spread': 'error',\n 'unicorn/prefer-array-find': 'error',\n 'unicorn/prefer-array-some': 'error',\n 'unicorn/prefer-at': 'error',\n 'unicorn/prefer-string-replace-all': 'error',\n };\n}\n"],"mappings":"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"}
|
|
@@ -11,40 +11,4 @@ export declare const jsdocSettings: {
|
|
|
11
11
|
};
|
|
12
12
|
};
|
|
13
13
|
};
|
|
14
|
-
export declare const typescriptJsdocConfig: {
|
|
15
|
-
rules: {
|
|
16
|
-
'jsdoc/check-tag-names': ["error", {
|
|
17
|
-
definedTags: string[];
|
|
18
|
-
}];
|
|
19
|
-
'jsdoc/multiline-blocks': "error";
|
|
20
|
-
'jsdoc/no-types': "error";
|
|
21
|
-
};
|
|
22
|
-
settings: {
|
|
23
|
-
jsdoc: {
|
|
24
|
-
mode: string;
|
|
25
|
-
tagNamePreference: {
|
|
26
|
-
callback: boolean;
|
|
27
|
-
class: boolean;
|
|
28
|
-
constructor: boolean;
|
|
29
|
-
default: string;
|
|
30
|
-
function: boolean;
|
|
31
|
-
method: boolean;
|
|
32
|
-
readonly: boolean;
|
|
33
|
-
static: boolean;
|
|
34
|
-
template: boolean;
|
|
35
|
-
type: boolean;
|
|
36
|
-
typedef: boolean;
|
|
37
|
-
typeParam: string;
|
|
38
|
-
virtual: string;
|
|
39
|
-
arg: string;
|
|
40
|
-
argument: string;
|
|
41
|
-
desc: boolean;
|
|
42
|
-
description: boolean;
|
|
43
|
-
exception: string;
|
|
44
|
-
return: string;
|
|
45
|
-
types: boolean;
|
|
46
|
-
};
|
|
47
|
-
};
|
|
48
|
-
};
|
|
49
|
-
};
|
|
50
14
|
//# sourceMappingURL=jsdoc.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"jsdoc.d.ts","names":[],"sources":["../../../src/_internals/configs/jsdoc.ts"],"mappings":"A,
|
|
1
|
+
{"version":3,"file":"jsdoc.d.ts","names":[],"sources":["../../../src/_internals/configs/jsdoc.ts"],"mappings":"A,qBAAa"}
|
|
@@ -8,47 +8,6 @@ const jsdocSettings = { jsdoc: { tagNamePreference: {
|
|
|
8
8
|
return: "returns",
|
|
9
9
|
types: false
|
|
10
10
|
} } };
|
|
11
|
-
|
|
12
|
-
rules: {
|
|
13
|
-
"jsdoc/check-tag-names": ["error", { definedTags: [
|
|
14
|
-
"alpha",
|
|
15
|
-
"beta",
|
|
16
|
-
"defaultValue",
|
|
17
|
-
"eventProperty",
|
|
18
|
-
"experimental",
|
|
19
|
-
"hidden",
|
|
20
|
-
"inheritDoc",
|
|
21
|
-
"internal",
|
|
22
|
-
"packageDocumentation",
|
|
23
|
-
"privateRemarks",
|
|
24
|
-
"remarks",
|
|
25
|
-
"sealed",
|
|
26
|
-
"typeParam",
|
|
27
|
-
"virtual"
|
|
28
|
-
] }],
|
|
29
|
-
"jsdoc/multiline-blocks": "error",
|
|
30
|
-
"jsdoc/no-types": "error"
|
|
31
|
-
},
|
|
32
|
-
settings: { jsdoc: {
|
|
33
|
-
mode: "typescript",
|
|
34
|
-
tagNamePreference: {
|
|
35
|
-
...jsdocSettings.jsdoc.tagNamePreference,
|
|
36
|
-
callback: false,
|
|
37
|
-
class: false,
|
|
38
|
-
constructor: false,
|
|
39
|
-
default: "defaultValue",
|
|
40
|
-
function: false,
|
|
41
|
-
method: false,
|
|
42
|
-
readonly: false,
|
|
43
|
-
static: false,
|
|
44
|
-
template: false,
|
|
45
|
-
type: false,
|
|
46
|
-
typedef: false,
|
|
47
|
-
typeParam: "typeParam",
|
|
48
|
-
virtual: "virtual"
|
|
49
|
-
}
|
|
50
|
-
} }
|
|
51
|
-
};
|
|
52
|
-
export { jsdocSettings, typescriptJsdocConfig };
|
|
11
|
+
export { jsdocSettings };
|
|
53
12
|
|
|
54
13
|
//# sourceMappingURL=jsdoc.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"jsdoc.js","names":[],"sources":["../../../src/_internals/configs/jsdoc.ts"],"sourcesContent":["
|
|
1
|
+
{"version":3,"file":"jsdoc.js","names":[],"sources":["../../../src/_internals/configs/jsdoc.ts"],"sourcesContent":["export const jsdocSettings = {\n jsdoc: {\n tagNamePreference: {\n arg: 'param',\n argument: 'param',\n desc: false,\n description: false,\n exception: 'throws',\n return: 'returns',\n types: false,\n },\n },\n};\n"],"mappings":";AAAA,MAAa,gBAAgB,EACzB,OAAO,EACH,mBAAmB;CACf,KAAK;CACL,UAAU;CACV,MAAM;CACN,aAAa;CACb,WAAW;CACX,QAAQ;CACR,OAAO;AACX,EACJ,EACJ"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"type-aware.d.ts","names":[],"sources":["../../../src/_internals/configs/type-aware.ts"],"mappings":";
|
|
1
|
+
{"version":3,"file":"type-aware.d.ts","names":[],"sources":["../../../src/_internals/configs/type-aware.ts"],"mappings":";wBAGgB,yBAAyB"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import typefest from "eslint-plugin-typefest";
|
|
1
2
|
// src/_internals/configs/type-aware.ts
|
|
2
3
|
function createTypeAwareConfig() {
|
|
3
4
|
return {
|
|
@@ -5,7 +6,10 @@ function createTypeAwareConfig() {
|
|
|
5
6
|
projectService: true,
|
|
6
7
|
tsconfigRootDir: process.cwd()
|
|
7
8
|
} },
|
|
9
|
+
plugins: { typefest },
|
|
8
10
|
rules: {
|
|
11
|
+
"dot-notation": "off",
|
|
12
|
+
"kikiutils/no-reactive-destructure": "error",
|
|
9
13
|
"kikiutils/no-thenable-zod-refinement": "error",
|
|
10
14
|
"kikiutils/promise-function-async": "error",
|
|
11
15
|
"no-implied-eval": "off",
|
|
@@ -13,6 +17,7 @@ function createTypeAwareConfig() {
|
|
|
13
17
|
"prefer-promise-reject-errors": "off",
|
|
14
18
|
"ts/await-thenable": "error",
|
|
15
19
|
"ts/consistent-type-exports": "error",
|
|
20
|
+
"ts/dot-notation": ["error", { allowKeywords: true }],
|
|
16
21
|
"ts/no-array-delete": "error",
|
|
17
22
|
"ts/no-base-to-string": "error",
|
|
18
23
|
"ts/no-deprecated": "error",
|
|
@@ -24,12 +29,21 @@ function createTypeAwareConfig() {
|
|
|
24
29
|
}] }],
|
|
25
30
|
"ts/no-for-in-array": "error",
|
|
26
31
|
"ts/no-implied-eval": "error",
|
|
32
|
+
"ts/no-meaningless-void-operator": "error",
|
|
27
33
|
"ts/no-misused-promises": "error",
|
|
28
34
|
"ts/no-misused-spread": "error",
|
|
35
|
+
"ts/no-redundant-type-constituents": "error",
|
|
29
36
|
"ts/no-unnecessary-boolean-literal-compare": "error",
|
|
30
37
|
"ts/no-unnecessary-template-expression": "error",
|
|
31
38
|
"ts/no-unnecessary-type-arguments": "error",
|
|
32
39
|
"ts/no-unnecessary-type-assertion": "error",
|
|
40
|
+
"ts/no-unnecessary-type-conversion": "error",
|
|
41
|
+
"ts/no-unsafe-argument": "error",
|
|
42
|
+
"ts/no-unsafe-assignment": "error",
|
|
43
|
+
"ts/no-unsafe-call": "error",
|
|
44
|
+
"ts/no-unsafe-member-access": "error",
|
|
45
|
+
"ts/no-unsafe-return": "error",
|
|
46
|
+
"ts/no-useless-default-assignment": "error",
|
|
33
47
|
"ts/only-throw-error": "error",
|
|
34
48
|
"ts/prefer-promise-reject-errors": ["error", {
|
|
35
49
|
allowThrowingAny: true,
|
|
@@ -37,9 +51,20 @@ function createTypeAwareConfig() {
|
|
|
37
51
|
}],
|
|
38
52
|
"ts/promise-function-async": "off",
|
|
39
53
|
"ts/require-await": "off",
|
|
54
|
+
"ts/restrict-plus-operands": "error",
|
|
40
55
|
"ts/restrict-template-expressions": ["error", { allowNever: true }],
|
|
41
56
|
"ts/return-await": ["error", "always"],
|
|
42
|
-
"ts/switch-exhaustiveness-check": ["error", { considerDefaultExhaustiveForUnions: true }]
|
|
57
|
+
"ts/switch-exhaustiveness-check": ["error", { considerDefaultExhaustiveForUnions: true }],
|
|
58
|
+
"ts/use-unknown-in-catch-callback-variable": "error",
|
|
59
|
+
"typefest/prefer-ts-extras-is-present-filter": "error",
|
|
60
|
+
"typefest/prefer-ts-extras-object-entries": "error",
|
|
61
|
+
"typefest/prefer-ts-extras-object-has-own": "error",
|
|
62
|
+
"typefest/prefer-ts-extras-object-keys": "error",
|
|
63
|
+
"typefest/prefer-ts-extras-object-values": "error",
|
|
64
|
+
"typefest/prefer-type-fest-array-values": "error",
|
|
65
|
+
"typefest/prefer-type-fest-arrayable": "error",
|
|
66
|
+
"typefest/prefer-type-fest-unknown-record": "error",
|
|
67
|
+
"typefest/prefer-type-fest-value-of": "error"
|
|
43
68
|
}
|
|
44
69
|
};
|
|
45
70
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"type-aware.js","names":[],"sources":["../../../src/_internals/configs/type-aware.ts"],"sourcesContent":["import type { TypedFlatConfigItem } from '@antfu/eslint-config';\n\nexport function createTypeAwareConfig(): TypedFlatConfigItem {\n return {\n languageOptions: {\n parserOptions: {\n projectService: true,\n tsconfigRootDir: process.cwd(),\n },\n },\n rules: {\n 'kikiutils/no-thenable-zod-refinement': 'error',\n 'kikiutils/promise-function-async': 'error',\n
|
|
1
|
+
{"version":3,"file":"type-aware.js","names":[],"sources":["../../../src/_internals/configs/type-aware.ts"],"sourcesContent":["import type { TypedFlatConfigItem } from '@antfu/eslint-config';\nimport typefest from 'eslint-plugin-typefest';\n\nexport function createTypeAwareConfig(): TypedFlatConfigItem {\n return {\n languageOptions: {\n parserOptions: {\n projectService: true,\n tsconfigRootDir: process.cwd(),\n },\n },\n plugins: { typefest },\n rules: {\n // Core rules turned off here are replaced by their typed `ts/` versions, which report more accurately.\n 'dot-notation': 'off',\n 'kikiutils/no-reactive-destructure': 'error',\n 'kikiutils/no-thenable-zod-refinement': 'error',\n 'kikiutils/promise-function-async': 'error',\n 'no-implied-eval': 'off',\n 'no-throw-literal': 'off',\n 'prefer-promise-reject-errors': 'off',\n 'ts/await-thenable': 'error',\n 'ts/consistent-type-exports': 'error',\n 'ts/dot-notation': [\n 'error',\n { allowKeywords: true },\n ],\n 'ts/no-array-delete': 'error',\n 'ts/no-base-to-string': 'error',\n 'ts/no-deprecated': 'error',\n 'ts/no-duplicate-type-constituents': 'error',\n 'ts/no-floating-promises': [\n 'error',\n {\n allowForKnownSafePromises: [\n {\n from: 'package',\n name: 'SafePromise',\n package: '@kikiutils/shared',\n },\n ],\n },\n ],\n 'ts/no-for-in-array': 'error',\n 'ts/no-implied-eval': 'error',\n 'ts/no-meaningless-void-operator': 'error',\n 'ts/no-misused-promises': 'error',\n 'ts/no-misused-spread': 'error',\n 'ts/no-redundant-type-constituents': 'error',\n 'ts/no-unnecessary-boolean-literal-compare': 'error',\n 'ts/no-unnecessary-template-expression': 'error',\n 'ts/no-unnecessary-type-arguments': 'error',\n 'ts/no-unnecessary-type-assertion': 'error',\n 'ts/no-unnecessary-type-conversion': 'error',\n 'ts/no-unsafe-argument': 'error',\n 'ts/no-unsafe-assignment': 'error',\n 'ts/no-unsafe-call': 'error',\n 'ts/no-unsafe-member-access': 'error',\n 'ts/no-unsafe-return': 'error',\n 'ts/no-useless-default-assignment': 'error',\n 'ts/only-throw-error': 'error',\n // Matches only-throw-error, which allows `any` and `unknown` by default.\n 'ts/prefer-promise-reject-errors': [\n 'error',\n {\n allowThrowingAny: true,\n allowThrowingUnknown: true,\n },\n ],\n 'ts/promise-function-async': 'off',\n 'ts/require-await': 'off',\n 'ts/restrict-plus-operands': 'error',\n // Exhaustive-switch fallbacks interpolate the `never` value into their error message.\n 'ts/restrict-template-expressions': [\n 'error',\n { allowNever: true },\n ],\n 'ts/return-await': [\n 'error',\n 'always',\n ],\n 'ts/switch-exhaustiveness-check': [\n 'error',\n { considerDefaultExhaustiveForUnions: true },\n ],\n 'ts/use-unknown-in-catch-callback-variable': 'error',\n 'typefest/prefer-ts-extras-is-present-filter': 'error',\n 'typefest/prefer-ts-extras-object-entries': 'error',\n 'typefest/prefer-ts-extras-object-has-own': 'error',\n 'typefest/prefer-ts-extras-object-keys': 'error',\n 'typefest/prefer-ts-extras-object-values': 'error',\n 'typefest/prefer-type-fest-array-values': 'error',\n 'typefest/prefer-type-fest-arrayable': 'error',\n 'typefest/prefer-type-fest-unknown-record': 'error',\n 'typefest/prefer-type-fest-value-of': 'error',\n },\n };\n}\n"],"mappings":";;AAGA,SAAgB,wBAA6C;CACzD,OAAO;EACH,iBAAiB,EACb,eAAe;GACX,gBAAgB;GAChB,iBAAiB,QAAQ,IAAI;EACjC,EACJ;EACA,SAAS,EAAE,SAAS;EACpB,OAAO;GAEH,gBAAgB;GAChB,qCAAqC;GACrC,wCAAwC;GACxC,oCAAoC;GACpC,mBAAmB;GACnB,oBAAoB;GACpB,gCAAgC;GAChC,qBAAqB;GACrB,8BAA8B;GAC9B,mBAAmB,CACf,SACA,EAAE,eAAe,KAAK,CAC1B;GACA,sBAAsB;GACtB,wBAAwB;GACxB,oBAAoB;GACpB,qCAAqC;GACrC,2BAA2B,CACvB,SACA,EACI,2BAA2B,CACvB;IACI,MAAM;IACN,MAAM;IACN,SAAS;GACb,CACJ,EACJ,CACJ;GACA,sBAAsB;GACtB,sBAAsB;GACtB,mCAAmC;GACnC,0BAA0B;GAC1B,wBAAwB;GACxB,qCAAqC;GACrC,6CAA6C;GAC7C,yCAAyC;GACzC,oCAAoC;GACpC,oCAAoC;GACpC,qCAAqC;GACrC,yBAAyB;GACzB,2BAA2B;GAC3B,qBAAqB;GACrB,8BAA8B;GAC9B,uBAAuB;GACvB,oCAAoC;GACpC,uBAAuB;GAEvB,mCAAmC,CAC/B,SACA;IACI,kBAAkB;IAClB,sBAAsB;GAC1B,CACJ;GACA,6BAA6B;GAC7B,oBAAoB;GACpB,6BAA6B;GAE7B,oCAAoC,CAChC,SACA,EAAE,YAAY,KAAK,CACvB;GACA,mBAAmB,CACf,SACA,QACJ;GACA,kCAAkC,CAC9B,SACA,EAAE,oCAAoC,KAAK,CAC/C;GACA,6CAA6C;GAC7C,+CAA+C;GAC/C,4CAA4C;GAC5C,4CAA4C;GAC5C,yCAAyC;GACzC,2CAA2C;GAC3C,0CAA0C;GAC1C,uCAAuC;GACvC,4CAA4C;GAC5C,sCAAsC;EAC1C;CACJ;AACJ"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
export declare const typescriptConfig: {
|
|
2
|
+
rules: {
|
|
3
|
+
'jsdoc/check-tag-names': ["error", {
|
|
4
|
+
definedTags: string[];
|
|
5
|
+
}];
|
|
6
|
+
'jsdoc/no-types': "error";
|
|
7
|
+
'ts/array-type': ["error", {
|
|
8
|
+
default: "array-simple";
|
|
9
|
+
}];
|
|
10
|
+
'ts/consistent-generic-constructors': ["error", "constructor"];
|
|
11
|
+
'ts/no-explicit-any': "error";
|
|
12
|
+
'ts/no-redeclare': "off";
|
|
13
|
+
};
|
|
14
|
+
settings: {
|
|
15
|
+
jsdoc: {
|
|
16
|
+
mode: string;
|
|
17
|
+
tagNamePreference: {
|
|
18
|
+
callback: boolean;
|
|
19
|
+
class: boolean;
|
|
20
|
+
constructor: boolean;
|
|
21
|
+
default: string;
|
|
22
|
+
function: boolean;
|
|
23
|
+
method: boolean;
|
|
24
|
+
readonly: boolean;
|
|
25
|
+
static: boolean;
|
|
26
|
+
template: boolean;
|
|
27
|
+
type: boolean;
|
|
28
|
+
typedef: boolean;
|
|
29
|
+
typeParam: string;
|
|
30
|
+
virtual: string;
|
|
31
|
+
arg: string;
|
|
32
|
+
argument: string;
|
|
33
|
+
desc: boolean;
|
|
34
|
+
description: boolean;
|
|
35
|
+
exception: string;
|
|
36
|
+
return: string;
|
|
37
|
+
types: boolean;
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
//# sourceMappingURL=typescript.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"typescript.d.ts","names":[],"sources":["../../../src/_internals/configs/typescript.ts"],"mappings":"A,qBAKa"}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { jsdocSettings } from "./jsdoc.js";
|
|
2
|
+
// src/_internals/configs/typescript.ts
|
|
3
|
+
const typescriptConfig = {
|
|
4
|
+
rules: {
|
|
5
|
+
"jsdoc/check-tag-names": ["error", { definedTags: [
|
|
6
|
+
"alpha",
|
|
7
|
+
"beta",
|
|
8
|
+
"defaultValue",
|
|
9
|
+
"eventProperty",
|
|
10
|
+
"experimental",
|
|
11
|
+
"hidden",
|
|
12
|
+
"inheritDoc",
|
|
13
|
+
"internal",
|
|
14
|
+
"packageDocumentation",
|
|
15
|
+
"privateRemarks",
|
|
16
|
+
"remarks",
|
|
17
|
+
"sealed",
|
|
18
|
+
"typeParam",
|
|
19
|
+
"virtual"
|
|
20
|
+
] }],
|
|
21
|
+
"jsdoc/no-types": "error",
|
|
22
|
+
"ts/array-type": ["error", { default: "array-simple" }],
|
|
23
|
+
"ts/consistent-generic-constructors": ["error", "constructor"],
|
|
24
|
+
"ts/no-explicit-any": "error",
|
|
25
|
+
"ts/no-redeclare": "off"
|
|
26
|
+
},
|
|
27
|
+
settings: { jsdoc: {
|
|
28
|
+
mode: "typescript",
|
|
29
|
+
tagNamePreference: {
|
|
30
|
+
...jsdocSettings.jsdoc.tagNamePreference,
|
|
31
|
+
callback: false,
|
|
32
|
+
class: false,
|
|
33
|
+
constructor: false,
|
|
34
|
+
default: "defaultValue",
|
|
35
|
+
function: false,
|
|
36
|
+
method: false,
|
|
37
|
+
readonly: false,
|
|
38
|
+
static: false,
|
|
39
|
+
template: false,
|
|
40
|
+
type: false,
|
|
41
|
+
typedef: false,
|
|
42
|
+
typeParam: "typeParam",
|
|
43
|
+
virtual: "virtual"
|
|
44
|
+
}
|
|
45
|
+
} }
|
|
46
|
+
};
|
|
47
|
+
export { typescriptConfig };
|
|
48
|
+
|
|
49
|
+
//# sourceMappingURL=typescript.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"typescript.js","names":[],"sources":["../../../src/_internals/configs/typescript.ts"],"sourcesContent":["import type { TypedFlatConfigItem } from '@antfu/eslint-config';\n\nimport { jsdocSettings } from './jsdoc';\n\n// antfu's TypeScript rules also cover `.vue` files, so these overrides are shared by the TS and Vue items.\nexport const typescriptConfig = {\n rules: {\n 'jsdoc/check-tag-names': [\n 'error',\n {\n definedTags: [\n 'alpha',\n 'beta',\n 'defaultValue',\n 'eventProperty',\n 'experimental',\n 'hidden',\n 'inheritDoc',\n 'internal',\n 'packageDocumentation',\n 'privateRemarks',\n 'remarks',\n 'sealed',\n 'typeParam',\n 'virtual',\n ],\n },\n ],\n 'jsdoc/no-types': 'error',\n 'ts/array-type': [\n 'error',\n { default: 'array-simple' },\n ],\n 'ts/consistent-generic-constructors': [\n 'error',\n 'constructor',\n ],\n 'ts/no-explicit-any': 'error',\n 'ts/no-redeclare': 'off',\n },\n settings: {\n jsdoc: {\n mode: 'typescript',\n tagNamePreference: {\n ...jsdocSettings.jsdoc.tagNamePreference,\n callback: false,\n class: false,\n constructor: false,\n default: 'defaultValue',\n function: false,\n method: false,\n readonly: false,\n static: false,\n template: false,\n type: false,\n typedef: false,\n typeParam: 'typeParam',\n virtual: 'virtual',\n },\n },\n },\n} satisfies TypedFlatConfigItem;\n"],"mappings":";;AAKA,MAAa,mBAAmB;CAC5B,OAAO;EACH,yBAAyB,CACrB,SACA,EACI,aAAa;GACT;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;EACJ,EACJ,CACJ;EACA,kBAAkB;EAClB,iBAAiB,CACb,SACA,EAAE,SAAS,eAAe,CAC9B;EACA,sCAAsC,CAClC,SACA,aACJ;EACA,sBAAsB;EACtB,mBAAmB;CACvB;CACA,UAAU,EACN,OAAO;EACH,MAAM;EACN,mBAAmB;GACf,GAAG,cAAc,MAAM;GACvB,UAAU;GACV,OAAO;GACP,aAAa;GACb,SAAS;GACT,UAAU;GACV,QAAQ;GACR,UAAU;GACV,QAAQ;GACR,UAAU;GACV,MAAM;GACN,SAAS;GACT,WAAW;GACX,SAAS;EACb;CACJ,EACJ;AACJ"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"eslint-plugin-promise.d.ts","names":[],"sources":["../../src/_internals/eslint-plugin-promise.d.ts"],"mappings":";gBACkB;QAER,QAAQ,OAAO;iBACN"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"consistent-condition-layout.d.ts","names":[],"sources":["../../../src/_internals/rules/consistent-condition-layout.ts"],"mappings":";
|
|
1
|
+
{"version":3,"file":"consistent-condition-layout.d.ts","names":[],"sources":["../../../src/_internals/rules/consistent-condition-layout.ts"],"mappings":";qBA0Ba,2BAA2B,KAAK"}
|