@ntnyq/eslint-config 4.0.3 → 4.1.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 +13 -7
- package/dist/index.d.mts +387 -152
- package/dist/index.mjs +42 -25
- package/package.json +24 -24
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# eslint-config
|
|
1
|
+
# @ntnyq/eslint-config
|
|
2
2
|
|
|
3
3
|
> ESLint config for JavaScript, TypeScript, Vue, JSON, Markdown, YAML, TOML, SVG and etc.
|
|
4
4
|
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
|
|
10
10
|
## Features
|
|
11
11
|
|
|
12
|
-
- Designed to work alongside with [Prettier](https://prettier.io)
|
|
12
|
+
- Designed to work alongside with [Prettier](https://prettier.io) and [TypeScript](https://www.typescriptlang.org/)
|
|
13
13
|
- Opinionable: single quote, no semi, trailing comma, etc
|
|
14
14
|
- Respect `.gitignore` via [eslint-config-flat-gitignore](https://github.com/antfu/eslint-config-flat-gitignore)
|
|
15
15
|
- Out-of-box support for TypeScript, Vue, JSON, Markdown, YAML, TOML, SVG and etc
|
|
@@ -44,7 +44,9 @@ Highly recommended using **`eslint.config.mjs`** as the config file :
|
|
|
44
44
|
|
|
45
45
|
import { defineESLintConfig } from '@ntnyq/eslint-config'
|
|
46
46
|
|
|
47
|
-
export default defineESLintConfig(
|
|
47
|
+
export default defineESLintConfig({
|
|
48
|
+
// Options here
|
|
49
|
+
})
|
|
48
50
|
```
|
|
49
51
|
|
|
50
52
|
Add scripts `lint` in `package.json`:
|
|
@@ -144,11 +146,11 @@ export default defineConfig({
|
|
|
144
146
|
|
|
145
147
|
### 1. Add dependencies
|
|
146
148
|
|
|
147
|
-
```
|
|
149
|
+
```shell
|
|
148
150
|
pnpm add husky nano-staged -D
|
|
149
151
|
```
|
|
150
152
|
|
|
151
|
-
### 2. Config `package.json`
|
|
153
|
+
### 2. Config in `package.json`
|
|
152
154
|
|
|
153
155
|
```json
|
|
154
156
|
{
|
|
@@ -164,12 +166,16 @@ pnpm add husky nano-staged -D
|
|
|
164
166
|
|
|
165
167
|
### 3. Add a Git hook
|
|
166
168
|
|
|
167
|
-
```
|
|
169
|
+
```shell
|
|
168
170
|
echo "nano-staged" > .husky/pre-commit
|
|
169
171
|
```
|
|
170
172
|
|
|
171
173
|
</details>
|
|
172
174
|
|
|
175
|
+
## View what rules are enabled
|
|
176
|
+
|
|
177
|
+
Please check [eslint-config-inspector](https://eslint-config-inspector.ntnyq.com/) powered by [@eslint/config-inspector](https://github.com/eslint/config-inspector).
|
|
178
|
+
|
|
173
179
|
## Advanced config
|
|
174
180
|
|
|
175
181
|
Check for detail in:
|
|
@@ -234,7 +240,7 @@ export interface ConfigOptions {
|
|
|
234
240
|
|
|
235
241
|
## Versioning policy
|
|
236
242
|
|
|
237
|
-
This project follows [Semantic Versioning](https://semver.org/) for releases.
|
|
243
|
+
This project aims to follows [Semantic Versioning](https://semver.org/) for releases.
|
|
238
244
|
|
|
239
245
|
### Changes considered as Breaking Changes
|
|
240
246
|
|
package/dist/index.d.mts
CHANGED
|
@@ -15,8 +15,6 @@ import * as yamlEslintParser from 'yaml-eslint-parser';
|
|
|
15
15
|
export { yamlEslintParser as parserYaml };
|
|
16
16
|
import * as jsoncEslintParser from 'jsonc-eslint-parser';
|
|
17
17
|
export { jsoncEslintParser as parserJsonc };
|
|
18
|
-
import * as eslintPluginDepend from 'eslint-plugin-depend';
|
|
19
|
-
export { eslintPluginDepend as pluginDepend };
|
|
20
18
|
import * as eslintPluginRegexp from 'eslint-plugin-regexp';
|
|
21
19
|
export { eslintPluginRegexp as pluginRegexp };
|
|
22
20
|
export { default as pluginNode } from 'eslint-plugin-n';
|
|
@@ -31,6 +29,7 @@ export { default as pluginJsdoc } from 'eslint-plugin-jsdoc';
|
|
|
31
29
|
export { default as pluginJsonc } from 'eslint-plugin-jsonc';
|
|
32
30
|
export { default as pluginNtnyq } from 'eslint-plugin-ntnyq';
|
|
33
31
|
export { default as pluginPinia } from 'eslint-plugin-pinia';
|
|
32
|
+
export { default as pluginDepend } from 'eslint-plugin-depend';
|
|
34
33
|
export { default as pluginUnoCSS } from '@unocss/eslint-plugin';
|
|
35
34
|
export { default as pluginVitest } from '@vitest/eslint-plugin';
|
|
36
35
|
export { default as pluginUnicorn } from 'eslint-plugin-unicorn';
|
|
@@ -2054,233 +2053,233 @@ interface RuleOptions {
|
|
|
2054
2053
|
'implicit-arrow-linebreak'?: Linter.RuleEntry<ImplicitArrowLinebreak>
|
|
2055
2054
|
/**
|
|
2056
2055
|
* Enforce or ban the use of inline type-only markers for named imports.
|
|
2057
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
2056
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.0/docs/rules/consistent-type-specifier-style.md
|
|
2058
2057
|
*/
|
|
2059
2058
|
'import-x/consistent-type-specifier-style'?: Linter.RuleEntry<ImportXConsistentTypeSpecifierStyle>
|
|
2060
2059
|
/**
|
|
2061
2060
|
* Ensure a default export is present, given a default import.
|
|
2062
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
2061
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.0/docs/rules/default.md
|
|
2063
2062
|
*/
|
|
2064
2063
|
'import-x/default'?: Linter.RuleEntry<[]>
|
|
2065
2064
|
/**
|
|
2066
2065
|
* Enforce a leading comment with the webpackChunkName for dynamic imports.
|
|
2067
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
2066
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.0/docs/rules/dynamic-import-chunkname.md
|
|
2068
2067
|
*/
|
|
2069
2068
|
'import-x/dynamic-import-chunkname'?: Linter.RuleEntry<ImportXDynamicImportChunkname>
|
|
2070
2069
|
/**
|
|
2071
2070
|
* Forbid any invalid exports, i.e. re-export of the same name.
|
|
2072
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
2071
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.0/docs/rules/export.md
|
|
2073
2072
|
*/
|
|
2074
2073
|
'import-x/export'?: Linter.RuleEntry<[]>
|
|
2075
2074
|
/**
|
|
2076
2075
|
* Ensure all exports appear after other statements.
|
|
2077
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
2076
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.0/docs/rules/exports-last.md
|
|
2078
2077
|
*/
|
|
2079
2078
|
'import-x/exports-last'?: Linter.RuleEntry<[]>
|
|
2080
2079
|
/**
|
|
2081
2080
|
* Ensure consistent use of file extension within the import path.
|
|
2082
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
2081
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.0/docs/rules/extensions.md
|
|
2083
2082
|
*/
|
|
2084
2083
|
'import-x/extensions'?: Linter.RuleEntry<ImportXExtensions>
|
|
2085
2084
|
/**
|
|
2086
2085
|
* Ensure all imports appear before other statements.
|
|
2087
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
2086
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.0/docs/rules/first.md
|
|
2088
2087
|
*/
|
|
2089
2088
|
'import-x/first'?: Linter.RuleEntry<ImportXFirst>
|
|
2090
2089
|
/**
|
|
2091
2090
|
* Prefer named exports to be grouped together in a single export declaration.
|
|
2092
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
2091
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.0/docs/rules/group-exports.md
|
|
2093
2092
|
*/
|
|
2094
2093
|
'import-x/group-exports'?: Linter.RuleEntry<[]>
|
|
2095
2094
|
/**
|
|
2096
2095
|
* Replaced by `import-x/first`.
|
|
2097
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
2096
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.0/docs/rules/imports-first.md
|
|
2098
2097
|
* @deprecated
|
|
2099
2098
|
*/
|
|
2100
2099
|
'import-x/imports-first'?: Linter.RuleEntry<ImportXImportsFirst>
|
|
2101
2100
|
/**
|
|
2102
2101
|
* Enforce the maximum number of dependencies a module can have.
|
|
2103
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
2102
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.0/docs/rules/max-dependencies.md
|
|
2104
2103
|
*/
|
|
2105
2104
|
'import-x/max-dependencies'?: Linter.RuleEntry<ImportXMaxDependencies>
|
|
2106
2105
|
/**
|
|
2107
2106
|
* Ensure named imports correspond to a named export in the remote file.
|
|
2108
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
2107
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.0/docs/rules/named.md
|
|
2109
2108
|
*/
|
|
2110
2109
|
'import-x/named'?: Linter.RuleEntry<ImportXNamed>
|
|
2111
2110
|
/**
|
|
2112
2111
|
* Ensure imported namespaces contain dereferenced properties as they are dereferenced.
|
|
2113
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
2112
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.0/docs/rules/namespace.md
|
|
2114
2113
|
*/
|
|
2115
2114
|
'import-x/namespace'?: Linter.RuleEntry<ImportXNamespace>
|
|
2116
2115
|
/**
|
|
2117
2116
|
* Enforce a newline after import statements.
|
|
2118
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
2117
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.0/docs/rules/newline-after-import.md
|
|
2119
2118
|
*/
|
|
2120
2119
|
'import-x/newline-after-import'?: Linter.RuleEntry<ImportXNewlineAfterImport>
|
|
2121
2120
|
/**
|
|
2122
2121
|
* Forbid import of modules using absolute paths.
|
|
2123
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
2122
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.0/docs/rules/no-absolute-path.md
|
|
2124
2123
|
*/
|
|
2125
2124
|
'import-x/no-absolute-path'?: Linter.RuleEntry<ImportXNoAbsolutePath>
|
|
2126
2125
|
/**
|
|
2127
2126
|
* Forbid AMD `require` and `define` calls.
|
|
2128
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
2127
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.0/docs/rules/no-amd.md
|
|
2129
2128
|
*/
|
|
2130
2129
|
'import-x/no-amd'?: Linter.RuleEntry<[]>
|
|
2131
2130
|
/**
|
|
2132
2131
|
* Forbid anonymous values as default exports.
|
|
2133
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
2132
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.0/docs/rules/no-anonymous-default-export.md
|
|
2134
2133
|
*/
|
|
2135
2134
|
'import-x/no-anonymous-default-export'?: Linter.RuleEntry<ImportXNoAnonymousDefaultExport>
|
|
2136
2135
|
/**
|
|
2137
2136
|
* Forbid CommonJS `require` calls and `module.exports` or `exports.*`.
|
|
2138
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
2137
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.0/docs/rules/no-commonjs.md
|
|
2139
2138
|
*/
|
|
2140
2139
|
'import-x/no-commonjs'?: Linter.RuleEntry<ImportXNoCommonjs>
|
|
2141
2140
|
/**
|
|
2142
2141
|
* Forbid a module from importing a module with a dependency path back to itself.
|
|
2143
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
2142
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.0/docs/rules/no-cycle.md
|
|
2144
2143
|
*/
|
|
2145
2144
|
'import-x/no-cycle'?: Linter.RuleEntry<ImportXNoCycle>
|
|
2146
2145
|
/**
|
|
2147
2146
|
* Forbid default exports.
|
|
2148
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
2147
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.0/docs/rules/no-default-export.md
|
|
2149
2148
|
*/
|
|
2150
2149
|
'import-x/no-default-export'?: Linter.RuleEntry<[]>
|
|
2151
2150
|
/**
|
|
2152
2151
|
* Forbid imported names marked with `@deprecated` documentation tag.
|
|
2153
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
2152
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.0/docs/rules/no-deprecated.md
|
|
2154
2153
|
*/
|
|
2155
2154
|
'import-x/no-deprecated'?: Linter.RuleEntry<[]>
|
|
2156
2155
|
/**
|
|
2157
2156
|
* Forbid repeated import of the same module in multiple places.
|
|
2158
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
2157
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.0/docs/rules/no-duplicates.md
|
|
2159
2158
|
*/
|
|
2160
2159
|
'import-x/no-duplicates'?: Linter.RuleEntry<ImportXNoDuplicates>
|
|
2161
2160
|
/**
|
|
2162
2161
|
* Forbid `require()` calls with expressions.
|
|
2163
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
2162
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.0/docs/rules/no-dynamic-require.md
|
|
2164
2163
|
*/
|
|
2165
2164
|
'import-x/no-dynamic-require'?: Linter.RuleEntry<ImportXNoDynamicRequire>
|
|
2166
2165
|
/**
|
|
2167
2166
|
* Forbid empty named import blocks.
|
|
2168
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
2167
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.0/docs/rules/no-empty-named-blocks.md
|
|
2169
2168
|
*/
|
|
2170
2169
|
'import-x/no-empty-named-blocks'?: Linter.RuleEntry<[]>
|
|
2171
2170
|
/**
|
|
2172
2171
|
* Forbid the use of extraneous packages.
|
|
2173
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
2172
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.0/docs/rules/no-extraneous-dependencies.md
|
|
2174
2173
|
*/
|
|
2175
2174
|
'import-x/no-extraneous-dependencies'?: Linter.RuleEntry<ImportXNoExtraneousDependencies>
|
|
2176
2175
|
/**
|
|
2177
2176
|
* Forbid import statements with CommonJS module.exports.
|
|
2178
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
2177
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.0/docs/rules/no-import-module-exports.md
|
|
2179
2178
|
*/
|
|
2180
2179
|
'import-x/no-import-module-exports'?: Linter.RuleEntry<ImportXNoImportModuleExports>
|
|
2181
2180
|
/**
|
|
2182
2181
|
* Forbid importing the submodules of other modules.
|
|
2183
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
2182
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.0/docs/rules/no-internal-modules.md
|
|
2184
2183
|
*/
|
|
2185
2184
|
'import-x/no-internal-modules'?: Linter.RuleEntry<ImportXNoInternalModules>
|
|
2186
2185
|
/**
|
|
2187
2186
|
* Forbid the use of mutable exports with `var` or `let`.
|
|
2188
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
2187
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.0/docs/rules/no-mutable-exports.md
|
|
2189
2188
|
*/
|
|
2190
2189
|
'import-x/no-mutable-exports'?: Linter.RuleEntry<[]>
|
|
2191
2190
|
/**
|
|
2192
2191
|
* Forbid use of exported name as identifier of default export.
|
|
2193
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
2192
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.0/docs/rules/no-named-as-default.md
|
|
2194
2193
|
*/
|
|
2195
2194
|
'import-x/no-named-as-default'?: Linter.RuleEntry<[]>
|
|
2196
2195
|
/**
|
|
2197
2196
|
* Forbid use of exported name as property of default export.
|
|
2198
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
2197
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.0/docs/rules/no-named-as-default-member.md
|
|
2199
2198
|
*/
|
|
2200
2199
|
'import-x/no-named-as-default-member'?: Linter.RuleEntry<[]>
|
|
2201
2200
|
/**
|
|
2202
2201
|
* Forbid named default exports.
|
|
2203
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
2202
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.0/docs/rules/no-named-default.md
|
|
2204
2203
|
*/
|
|
2205
2204
|
'import-x/no-named-default'?: Linter.RuleEntry<[]>
|
|
2206
2205
|
/**
|
|
2207
2206
|
* Forbid named exports.
|
|
2208
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
2207
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.0/docs/rules/no-named-export.md
|
|
2209
2208
|
*/
|
|
2210
2209
|
'import-x/no-named-export'?: Linter.RuleEntry<[]>
|
|
2211
2210
|
/**
|
|
2212
2211
|
* Forbid namespace (a.k.a. "wildcard" `*`) imports.
|
|
2213
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
2212
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.0/docs/rules/no-namespace.md
|
|
2214
2213
|
*/
|
|
2215
2214
|
'import-x/no-namespace'?: Linter.RuleEntry<ImportXNoNamespace>
|
|
2216
2215
|
/**
|
|
2217
2216
|
* Forbid Node.js builtin modules.
|
|
2218
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
2217
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.0/docs/rules/no-nodejs-modules.md
|
|
2219
2218
|
*/
|
|
2220
2219
|
'import-x/no-nodejs-modules'?: Linter.RuleEntry<ImportXNoNodejsModules>
|
|
2221
2220
|
/**
|
|
2222
2221
|
* Forbid importing packages through relative paths.
|
|
2223
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
2222
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.0/docs/rules/no-relative-packages.md
|
|
2224
2223
|
*/
|
|
2225
2224
|
'import-x/no-relative-packages'?: Linter.RuleEntry<ImportXNoRelativePackages>
|
|
2226
2225
|
/**
|
|
2227
2226
|
* Forbid importing modules from parent directories.
|
|
2228
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
2227
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.0/docs/rules/no-relative-parent-imports.md
|
|
2229
2228
|
*/
|
|
2230
2229
|
'import-x/no-relative-parent-imports'?: Linter.RuleEntry<ImportXNoRelativeParentImports>
|
|
2231
2230
|
/**
|
|
2232
2231
|
* Forbid importing a default export by a different name.
|
|
2233
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
2232
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.0/docs/rules/no-rename-default.md
|
|
2234
2233
|
*/
|
|
2235
2234
|
'import-x/no-rename-default'?: Linter.RuleEntry<ImportXNoRenameDefault>
|
|
2236
2235
|
/**
|
|
2237
2236
|
* Enforce which files can be imported in a given folder.
|
|
2238
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
2237
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.0/docs/rules/no-restricted-paths.md
|
|
2239
2238
|
*/
|
|
2240
2239
|
'import-x/no-restricted-paths'?: Linter.RuleEntry<ImportXNoRestrictedPaths>
|
|
2241
2240
|
/**
|
|
2242
2241
|
* Forbid a module from importing itself.
|
|
2243
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
2242
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.0/docs/rules/no-self-import.md
|
|
2244
2243
|
*/
|
|
2245
2244
|
'import-x/no-self-import'?: Linter.RuleEntry<[]>
|
|
2246
2245
|
/**
|
|
2247
2246
|
* Forbid unassigned imports.
|
|
2248
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
2247
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.0/docs/rules/no-unassigned-import.md
|
|
2249
2248
|
*/
|
|
2250
2249
|
'import-x/no-unassigned-import'?: Linter.RuleEntry<ImportXNoUnassignedImport>
|
|
2251
2250
|
/**
|
|
2252
2251
|
* Ensure imports point to a file/module that can be resolved.
|
|
2253
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
2252
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.0/docs/rules/no-unresolved.md
|
|
2254
2253
|
*/
|
|
2255
2254
|
'import-x/no-unresolved'?: Linter.RuleEntry<ImportXNoUnresolved>
|
|
2256
2255
|
/**
|
|
2257
2256
|
* Forbid modules without exports, or exports without matching import in another module.
|
|
2258
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
2257
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.0/docs/rules/no-unused-modules.md
|
|
2259
2258
|
*/
|
|
2260
2259
|
'import-x/no-unused-modules'?: Linter.RuleEntry<ImportXNoUnusedModules>
|
|
2261
2260
|
/**
|
|
2262
2261
|
* Forbid unnecessary path segments in import and require statements.
|
|
2263
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
2262
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.0/docs/rules/no-useless-path-segments.md
|
|
2264
2263
|
*/
|
|
2265
2264
|
'import-x/no-useless-path-segments'?: Linter.RuleEntry<ImportXNoUselessPathSegments>
|
|
2266
2265
|
/**
|
|
2267
2266
|
* Forbid webpack loader syntax in imports.
|
|
2268
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
2267
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.0/docs/rules/no-webpack-loader-syntax.md
|
|
2269
2268
|
*/
|
|
2270
2269
|
'import-x/no-webpack-loader-syntax'?: Linter.RuleEntry<[]>
|
|
2271
2270
|
/**
|
|
2272
2271
|
* Enforce a convention in module import order.
|
|
2273
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
2272
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.0/docs/rules/order.md
|
|
2274
2273
|
*/
|
|
2275
2274
|
'import-x/order'?: Linter.RuleEntry<ImportXOrder>
|
|
2276
2275
|
/**
|
|
2277
2276
|
* Prefer a default export if module exports a single name or multiple names.
|
|
2278
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
2277
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.0/docs/rules/prefer-default-export.md
|
|
2279
2278
|
*/
|
|
2280
2279
|
'import-x/prefer-default-export'?: Linter.RuleEntry<ImportXPreferDefaultExport>
|
|
2281
2280
|
/**
|
|
2282
2281
|
* Forbid potentially ambiguous parse goal (`script` vs. `module`).
|
|
2283
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
2282
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.0/docs/rules/unambiguous.md
|
|
2284
2283
|
*/
|
|
2285
2284
|
'import-x/unambiguous'?: Linter.RuleEntry<[]>
|
|
2286
2285
|
/**
|
|
@@ -2860,30 +2859,37 @@ interface RuleOptions {
|
|
|
2860
2859
|
'logical-assignment-operators'?: Linter.RuleEntry<LogicalAssignmentOperators>
|
|
2861
2860
|
/**
|
|
2862
2861
|
* Require languages for fenced code blocks
|
|
2862
|
+
* @see https://github.com/eslint/markdown/blob/main/docs/rules/fenced-code-language.md
|
|
2863
2863
|
*/
|
|
2864
2864
|
'markdown/fenced-code-language'?: Linter.RuleEntry<MarkdownFencedCodeLanguage>
|
|
2865
2865
|
/**
|
|
2866
2866
|
* Enforce heading levels increment by one
|
|
2867
|
+
* @see https://github.com/eslint/markdown/blob/main/docs/rules/heading-increment.md
|
|
2867
2868
|
*/
|
|
2868
2869
|
'markdown/heading-increment'?: Linter.RuleEntry<[]>
|
|
2869
2870
|
/**
|
|
2870
2871
|
* Disallow duplicate headings in the same document
|
|
2872
|
+
* @see https://github.com/eslint/markdown/blob/main/docs/rules/no-duplicate-headings.md
|
|
2871
2873
|
*/
|
|
2872
2874
|
'markdown/no-duplicate-headings'?: Linter.RuleEntry<[]>
|
|
2873
2875
|
/**
|
|
2874
2876
|
* Disallow empty links
|
|
2877
|
+
* @see https://github.com/eslint/markdown/blob/main/docs/rules/no-empty-links.md
|
|
2875
2878
|
*/
|
|
2876
2879
|
'markdown/no-empty-links'?: Linter.RuleEntry<[]>
|
|
2877
2880
|
/**
|
|
2878
2881
|
* Disallow HTML tags
|
|
2882
|
+
* @see https://github.com/eslint/markdown/blob/main/docs/rules/no-html.md
|
|
2879
2883
|
*/
|
|
2880
2884
|
'markdown/no-html'?: Linter.RuleEntry<MarkdownNoHtml>
|
|
2881
2885
|
/**
|
|
2882
2886
|
* Disallow invalid label references
|
|
2887
|
+
* @see https://github.com/eslint/markdown/blob/main/docs/rules/no-invalid-label-refs.md
|
|
2883
2888
|
*/
|
|
2884
2889
|
'markdown/no-invalid-label-refs'?: Linter.RuleEntry<[]>
|
|
2885
2890
|
/**
|
|
2886
2891
|
* Disallow missing label references
|
|
2892
|
+
* @see https://github.com/eslint/markdown/blob/main/docs/rules/no-missing-label-refs.md
|
|
2887
2893
|
*/
|
|
2888
2894
|
'markdown/no-missing-label-refs'?: Linter.RuleEntry<[]>
|
|
2889
2895
|
/**
|
|
@@ -5828,6 +5834,11 @@ interface RuleOptions {
|
|
|
5828
5834
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-comparison-matcher.md
|
|
5829
5835
|
*/
|
|
5830
5836
|
'vitest/prefer-comparison-matcher'?: Linter.RuleEntry<[]>
|
|
5837
|
+
/**
|
|
5838
|
+
* enforce using a function as a describe title over an equivalent string
|
|
5839
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-describe-function-title.md
|
|
5840
|
+
*/
|
|
5841
|
+
'vitest/prefer-describe-function-title'?: Linter.RuleEntry<[]>
|
|
5831
5842
|
/**
|
|
5832
5843
|
* enforce using `each` rather than manual loops
|
|
5833
5844
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-each.md
|
|
@@ -8191,6 +8202,8 @@ type TypescriptEslintNoUnnecessaryCondition = []|[{
|
|
|
8191
8202
|
// ----- @typescript-eslint/no-unnecessary-type-assertion -----
|
|
8192
8203
|
type TypescriptEslintNoUnnecessaryTypeAssertion = []|[{
|
|
8193
8204
|
|
|
8205
|
+
checkLiteralConstAssertions?: boolean
|
|
8206
|
+
|
|
8194
8207
|
typesToIgnore?: string[]
|
|
8195
8208
|
}]
|
|
8196
8209
|
// ----- @typescript-eslint/no-unused-expressions -----
|
|
@@ -8662,6 +8675,8 @@ type CapitalizedComments = []|[("always" | "never")]|[("always" | "never"), ({
|
|
|
8662
8675
|
type ClassMethodsUseThis = []|[{
|
|
8663
8676
|
exceptMethods?: string[]
|
|
8664
8677
|
enforceForClassFields?: boolean
|
|
8678
|
+
ignoreOverrideMethods?: boolean
|
|
8679
|
+
ignoreClassesWithImplements?: ("all" | "public-fields")
|
|
8665
8680
|
}]
|
|
8666
8681
|
// ----- comma-dangle -----
|
|
8667
8682
|
type CommaDangle = []|[(_CommaDangleValue | {
|
|
@@ -10483,7 +10498,7 @@ type NoEmpty = []|[{
|
|
|
10483
10498
|
}]
|
|
10484
10499
|
// ----- no-empty-function -----
|
|
10485
10500
|
type NoEmptyFunction = []|[{
|
|
10486
|
-
allow?: ("functions" | "arrowFunctions" | "generatorFunctions" | "methods" | "generatorMethods" | "getters" | "setters" | "constructors" | "asyncFunctions" | "asyncMethods")[]
|
|
10501
|
+
allow?: ("functions" | "arrowFunctions" | "generatorFunctions" | "methods" | "generatorMethods" | "getters" | "setters" | "constructors" | "asyncFunctions" | "asyncMethods" | "privateConstructors" | "protectedConstructors" | "decoratedFunctions" | "overrideMethods")[]
|
|
10487
10502
|
}]
|
|
10488
10503
|
// ----- no-empty-pattern -----
|
|
10489
10504
|
type NoEmptyPattern = []|[{
|
|
@@ -10692,13 +10707,9 @@ type NoRestrictedModules = ((string | {
|
|
|
10692
10707
|
}[])
|
|
10693
10708
|
// ----- no-restricted-properties -----
|
|
10694
10709
|
type NoRestrictedProperties = ({
|
|
10695
|
-
|
|
10696
|
-
property?: string
|
|
10697
|
-
message?: string
|
|
10710
|
+
[k: string]: unknown | undefined
|
|
10698
10711
|
} | {
|
|
10699
|
-
|
|
10700
|
-
property: string
|
|
10701
|
-
message?: string
|
|
10712
|
+
[k: string]: unknown | undefined
|
|
10702
10713
|
})[]
|
|
10703
10714
|
// ----- no-restricted-syntax -----
|
|
10704
10715
|
type NoRestrictedSyntax = (string | {
|
|
@@ -11674,7 +11685,7 @@ type PerfectionistSortEnums = []|[{
|
|
|
11674
11685
|
})[]
|
|
11675
11686
|
}]
|
|
11676
11687
|
// ----- perfectionist/sort-exports -----
|
|
11677
|
-
type PerfectionistSortExports =
|
|
11688
|
+
type PerfectionistSortExports = {
|
|
11678
11689
|
|
|
11679
11690
|
fallbackSort?: {
|
|
11680
11691
|
|
|
@@ -11698,6 +11709,68 @@ type PerfectionistSortExports = []|[{
|
|
|
11698
11709
|
|
|
11699
11710
|
groupKind?: ("mixed" | "values-first" | "types-first")
|
|
11700
11711
|
|
|
11712
|
+
customGroups?: ({
|
|
11713
|
+
|
|
11714
|
+
newlinesInside?: ("always" | "never")
|
|
11715
|
+
|
|
11716
|
+
fallbackSort?: {
|
|
11717
|
+
|
|
11718
|
+
order?: ("asc" | "desc")
|
|
11719
|
+
|
|
11720
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
11721
|
+
[k: string]: unknown | undefined
|
|
11722
|
+
}
|
|
11723
|
+
|
|
11724
|
+
groupName?: string
|
|
11725
|
+
|
|
11726
|
+
order?: ("asc" | "desc")
|
|
11727
|
+
|
|
11728
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
11729
|
+
anyOf?: {
|
|
11730
|
+
|
|
11731
|
+
modifiers?: ("value" | "type")[]
|
|
11732
|
+
|
|
11733
|
+
selector?: "export"
|
|
11734
|
+
|
|
11735
|
+
elementNamePattern?: (({
|
|
11736
|
+
pattern?: string
|
|
11737
|
+
flags?: string
|
|
11738
|
+
} | string)[] | ({
|
|
11739
|
+
pattern?: string
|
|
11740
|
+
flags?: string
|
|
11741
|
+
} | string))
|
|
11742
|
+
}[]
|
|
11743
|
+
} | {
|
|
11744
|
+
|
|
11745
|
+
newlinesInside?: ("always" | "never")
|
|
11746
|
+
|
|
11747
|
+
fallbackSort?: {
|
|
11748
|
+
|
|
11749
|
+
order?: ("asc" | "desc")
|
|
11750
|
+
|
|
11751
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
11752
|
+
[k: string]: unknown | undefined
|
|
11753
|
+
}
|
|
11754
|
+
|
|
11755
|
+
groupName?: string
|
|
11756
|
+
|
|
11757
|
+
order?: ("asc" | "desc")
|
|
11758
|
+
|
|
11759
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
11760
|
+
|
|
11761
|
+
modifiers?: ("value" | "type")[]
|
|
11762
|
+
|
|
11763
|
+
selector?: "export"
|
|
11764
|
+
|
|
11765
|
+
elementNamePattern?: (({
|
|
11766
|
+
pattern?: string
|
|
11767
|
+
flags?: string
|
|
11768
|
+
} | string)[] | ({
|
|
11769
|
+
pattern?: string
|
|
11770
|
+
flags?: string
|
|
11771
|
+
} | string))
|
|
11772
|
+
})[]
|
|
11773
|
+
|
|
11701
11774
|
partitionByComment?: (boolean | (({
|
|
11702
11775
|
pattern?: string
|
|
11703
11776
|
flags?: string
|
|
@@ -11722,42 +11795,16 @@ type PerfectionistSortExports = []|[{
|
|
|
11722
11795
|
})
|
|
11723
11796
|
|
|
11724
11797
|
partitionByNewLine?: boolean
|
|
11725
|
-
}]
|
|
11726
|
-
// ----- perfectionist/sort-heritage-clauses -----
|
|
11727
|
-
type PerfectionistSortHeritageClauses = []|[{
|
|
11728
11798
|
|
|
11729
|
-
|
|
11730
|
-
|
|
11731
|
-
order?: ("asc" | "desc")
|
|
11732
|
-
|
|
11733
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
11734
|
-
[k: string]: unknown | undefined
|
|
11735
|
-
}
|
|
11736
|
-
|
|
11737
|
-
specialCharacters?: ("remove" | "trim" | "keep")
|
|
11738
|
-
|
|
11739
|
-
ignoreCase?: boolean
|
|
11740
|
-
|
|
11741
|
-
alphabet?: string
|
|
11742
|
-
|
|
11743
|
-
locales?: (string | string[])
|
|
11744
|
-
|
|
11745
|
-
order?: ("asc" | "desc")
|
|
11746
|
-
|
|
11747
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
11748
|
-
|
|
11749
|
-
customGroups?: {
|
|
11750
|
-
[k: string]: (string | string[]) | undefined
|
|
11751
|
-
}
|
|
11799
|
+
newlinesBetween?: ("ignore" | "always" | "never")
|
|
11752
11800
|
|
|
11753
11801
|
groups?: (string | string[] | {
|
|
11754
11802
|
|
|
11755
11803
|
newlinesBetween?: ("ignore" | "always" | "never")
|
|
11756
11804
|
})[]
|
|
11757
|
-
}]
|
|
11758
|
-
// ----- perfectionist/sort-
|
|
11759
|
-
type
|
|
11760
|
-
type _PerfectionistSortImportsSortImports = (_PerfectionistSortImportsMaxLineLengthRequiresLineLengthType & {
|
|
11805
|
+
}[]
|
|
11806
|
+
// ----- perfectionist/sort-heritage-clauses -----
|
|
11807
|
+
type PerfectionistSortHeritageClauses = []|[{
|
|
11761
11808
|
|
|
11762
11809
|
fallbackSort?: {
|
|
11763
11810
|
|
|
@@ -11780,67 +11827,19 @@ type _PerfectionistSortImportsSortImports = (_PerfectionistSortImportsMaxLineLen
|
|
|
11780
11827
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
11781
11828
|
|
|
11782
11829
|
customGroups?: {
|
|
11783
|
-
|
|
11784
|
-
value?: {
|
|
11785
|
-
[k: string]: unknown | undefined
|
|
11786
|
-
}
|
|
11787
|
-
|
|
11788
|
-
type?: {
|
|
11789
|
-
[k: string]: unknown | undefined
|
|
11790
|
-
}
|
|
11830
|
+
[k: string]: (string | string[]) | undefined
|
|
11791
11831
|
}
|
|
11792
11832
|
|
|
11793
|
-
maxLineLength?: number
|
|
11794
|
-
|
|
11795
|
-
sortSideEffects?: boolean
|
|
11796
|
-
|
|
11797
|
-
environment?: ("node" | "bun")
|
|
11798
|
-
|
|
11799
|
-
tsconfigRootDir?: string
|
|
11800
|
-
|
|
11801
|
-
partitionByComment?: (boolean | (({
|
|
11802
|
-
pattern?: string
|
|
11803
|
-
flags?: string
|
|
11804
|
-
} | string)[] | ({
|
|
11805
|
-
pattern?: string
|
|
11806
|
-
flags?: string
|
|
11807
|
-
} | string)) | {
|
|
11808
|
-
block?: (boolean | (({
|
|
11809
|
-
pattern?: string
|
|
11810
|
-
flags?: string
|
|
11811
|
-
} | string)[] | ({
|
|
11812
|
-
pattern?: string
|
|
11813
|
-
flags?: string
|
|
11814
|
-
} | string)))
|
|
11815
|
-
line?: (boolean | (({
|
|
11816
|
-
pattern?: string
|
|
11817
|
-
flags?: string
|
|
11818
|
-
} | string)[] | ({
|
|
11819
|
-
pattern?: string
|
|
11820
|
-
flags?: string
|
|
11821
|
-
} | string)))
|
|
11822
|
-
})
|
|
11823
|
-
|
|
11824
|
-
partitionByNewLine?: boolean
|
|
11825
|
-
|
|
11826
|
-
newlinesBetween?: ("ignore" | "always" | "never")
|
|
11827
|
-
|
|
11828
|
-
internalPattern?: (({
|
|
11829
|
-
pattern?: string
|
|
11830
|
-
flags?: string
|
|
11831
|
-
} | string)[] | ({
|
|
11832
|
-
pattern?: string
|
|
11833
|
-
flags?: string
|
|
11834
|
-
} | string))
|
|
11835
|
-
|
|
11836
11833
|
groups?: (string | string[] | {
|
|
11837
11834
|
|
|
11838
11835
|
newlinesBetween?: ("ignore" | "always" | "never")
|
|
11839
11836
|
})[]
|
|
11840
|
-
}
|
|
11837
|
+
}]
|
|
11838
|
+
// ----- perfectionist/sort-imports -----
|
|
11841
11839
|
type _PerfectionistSortImportsMaxLineLengthRequiresLineLengthType = ({
|
|
11842
11840
|
[k: string]: unknown | undefined
|
|
11843
11841
|
} | _PerfectionistSortImports_IsLineLength)
|
|
11842
|
+
type _PerfectionistSortImportsSortImports = _PerfectionistSortImportsMaxLineLengthRequiresLineLengthType[]
|
|
11844
11843
|
interface _PerfectionistSortImports_IsLineLength {
|
|
11845
11844
|
type: "line-length"
|
|
11846
11845
|
[k: string]: unknown | undefined
|
|
@@ -11950,6 +11949,8 @@ type PerfectionistSortInterfaces = {
|
|
|
11950
11949
|
} | string))
|
|
11951
11950
|
sortBy?: ("name" | "value")
|
|
11952
11951
|
})[])
|
|
11952
|
+
|
|
11953
|
+
groupKind?: ("mixed" | "required-first" | "optional-first")
|
|
11953
11954
|
useConfigurationIf?: {
|
|
11954
11955
|
|
|
11955
11956
|
allNamesMatchPattern?: (({
|
|
@@ -11969,8 +11970,6 @@ type PerfectionistSortInterfaces = {
|
|
|
11969
11970
|
} | string))
|
|
11970
11971
|
}
|
|
11971
11972
|
|
|
11972
|
-
groupKind?: ("mixed" | "required-first" | "optional-first")
|
|
11973
|
-
|
|
11974
11973
|
partitionByComment?: (boolean | (({
|
|
11975
11974
|
pattern?: string
|
|
11976
11975
|
flags?: string
|
|
@@ -12089,6 +12088,85 @@ type PerfectionistSortJsxProps = {
|
|
|
12089
12088
|
order?: ("asc" | "desc")
|
|
12090
12089
|
|
|
12091
12090
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
12091
|
+
customGroups?: ({
|
|
12092
|
+
[k: string]: (string | string[]) | undefined
|
|
12093
|
+
} | ({
|
|
12094
|
+
|
|
12095
|
+
newlinesInside?: ("always" | "never")
|
|
12096
|
+
|
|
12097
|
+
fallbackSort?: {
|
|
12098
|
+
|
|
12099
|
+
order?: ("asc" | "desc")
|
|
12100
|
+
|
|
12101
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
12102
|
+
[k: string]: unknown | undefined
|
|
12103
|
+
}
|
|
12104
|
+
|
|
12105
|
+
groupName?: string
|
|
12106
|
+
|
|
12107
|
+
order?: ("asc" | "desc")
|
|
12108
|
+
|
|
12109
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
12110
|
+
anyOf?: {
|
|
12111
|
+
|
|
12112
|
+
modifiers?: ("shorthand" | "multiline")[]
|
|
12113
|
+
|
|
12114
|
+
selector?: ("multiline" | "prop" | "shorthand")
|
|
12115
|
+
|
|
12116
|
+
elementValuePattern?: (({
|
|
12117
|
+
pattern?: string
|
|
12118
|
+
flags?: string
|
|
12119
|
+
} | string)[] | ({
|
|
12120
|
+
pattern?: string
|
|
12121
|
+
flags?: string
|
|
12122
|
+
} | string))
|
|
12123
|
+
|
|
12124
|
+
elementNamePattern?: (({
|
|
12125
|
+
pattern?: string
|
|
12126
|
+
flags?: string
|
|
12127
|
+
} | string)[] | ({
|
|
12128
|
+
pattern?: string
|
|
12129
|
+
flags?: string
|
|
12130
|
+
} | string))
|
|
12131
|
+
}[]
|
|
12132
|
+
} | {
|
|
12133
|
+
|
|
12134
|
+
newlinesInside?: ("always" | "never")
|
|
12135
|
+
|
|
12136
|
+
fallbackSort?: {
|
|
12137
|
+
|
|
12138
|
+
order?: ("asc" | "desc")
|
|
12139
|
+
|
|
12140
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
12141
|
+
[k: string]: unknown | undefined
|
|
12142
|
+
}
|
|
12143
|
+
|
|
12144
|
+
groupName?: string
|
|
12145
|
+
|
|
12146
|
+
order?: ("asc" | "desc")
|
|
12147
|
+
|
|
12148
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
12149
|
+
|
|
12150
|
+
modifiers?: ("shorthand" | "multiline")[]
|
|
12151
|
+
|
|
12152
|
+
selector?: ("multiline" | "prop" | "shorthand")
|
|
12153
|
+
|
|
12154
|
+
elementValuePattern?: (({
|
|
12155
|
+
pattern?: string
|
|
12156
|
+
flags?: string
|
|
12157
|
+
} | string)[] | ({
|
|
12158
|
+
pattern?: string
|
|
12159
|
+
flags?: string
|
|
12160
|
+
} | string))
|
|
12161
|
+
|
|
12162
|
+
elementNamePattern?: (({
|
|
12163
|
+
pattern?: string
|
|
12164
|
+
flags?: string
|
|
12165
|
+
} | string)[] | ({
|
|
12166
|
+
pattern?: string
|
|
12167
|
+
flags?: string
|
|
12168
|
+
} | string))
|
|
12169
|
+
})[])
|
|
12092
12170
|
useConfigurationIf?: {
|
|
12093
12171
|
|
|
12094
12172
|
allNamesMatchPattern?: (({
|
|
@@ -12112,10 +12190,6 @@ type PerfectionistSortJsxProps = {
|
|
|
12112
12190
|
|
|
12113
12191
|
newlinesBetween?: ("ignore" | "always" | "never")
|
|
12114
12192
|
|
|
12115
|
-
customGroups?: {
|
|
12116
|
-
[k: string]: (string | string[]) | undefined
|
|
12117
|
-
}
|
|
12118
|
-
|
|
12119
12193
|
ignorePattern?: (({
|
|
12120
12194
|
pattern?: string
|
|
12121
12195
|
flags?: string
|
|
@@ -12382,7 +12456,7 @@ type PerfectionistSortModules = []|[{
|
|
|
12382
12456
|
})[]
|
|
12383
12457
|
}]
|
|
12384
12458
|
// ----- perfectionist/sort-named-exports -----
|
|
12385
|
-
type PerfectionistSortNamedExports =
|
|
12459
|
+
type PerfectionistSortNamedExports = {
|
|
12386
12460
|
|
|
12387
12461
|
fallbackSort?: {
|
|
12388
12462
|
|
|
@@ -12408,6 +12482,68 @@ type PerfectionistSortNamedExports = []|[{
|
|
|
12408
12482
|
|
|
12409
12483
|
ignoreAlias?: boolean
|
|
12410
12484
|
|
|
12485
|
+
customGroups?: ({
|
|
12486
|
+
|
|
12487
|
+
newlinesInside?: ("always" | "never")
|
|
12488
|
+
|
|
12489
|
+
fallbackSort?: {
|
|
12490
|
+
|
|
12491
|
+
order?: ("asc" | "desc")
|
|
12492
|
+
|
|
12493
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
12494
|
+
[k: string]: unknown | undefined
|
|
12495
|
+
}
|
|
12496
|
+
|
|
12497
|
+
groupName?: string
|
|
12498
|
+
|
|
12499
|
+
order?: ("asc" | "desc")
|
|
12500
|
+
|
|
12501
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
12502
|
+
anyOf?: {
|
|
12503
|
+
|
|
12504
|
+
modifiers?: ("value" | "type")[]
|
|
12505
|
+
|
|
12506
|
+
selector?: "export"
|
|
12507
|
+
|
|
12508
|
+
elementNamePattern?: (({
|
|
12509
|
+
pattern?: string
|
|
12510
|
+
flags?: string
|
|
12511
|
+
} | string)[] | ({
|
|
12512
|
+
pattern?: string
|
|
12513
|
+
flags?: string
|
|
12514
|
+
} | string))
|
|
12515
|
+
}[]
|
|
12516
|
+
} | {
|
|
12517
|
+
|
|
12518
|
+
newlinesInside?: ("always" | "never")
|
|
12519
|
+
|
|
12520
|
+
fallbackSort?: {
|
|
12521
|
+
|
|
12522
|
+
order?: ("asc" | "desc")
|
|
12523
|
+
|
|
12524
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
12525
|
+
[k: string]: unknown | undefined
|
|
12526
|
+
}
|
|
12527
|
+
|
|
12528
|
+
groupName?: string
|
|
12529
|
+
|
|
12530
|
+
order?: ("asc" | "desc")
|
|
12531
|
+
|
|
12532
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
12533
|
+
|
|
12534
|
+
modifiers?: ("value" | "type")[]
|
|
12535
|
+
|
|
12536
|
+
selector?: "export"
|
|
12537
|
+
|
|
12538
|
+
elementNamePattern?: (({
|
|
12539
|
+
pattern?: string
|
|
12540
|
+
flags?: string
|
|
12541
|
+
} | string)[] | ({
|
|
12542
|
+
pattern?: string
|
|
12543
|
+
flags?: string
|
|
12544
|
+
} | string))
|
|
12545
|
+
})[]
|
|
12546
|
+
|
|
12411
12547
|
partitionByComment?: (boolean | (({
|
|
12412
12548
|
pattern?: string
|
|
12413
12549
|
flags?: string
|
|
@@ -12432,9 +12568,16 @@ type PerfectionistSortNamedExports = []|[{
|
|
|
12432
12568
|
})
|
|
12433
12569
|
|
|
12434
12570
|
partitionByNewLine?: boolean
|
|
12435
|
-
|
|
12571
|
+
|
|
12572
|
+
newlinesBetween?: ("ignore" | "always" | "never")
|
|
12573
|
+
|
|
12574
|
+
groups?: (string | string[] | {
|
|
12575
|
+
|
|
12576
|
+
newlinesBetween?: ("ignore" | "always" | "never")
|
|
12577
|
+
})[]
|
|
12578
|
+
}[]
|
|
12436
12579
|
// ----- perfectionist/sort-named-imports -----
|
|
12437
|
-
type PerfectionistSortNamedImports =
|
|
12580
|
+
type PerfectionistSortNamedImports = {
|
|
12438
12581
|
|
|
12439
12582
|
fallbackSort?: {
|
|
12440
12583
|
|
|
@@ -12460,6 +12603,68 @@ type PerfectionistSortNamedImports = []|[{
|
|
|
12460
12603
|
|
|
12461
12604
|
ignoreAlias?: boolean
|
|
12462
12605
|
|
|
12606
|
+
customGroups?: ({
|
|
12607
|
+
|
|
12608
|
+
newlinesInside?: ("always" | "never")
|
|
12609
|
+
|
|
12610
|
+
fallbackSort?: {
|
|
12611
|
+
|
|
12612
|
+
order?: ("asc" | "desc")
|
|
12613
|
+
|
|
12614
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
12615
|
+
[k: string]: unknown | undefined
|
|
12616
|
+
}
|
|
12617
|
+
|
|
12618
|
+
groupName?: string
|
|
12619
|
+
|
|
12620
|
+
order?: ("asc" | "desc")
|
|
12621
|
+
|
|
12622
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
12623
|
+
anyOf?: {
|
|
12624
|
+
|
|
12625
|
+
modifiers?: ("value" | "type")[]
|
|
12626
|
+
|
|
12627
|
+
selector?: "import"
|
|
12628
|
+
|
|
12629
|
+
elementNamePattern?: (({
|
|
12630
|
+
pattern?: string
|
|
12631
|
+
flags?: string
|
|
12632
|
+
} | string)[] | ({
|
|
12633
|
+
pattern?: string
|
|
12634
|
+
flags?: string
|
|
12635
|
+
} | string))
|
|
12636
|
+
}[]
|
|
12637
|
+
} | {
|
|
12638
|
+
|
|
12639
|
+
newlinesInside?: ("always" | "never")
|
|
12640
|
+
|
|
12641
|
+
fallbackSort?: {
|
|
12642
|
+
|
|
12643
|
+
order?: ("asc" | "desc")
|
|
12644
|
+
|
|
12645
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
12646
|
+
[k: string]: unknown | undefined
|
|
12647
|
+
}
|
|
12648
|
+
|
|
12649
|
+
groupName?: string
|
|
12650
|
+
|
|
12651
|
+
order?: ("asc" | "desc")
|
|
12652
|
+
|
|
12653
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
12654
|
+
|
|
12655
|
+
modifiers?: ("value" | "type")[]
|
|
12656
|
+
|
|
12657
|
+
selector?: "import"
|
|
12658
|
+
|
|
12659
|
+
elementNamePattern?: (({
|
|
12660
|
+
pattern?: string
|
|
12661
|
+
flags?: string
|
|
12662
|
+
} | string)[] | ({
|
|
12663
|
+
pattern?: string
|
|
12664
|
+
flags?: string
|
|
12665
|
+
} | string))
|
|
12666
|
+
})[]
|
|
12667
|
+
|
|
12463
12668
|
partitionByComment?: (boolean | (({
|
|
12464
12669
|
pattern?: string
|
|
12465
12670
|
flags?: string
|
|
@@ -12484,7 +12689,14 @@ type PerfectionistSortNamedImports = []|[{
|
|
|
12484
12689
|
})
|
|
12485
12690
|
|
|
12486
12691
|
partitionByNewLine?: boolean
|
|
12487
|
-
|
|
12692
|
+
|
|
12693
|
+
newlinesBetween?: ("ignore" | "always" | "never")
|
|
12694
|
+
|
|
12695
|
+
groups?: (string | string[] | {
|
|
12696
|
+
|
|
12697
|
+
newlinesBetween?: ("ignore" | "always" | "never")
|
|
12698
|
+
})[]
|
|
12699
|
+
}[]
|
|
12488
12700
|
// ----- perfectionist/sort-object-types -----
|
|
12489
12701
|
type PerfectionistSortObjectTypes = {
|
|
12490
12702
|
|
|
@@ -12590,6 +12802,8 @@ type PerfectionistSortObjectTypes = {
|
|
|
12590
12802
|
} | string))
|
|
12591
12803
|
sortBy?: ("name" | "value")
|
|
12592
12804
|
})[])
|
|
12805
|
+
|
|
12806
|
+
groupKind?: ("mixed" | "required-first" | "optional-first")
|
|
12593
12807
|
useConfigurationIf?: {
|
|
12594
12808
|
|
|
12595
12809
|
allNamesMatchPattern?: (({
|
|
@@ -12609,8 +12823,6 @@ type PerfectionistSortObjectTypes = {
|
|
|
12609
12823
|
} | string))
|
|
12610
12824
|
}
|
|
12611
12825
|
|
|
12612
|
-
groupKind?: ("mixed" | "required-first" | "optional-first")
|
|
12613
|
-
|
|
12614
12826
|
partitionByComment?: (boolean | (({
|
|
12615
12827
|
pattern?: string
|
|
12616
12828
|
flags?: string
|
|
@@ -15621,6 +15833,7 @@ type YmlFlowSequenceBracketSpacing = []|[("always" | "never")]|[("always" | "nev
|
|
|
15621
15833
|
type YmlIndent = []|[number]|[number, {
|
|
15622
15834
|
indentBlockSequences?: boolean
|
|
15623
15835
|
indicatorValueIndent?: number
|
|
15836
|
+
alignMultilineFlowScalars?: boolean
|
|
15624
15837
|
}]
|
|
15625
15838
|
// ----- yml/key-name-casing -----
|
|
15626
15839
|
type YmlKeyNameCasing = []|[{
|
|
@@ -16047,7 +16260,10 @@ declare const meta: {
|
|
|
16047
16260
|
declare const index_d_meta: typeof meta;
|
|
16048
16261
|
declare const index_d_parseForESLint: typeof parseForESLint;
|
|
16049
16262
|
declare namespace index_d {
|
|
16050
|
-
export {
|
|
16263
|
+
export {
|
|
16264
|
+
index_d_meta as meta,
|
|
16265
|
+
index_d_parseForESLint as parseForESLint,
|
|
16266
|
+
};
|
|
16051
16267
|
}
|
|
16052
16268
|
|
|
16053
16269
|
/**
|
|
@@ -16108,6 +16324,24 @@ declare const PERFECTIONIST_SORT_INTERSECTION_TYPES_OR_UNION_TYPES_GROUPS: strin
|
|
|
16108
16324
|
* @see {@link https://perfectionist.dev/rules/sort-imports}
|
|
16109
16325
|
*/
|
|
16110
16326
|
declare const PERFECTIONIST_SORT_IMPORTS_GROUPS: string[];
|
|
16327
|
+
/**
|
|
16328
|
+
* Shared option `groups` for rule `sort-exports`
|
|
16329
|
+
*
|
|
16330
|
+
* @see {@link https://perfectionist.dev/rules/sort-exports}
|
|
16331
|
+
*/
|
|
16332
|
+
declare const PERFECTIONIST_SORT_EXPORTS_GROUPS: string[];
|
|
16333
|
+
/**
|
|
16334
|
+
* Shared option `groups` for rule `sort-named-exports`
|
|
16335
|
+
*
|
|
16336
|
+
* @see {@link https://perfectionist.dev/rules/sort-named-exports}
|
|
16337
|
+
*/
|
|
16338
|
+
declare const PERFECTIONIST_SORT_NAMED_EXPORTS_GROUPS: string[];
|
|
16339
|
+
/**
|
|
16340
|
+
* Shared option `groups` for rule `sort-named-imports`
|
|
16341
|
+
*
|
|
16342
|
+
* @see {@link https://perfectionist.dev/rules/sort-named-imports}
|
|
16343
|
+
*/
|
|
16344
|
+
declare const PERFECTIONIST_SORT_NAMED_IMPORTS_GROUPS: string[];
|
|
16111
16345
|
/**
|
|
16112
16346
|
* Shared option `groups` for rule `sort-classes`
|
|
16113
16347
|
*
|
|
@@ -16117,4 +16351,5 @@ declare const PERFECTIONIST_SORT_IMPORTS_GROUPS: string[];
|
|
|
16117
16351
|
*/
|
|
16118
16352
|
declare const PERFECTIONIST_SORT_CLASSES_GROUPS: string[];
|
|
16119
16353
|
|
|
16120
|
-
export {
|
|
16354
|
+
export { GLOB_ALL_SRC, GLOB_ASTRO, GLOB_ASTRO_TS, GLOB_CSS, GLOB_DIST, GLOB_DTS, GLOB_EXCLUDE, GLOB_GITHUB_ACTION, GLOB_HTML, GLOB_JS, GLOB_JSON, GLOB_JSON5, GLOB_JSONC, GLOB_JSON_SCHEMA, GLOB_JSX, GLOB_JSX_ONLY, GLOB_LESS, GLOB_LOCKFILE, GLOB_MARKDOWN, GLOB_MARKDOWN_CODE, GLOB_MARKDOWN_NESTED, GLOB_NODE_MODULES, GLOB_PACKAGE_JSON, GLOB_PINIA_STORE, GLOB_PNPM_WORKSPACE_YAML, GLOB_POSTCSS, GLOB_SCSS, GLOB_SRC, GLOB_SRC_EXT, GLOB_STYLE, GLOB_SVELTE, GLOB_SVG, GLOB_TEST, GLOB_TOML, GLOB_TS, GLOB_TSCONFIG_JSON, GLOB_TSX, GLOB_TSX_ONLY, GLOB_TYPES, GLOB_TYPE_TEST, GLOB_VUE, GLOB_YAML, PERFECTIONIST_COMMON_RULE_OPTIONS, PERFECTIONIST_EXTRA_RULE_OPTIONS, PERFECTIONIST_SORT_CLASSES_GROUPS, PERFECTIONIST_SORT_EXPORTS_GROUPS, PERFECTIONIST_SORT_IMPORTS_GROUPS, PERFECTIONIST_SORT_INTERFACES_OR_OBJECT_TYPES_GROUPS, PERFECTIONIST_SORT_INTERSECTION_TYPES_OR_UNION_TYPES_GROUPS, PERFECTIONIST_SORT_NAMED_EXPORTS_GROUPS, PERFECTIONIST_SORT_NAMED_IMPORTS_GROUPS, PERFECTIONIST_SORT_OBJECTS_GROUPS, PRETTIER_DEFAULT_OPTIONS, combineConfigs, configAntfu, configCommand, configDeMorgan, configDepend, configESLintComments, configESLintPlugin, configFormat, configGitHubAction, configGitIgnore, configIgnores, configImportX, configJSX, configJavaScript, configJsdoc, configJsonc, configMarkdown, configNode, configNtnyq, configPerfectionist, configPinia, configPnpm, configPrettier, configRegexp, configSVGO, configSort, configSpecials, configTest, configToml, configTypeScript, configUnicorn, configUnoCSS, configUnusedImports, configVue, configYml, defineESLintConfig, ensurePackages, getOverrides, hasPinia, hasShadcnVue, hasTypeScript, hasUnoCSS, hasVitest, hasVue, interopDefault, isInGitHooksOrRunBySpecifyPackages, mergePrettierOptions, index_d as parserPlain, resolveSubOptions };
|
|
16355
|
+
export type { AccessorPairs, AntfuConsistentChaining, AntfuConsistentListNewline, AntfuIndentUnindent, ArrayBracketNewline, ArrayBracketSpacing, ArrayCallbackReturn, ArrayElementNewline, Arrayable, ArrowBodyStyle, ArrowParens, ArrowSpacing, Awaitable, BlockSpacing, BraceStyle, CallbackReturn, Camelcase, CapitalizedComments, ClassMethodsUseThis, CommaDangle, CommaSpacing, CommaStyle, Complexity, ComputedPropertySpacing, ConfigAntfuOptions, ConfigCommandOptions, ConfigDeMorganOptions, ConfigDependOptions, ConfigESLintCommentsOptions, ConfigESLintPluginOptions, ConfigFormatOptions, ConfigGitHubActionOptions, ConfigGitIgnoreOptions, ConfigIgnoresOptions, ConfigImportXOptions, ConfigJavaScriptOptions, ConfigJsdocOptions, ConfigJsoncOptions, ConfigMarkdownOptions, ConfigNames, ConfigNodeOptions, ConfigNtnyqOptions, ConfigOptions, ConfigOptionsInternal, ConfigPerfectionistOptions, ConfigPiniaOptions, ConfigPnpmOptions, ConfigPrettierOptions, ConfigRegexpOptions, ConfigSVGOOptions, ConfigSortOptions, ConfigSpecialsOptions, ConfigTestOptions, ConfigTomlOptions, ConfigTypeScriptOptions, ConfigUnicornOptions, ConfigUnoCSSOptions, ConfigUnusedImportsOptions, ConfigVueOptions, ConfigYmlOptions, ConsistentReturn, ConsistentThis, Curly, DefaultCase, DependBanDependencies, DotLocation, DotNotation, ESLintConfig, ESLintParser, ESLintParserOptions, ESLintProcessor, ESLintRuleSeverity, ESLintRulesRecord, EolLast, Eqeqeq, EslintCommunityEslintCommentsDisableEnablePair, EslintCommunityEslintCommentsNoRestrictedDisable, EslintCommunityEslintCommentsNoUse, EslintCommunityEslintCommentsRequireDescription, EslintPluginConsistentOutput, EslintPluginMetaPropertyOrdering, EslintPluginNoPropertyInNode, EslintPluginReportMessageFormat, EslintPluginRequireMetaDocsDescription, EslintPluginRequireMetaDocsRecommended, EslintPluginRequireMetaDocsUrl, EslintPluginRequireMetaFixable, EslintPluginRequireMetaSchema, EslintPluginTestCasePropertyOrdering, EslintPluginTestCaseShorthandStrings, FormatDprint, FormatPrettier, FuncCallSpacing, FuncNameMatching, FuncNames, FuncStyle, FunctionCallArgumentNewline, FunctionParenNewline, GeneratorStarSpacing, GetterReturn, GithubActionActionNameCasing, GithubActionJobIdCasing, GithubActionMaxJobsPerAction, GithubActionPreferFileExtension, GithubActionPreferStepUsesStyle, GroupedAccessorPairs, HandleCallbackErr, IdBlacklist, IdDenylist, IdLength, IdMatch, ImplicitArrowLinebreak, ImportXConsistentTypeSpecifierStyle, ImportXDynamicImportChunkname, ImportXExtensions, ImportXFirst, ImportXImportsFirst, ImportXMaxDependencies, ImportXNamed, ImportXNamespace, ImportXNewlineAfterImport, ImportXNoAbsolutePath, ImportXNoAnonymousDefaultExport, ImportXNoCommonjs, ImportXNoCycle, ImportXNoDuplicates, ImportXNoDynamicRequire, ImportXNoExtraneousDependencies, ImportXNoImportModuleExports, ImportXNoInternalModules, ImportXNoNamespace, ImportXNoNodejsModules, ImportXNoRelativePackages, ImportXNoRelativeParentImports, ImportXNoRenameDefault, ImportXNoRestrictedPaths, ImportXNoUnassignedImport, ImportXNoUnresolved, ImportXNoUnusedModules, ImportXNoUselessPathSegments, ImportXOrder, ImportXPreferDefaultExport, Indent, IndentLegacy, InitDeclarations, InteropModuleDefault, JsdocCheckExamples, JsdocCheckIndentation, JsdocCheckLineAlignment, JsdocCheckParamNames, JsdocCheckPropertyNames, JsdocCheckTagNames, JsdocCheckTypes, JsdocCheckValues, JsdocConvertToJsdocComments, JsdocEmptyTags, JsdocImplementsOnClasses, JsdocInformativeDocs, JsdocLinesBeforeBlock, JsdocMatchDescription, JsdocMatchName, JsdocMultilineBlocks, JsdocNoBadBlocks, JsdocNoBlankBlocks, JsdocNoDefaults, JsdocNoMissingSyntax, JsdocNoMultiAsterisks, JsdocNoRestrictedSyntax, JsdocNoTypes, JsdocNoUndefinedTypes, JsdocRequireAsteriskPrefix, JsdocRequireDescription, JsdocRequireDescriptionCompleteSentence, JsdocRequireExample, JsdocRequireFileOverview, JsdocRequireHyphenBeforeParamDescription, JsdocRequireJsdoc, JsdocRequireParam, JsdocRequireParamDescription, JsdocRequireParamName, JsdocRequireParamType, JsdocRequireReturns, JsdocRequireReturnsCheck, JsdocRequireReturnsDescription, JsdocRequireReturnsType, JsdocRequireTemplate, JsdocRequireThrows, JsdocRequireYields, JsdocRequireYieldsCheck, JsdocSortTags, JsdocTagLines, JsdocTextEscaping, JsdocValidTypes, JsoncArrayBracketNewline, JsoncArrayBracketSpacing, JsoncArrayElementNewline, JsoncCommaDangle, JsoncCommaStyle, JsoncIndent, JsoncKeyNameCasing, JsoncKeySpacing, JsoncNoIrregularWhitespace, JsoncObjectCurlyNewline, JsoncObjectCurlySpacing, JsoncObjectPropertyNewline, JsoncQuoteProps, JsoncQuotes, JsoncSortArrayValues, JsoncSortKeys, JsoncSpaceUnaryOps, JsxQuotes, KeySpacing, KeywordSpacing, LineCommentPosition, LinebreakStyle, LinesAroundComment, LinesAroundDirective, LinesBetweenClassMembers, LogicalAssignmentOperators, MarkdownFencedCodeLanguage, MarkdownNoHtml, MaxClassesPerFile, MaxDepth, MaxLen, MaxLines, MaxLinesPerFunction, MaxNestedCallbacks, MaxParams, MaxStatements, MaxStatementsPerLine, MultilineCommentStyle, MultilineTernary, NewCap, NewParens, NewlineAfterVar, NewlinePerChainedCall, NoBitwise, NoCondAssign, NoConfusingArrow, NoConsole, NoConstantCondition, NoDuplicateImports, NoElseReturn, NoEmpty, NoEmptyFunction, NoEmptyPattern, NoEval, NoExtendNative, NoExtraBooleanCast, NoExtraParens, NoFallthrough, NoGlobalAssign, NoImplicitCoercion, NoImplicitGlobals, NoInlineComments, NoInnerDeclarations, NoInvalidRegexp, NoInvalidThis, NoIrregularWhitespace, NoLabels, NoMagicNumbers, NoMisleadingCharacterClass, NoMixedOperators, NoMixedRequires, NoMixedSpacesAndTabs, NoMultiAssign, NoMultiSpaces, NoMultipleEmptyLines, NoNativeReassign, NoOnlyTestsNoOnlyTests, NoParamReassign, NoPlusplus, NoPromiseExecutorReturn, NoRedeclare, NoRestrictedExports, NoRestrictedGlobals, NoRestrictedImports, NoRestrictedModules, NoRestrictedProperties, NoRestrictedSyntax, NoReturnAssign, NoSelfAssign, NoSequences, NoShadow, NoSync, NoTabs, NoTrailingSpaces, NoUndef, NoUnderscoreDangle, NoUnneededTernary, NoUnreachableLoop, NoUnsafeNegation, NoUnsafeOptionalChaining, NoUnusedExpressions, NoUnusedVars, NoUseBeforeDefine, NoUselessComputedKey, NoUselessRename, NoVoid, NoWarningComments, NodeCallbackReturn, NodeExportsStyle, NodeFileExtensionInImport, NodeHandleCallbackErr, NodeHashbang, NodeNoDeprecatedApi, NodeNoExtraneousImport, NodeNoExtraneousRequire, NodeNoHideCoreModules, NodeNoMissingImport, NodeNoMissingRequire, NodeNoMixedRequires, NodeNoProcessEnv, NodeNoRestrictedImport, NodeNoRestrictedRequire, NodeNoSync, NodeNoUnpublishedBin, NodeNoUnpublishedImport, NodeNoUnpublishedRequire, NodeNoUnsupportedFeaturesEsBuiltins, NodeNoUnsupportedFeaturesEsSyntax, NodeNoUnsupportedFeaturesNodeBuiltins, NodePreferGlobalBuffer, NodePreferGlobalConsole, NodePreferGlobalProcess, NodePreferGlobalTextDecoder, NodePreferGlobalTextEncoder, NodePreferGlobalUrl, NodePreferGlobalUrlSearchParams, NodePreferNodeProtocol, NodeShebang, NonblockStatementBodyPosition, NtnyqNoDuplicateExports, NtnyqPreferNewlineAfterFileHeader, ObjectCurlyNewline, ObjectCurlySpacing, ObjectPropertyNewline, ObjectShorthand, OneVar, OneVarDeclarationPerLine, OperatorAssignment, OperatorLinebreak, OptionsFiles, OptionsIgnores, OptionsOverrides, OptionsShareable, PaddedBlocks, PaddingLineBetweenStatements, PerfectionistPartitionByComment, PerfectionistSortArrayIncludes, PerfectionistSortClasses, PerfectionistSortDecorators, PerfectionistSortEnums, PerfectionistSortExports, PerfectionistSortHeritageClauses, PerfectionistSortInterfaces, PerfectionistSortIntersectionTypes, PerfectionistSortJsxProps, PerfectionistSortMaps, PerfectionistSortModules, PerfectionistSortNamedExports, PerfectionistSortNamedImports, PerfectionistSortObjectTypes, PerfectionistSortObjects, PerfectionistSortSets, PerfectionistSortSwitchCase, PerfectionistSortUnionTypes, PerfectionistSortVariableDeclarations, PiniaPreferUseStoreNamingConvention, PnpmJsonEnforceCatalog, PnpmJsonPreferWorkspaceSettings, PnpmJsonValidCatalog, PnpmYamlNoDuplicateCatalogItem, PreferArrowCallback, PreferConst, PreferDestructuring, PreferPromiseRejectErrors, PreferReflect, PreferRegexLiterals, PrettierOptions, PrettierPrettier, Pretty, QuoteProps, Quotes, Radix, RegexpHexadecimalEscape, RegexpLetterCase, RegexpMatchAny, RegexpNoDupeDisjunctions, RegexpNoLazyEnds, RegexpNoLegacyFeatures, RegexpNoMisleadingCapturingGroup, RegexpNoMisleadingUnicodeCharacter, RegexpNoMissingGFlag, RegexpNoObscureRange, RegexpNoSuperLinearBacktracking, RegexpNoSuperLinearMove, RegexpNoUnusedCapturingGroup, RegexpNoUselessCharacterClass, RegexpNoUselessFlag, RegexpNoUselessNonCapturingGroup, RegexpOptimalQuantifierConcatenation, RegexpPreferCharacterClass, RegexpPreferD, RegexpPreferLookaround, RegexpPreferNamedReplacement, RegexpPreferRange, RegexpPreferResultArrayGroups, RegexpSortCharacterClassElements, RegexpUnicodeEscape, RegexpUnicodeProperty, RequireAtomicUpdates, RequireUnicodeRegexp, ResolvedOptions, RestSpreadSpacing, RuleOptions, Semi, SemiSpacing, SemiStyle, SortImports, SortKeys, SortVars, SpaceBeforeBlocks, SpaceBeforeFunctionParen, SpaceInParens, SpaceInfixOps, SpaceUnaryOps, SpacedComment, Strict, SvgoSvgo, SwitchColonSpacing, TSESLintParserOptions, TemplateCurlySpacing, TemplateTagSpacing, TomlArrayBracketNewline, TomlArrayBracketSpacing, TomlArrayElementNewline, TomlCommaStyle, TomlIndent, TomlInlineTableCurlySpacing, TomlKeySpacing, TomlNoMixedTypeInArray, TomlNoNonDecimalInteger, TomlPrecisionOfFractionalSeconds, TomlPrecisionOfInteger, TomlQuotedKeys, TomlSpacedComment, TomlTableBracketSpacing, TypedConfigItem, TypescriptEslintArrayType, TypescriptEslintBanTsComment, TypescriptEslintClassLiteralPropertyStyle, TypescriptEslintClassMethodsUseThis, TypescriptEslintConsistentGenericConstructors, TypescriptEslintConsistentIndexedObjectStyle, TypescriptEslintConsistentReturn, TypescriptEslintConsistentTypeAssertions, TypescriptEslintConsistentTypeDefinitions, TypescriptEslintConsistentTypeExports, TypescriptEslintConsistentTypeImports, TypescriptEslintDotNotation, TypescriptEslintExplicitFunctionReturnType, TypescriptEslintExplicitMemberAccessibility, TypescriptEslintExplicitModuleBoundaryTypes, TypescriptEslintInitDeclarations, TypescriptEslintMaxParams, TypescriptEslintMemberOrdering, TypescriptEslintMethodSignatureStyle, TypescriptEslintNamingConvention, TypescriptEslintNoBaseToString, TypescriptEslintNoConfusingVoidExpression, TypescriptEslintNoDeprecated, TypescriptEslintNoDuplicateTypeConstituents, TypescriptEslintNoEmptyFunction, TypescriptEslintNoEmptyInterface, TypescriptEslintNoEmptyObjectType, TypescriptEslintNoExplicitAny, TypescriptEslintNoExtraneousClass, TypescriptEslintNoFloatingPromises, TypescriptEslintNoInferrableTypes, TypescriptEslintNoInvalidThis, TypescriptEslintNoInvalidVoidType, TypescriptEslintNoMagicNumbers, TypescriptEslintNoMeaninglessVoidOperator, TypescriptEslintNoMisusedPromises, TypescriptEslintNoMisusedSpread, TypescriptEslintNoNamespace, TypescriptEslintNoRedeclare, TypescriptEslintNoRequireImports, TypescriptEslintNoRestrictedImports, TypescriptEslintNoRestrictedTypes, TypescriptEslintNoShadow, TypescriptEslintNoThisAlias, TypescriptEslintNoTypeAlias, TypescriptEslintNoUnnecessaryBooleanLiteralCompare, TypescriptEslintNoUnnecessaryCondition, TypescriptEslintNoUnnecessaryTypeAssertion, TypescriptEslintNoUnusedExpressions, TypescriptEslintNoUnusedVars, TypescriptEslintNoUseBeforeDefine, TypescriptEslintNoVarRequires, TypescriptEslintOnlyThrowError, TypescriptEslintParameterProperties, TypescriptEslintPreferDestructuring, TypescriptEslintPreferLiteralEnumMember, TypescriptEslintPreferNullishCoalescing, TypescriptEslintPreferOptionalChain, TypescriptEslintPreferPromiseRejectErrors, TypescriptEslintPreferReadonly, TypescriptEslintPreferReadonlyParameterTypes, TypescriptEslintPreferStringStartsEndsWith, TypescriptEslintPromiseFunctionAsync, TypescriptEslintRequireArraySortCompare, TypescriptEslintRestrictPlusOperands, TypescriptEslintRestrictTemplateExpressions, TypescriptEslintReturnAwait, TypescriptEslintSortTypeConstituents, TypescriptEslintStrictBooleanExpressions, TypescriptEslintSwitchExhaustivenessCheck, TypescriptEslintTripleSlashReference, TypescriptEslintTypedef, TypescriptEslintUnboundMethod, TypescriptEslintUnifiedSignatures, UnicodeBom, UnicornBetterRegex, UnicornCatchErrorName, UnicornConsistentFunctionScoping, UnicornEscapeCase, UnicornExpiringTodoComments, UnicornExplicitLengthCheck, UnicornFilenameCase, UnicornImportStyle, UnicornNoArrayPushPush, UnicornNoArrayReduce, UnicornNoInstanceofBuiltins, UnicornNoKeywordPrefix, UnicornNoNull, UnicornNoTypeofUndefined, UnicornNoUnnecessaryPolyfills, UnicornNoUselessUndefined, UnicornNumberLiteralCase, UnicornNumericSeparatorsStyle, UnicornPreferAddEventListener, UnicornPreferArrayFind, UnicornPreferArrayFlat, UnicornPreferAt, UnicornPreferExportFrom, UnicornPreferNumberProperties, UnicornPreferObjectFromEntries, UnicornPreferStructuredClone, UnicornPreferSwitch, UnicornPreferTernary, UnicornPreventAbbreviations, UnicornRelativeUrlStyle, UnicornStringContent, UnicornSwitchCaseBraces, UnicornTemplateIndent, UnocssEnforceClassCompile, UnusedImportsNoUnusedImports, UnusedImportsNoUnusedVars, UseIsnan, ValidTypeof, VitestConsistentTestFilename, VitestConsistentTestIt, VitestExpectExpect, VitestMaxExpects, VitestMaxNestedDescribe, VitestNoFocusedTests, VitestNoHooks, VitestNoLargeSnapshots, VitestNoRestrictedMatchers, VitestNoRestrictedViMethods, VitestNoStandaloneExpect, VitestPreferExpectAssertions, VitestPreferLowercaseTitle, VitestPreferSnapshotHint, VitestRequireHook, VitestRequireMockTypeParameters, VitestRequireTopLevelDescribe, VitestValidExpect, VitestValidTitle, VueArrayBracketNewline, VueArrayBracketSpacing, VueArrayElementNewline, VueArrowSpacing, VueAttributeHyphenation, VueAttributesOrder, VueBlockLang, VueBlockOrder, VueBlockSpacing, VueBlockTagNewline, VueBraceStyle, VueCamelcase, VueCommaDangle, VueCommaSpacing, VueCommaStyle, VueCommentDirective, VueComponentApiStyle, VueComponentDefinitionNameCasing, VueComponentNameInTemplateCasing, VueComponentOptionsNameCasing, VueCustomEventNameCasing, VueDefineEmitsDeclaration, VueDefineMacrosOrder, VueDefinePropsDeclaration, VueDotLocation, VueDotNotation, VueEnforceStyleAttribute, VueEqeqeq, VueFirstAttributeLinebreak, VueFuncCallSpacing, VueHtmlButtonHasType, VueHtmlClosingBracketNewline, VueHtmlClosingBracketSpacing, VueHtmlCommentContentNewline, VueHtmlCommentContentSpacing, VueHtmlCommentIndent, VueHtmlIndent, VueHtmlQuotes, VueHtmlSelfClosing, VueKeySpacing, VueKeywordSpacing, VueMatchComponentFileName, VueMaxAttributesPerLine, VueMaxLen, VueMaxLinesPerBlock, VueMaxProps, VueMaxTemplateDepth, VueMultiWordComponentNames, VueMultilineHtmlElementContentNewline, VueMultilineTernary, VueMustacheInterpolationSpacing, VueNewLineBetweenMultiLineProperty, VueNextTickStyle, VueNoBareStringsInTemplate, VueNoBooleanDefault, VueNoChildContent, VueNoConsole, VueNoConstantCondition, VueNoDeprecatedModelDefinition, VueNoDeprecatedRouterLinkTagProp, VueNoDeprecatedSlotAttribute, VueNoDupeKeys, VueNoDuplicateAttrInheritance, VueNoDuplicateAttributes, VueNoEmptyPattern, VueNoExtraParens, VueNoImplicitCoercion, VueNoIrregularWhitespace, VueNoLoneTemplate, VueNoMultiSpaces, VueNoMutatingProps, VueNoParsingError, VueNoPotentialComponentOptionTypo, VueNoRequiredPropWithDefault, VueNoReservedComponentNames, VueNoReservedKeys, VueNoReservedProps, VueNoRestrictedBlock, VueNoRestrictedCallAfterAwait, VueNoRestrictedClass, VueNoRestrictedComponentNames, VueNoRestrictedComponentOptions, VueNoRestrictedCustomEvent, VueNoRestrictedHtmlElements, VueNoRestrictedProps, VueNoRestrictedStaticAttribute, VueNoRestrictedSyntax, VueNoRestrictedVBind, VueNoRestrictedVOn, VueNoStaticInlineStyles, VueNoTemplateShadow, VueNoTemplateTargetBlank, VueNoUndefComponents, VueNoUndefProperties, VueNoUnsupportedFeatures, VueNoUnusedComponents, VueNoUnusedProperties, VueNoUnusedVars, VueNoUseVIfWithVFor, VueNoUselessMustaches, VueNoUselessVBind, VueNoVTextVHtmlOnComponent, VueObjectCurlyNewline, VueObjectCurlySpacing, VueObjectPropertyNewline, VueObjectShorthand, VueOperatorLinebreak, VueOrderInComponents, VuePaddingLineBetweenBlocks, VuePaddingLineBetweenTags, VuePaddingLinesInComponentDefinition, VuePreferTrueAttributeShorthand, VuePropNameCasing, VueQuoteProps, VueRequireDirectExport, VueRequireExplicitEmits, VueRequireMacroVariableName, VueRequirePropComment, VueRequireToggleInsideTransition, VueRestrictedComponentNames, VueReturnInComputedProperty, VueScriptIndent, VueSinglelineHtmlElementContentNewline, VueSlotNameCasing, VueSortKeys, VueSpaceInParens, VueSpaceInfixOps, VueSpaceUnaryOps, VueTemplateCurlySpacing, VueThisInTemplate, VueVBindStyle, VueVForDelimiterStyle, VueVOnEventHyphenation, VueVOnHandlerStyle, VueVOnStyle, VueVSlotStyle, VueValidVOn, VueValidVSlot, WrapIife, YieldStarSpacing, YmlBlockMapping, YmlBlockMappingColonIndicatorNewline, YmlBlockMappingQuestionIndicatorNewline, YmlBlockSequence, YmlBlockSequenceHyphenIndicatorNewline, YmlFileExtension, YmlFlowMappingCurlyNewline, YmlFlowMappingCurlySpacing, YmlFlowSequenceBracketNewline, YmlFlowSequenceBracketSpacing, YmlIndent, YmlKeyNameCasing, YmlKeySpacing, YmlNoIrregularWhitespace, YmlNoMultipleEmptyLines, YmlPlainScalar, YmlQuotes, YmlSortKeys, YmlSortSequenceValues, YmlSpacedComment, Yoda, _ArrayElementNewlineBasicConfig, _CommaDangleValue, _CommaDangleValueWithIgnore, _FuncNamesValue, _JsoncArrayElementNewlineBasicConfig, _JsoncCommaDangleValue, _JsoncCommaDangleValueWithIgnore, _PaddingLineBetweenStatementsPaddingType, _PaddingLineBetweenStatementsStatementType, _PerfectionistSortImportsMaxLineLengthRequiresLineLengthType, _PerfectionistSortImportsSortImports, _PerfectionistSortImports_IsLineLength, _TomlArrayElementNewlineBasicConfig, _TypescriptEslintNamingConventionFormatOptionsConfig, _TypescriptEslintNamingConventionPredefinedFormats, _TypescriptEslintNamingConventionTypeModifiers, _TypescriptEslintNamingConventionUnderscoreOptions, _TypescriptEslintNamingConvention_MatchRegexConfig, _TypescriptEslintNamingConvention_PrefixSuffixConfig, _UnicornImportStyleStyles, _UnicornImportStyle_BooleanObject, _UnicornImportStyle_ModuleStyles, _UnicornPreventAbbreviationsReplacements, _UnicornPreventAbbreviations_Abbreviations, _UnicornPreventAbbreviations_BooleanObject, _VueArrayElementNewlineBasicConfig, _VueCommaDangleValue, _VueCommaDangleValueWithIgnore, _VueHtmlSelfClosingOptionValue };
|
package/dist/index.mjs
CHANGED
|
@@ -11,8 +11,6 @@ import * as parserYaml from 'yaml-eslint-parser';
|
|
|
11
11
|
export { parserYaml };
|
|
12
12
|
import * as parserJsonc from 'jsonc-eslint-parser';
|
|
13
13
|
export { parserJsonc };
|
|
14
|
-
import * as pluginDepend from 'eslint-plugin-depend';
|
|
15
|
-
export { pluginDepend };
|
|
16
14
|
import * as pluginRegexp from 'eslint-plugin-regexp';
|
|
17
15
|
export { pluginRegexp };
|
|
18
16
|
import pluginNode from 'eslint-plugin-n';
|
|
@@ -39,6 +37,8 @@ import pluginNtnyq from 'eslint-plugin-ntnyq';
|
|
|
39
37
|
export { default as pluginNtnyq } from 'eslint-plugin-ntnyq';
|
|
40
38
|
import pluginPinia from 'eslint-plugin-pinia';
|
|
41
39
|
export { default as pluginPinia } from 'eslint-plugin-pinia';
|
|
40
|
+
import pluginDepend from 'eslint-plugin-depend';
|
|
41
|
+
export { default as pluginDepend } from 'eslint-plugin-depend';
|
|
42
42
|
import pluginUnoCSS from '@unocss/eslint-plugin';
|
|
43
43
|
export { default as pluginUnoCSS } from '@unocss/eslint-plugin';
|
|
44
44
|
import pluginVitest from '@vitest/eslint-plugin';
|
|
@@ -1770,38 +1770,55 @@ const PERFECTIONIST_SORT_IMPORTS_GROUPS = [
|
|
|
1770
1770
|
// Side effect style imports (e.g. 'normalize.css')
|
|
1771
1771
|
"side-effect-style",
|
|
1772
1772
|
// Styles (e.g. *.{css,scss,less})
|
|
1773
|
-
"style",
|
|
1773
|
+
"value-style",
|
|
1774
1774
|
// Node.js built-in modules. (e.g. fs, path)
|
|
1775
|
-
"builtin",
|
|
1775
|
+
"value-builtin",
|
|
1776
1776
|
// External modules installed in the project (e.g. vue, lodash)
|
|
1777
|
-
"external",
|
|
1777
|
+
"value-external",
|
|
1778
|
+
// Node.js subpath imports (e.g. fs/promises)
|
|
1779
|
+
"value-subpath",
|
|
1778
1780
|
// Internal modules (e.g. @/utils, @/components)
|
|
1779
|
-
"internal",
|
|
1781
|
+
"value-internal",
|
|
1780
1782
|
// Modules from parent directory (e.g. ../utils)
|
|
1781
|
-
"parent",
|
|
1783
|
+
"value-parent",
|
|
1782
1784
|
// Modules from the same directory (e.g. ./utils)
|
|
1783
|
-
"sibling",
|
|
1785
|
+
"value-sibling",
|
|
1784
1786
|
// Main file from the current directory (e.g. ./index)
|
|
1785
|
-
"index",
|
|
1786
|
-
// TypeScript
|
|
1787
|
-
"
|
|
1787
|
+
"value-index",
|
|
1788
|
+
// TypeScript import-equals imports (e.g. import log = console.log)
|
|
1789
|
+
"ts-equals-import",
|
|
1788
1790
|
// Side effect imports (e.g. import 'babel-polyfill')
|
|
1789
1791
|
"side-effect",
|
|
1790
1792
|
/**
|
|
1791
1793
|
* Type import at the end
|
|
1792
1794
|
*/
|
|
1793
|
-
"builtin
|
|
1794
|
-
"external
|
|
1795
|
-
"
|
|
1796
|
-
"
|
|
1797
|
-
"
|
|
1798
|
-
"
|
|
1799
|
-
"type",
|
|
1795
|
+
"type-builtin",
|
|
1796
|
+
"type-external",
|
|
1797
|
+
"type-subpath",
|
|
1798
|
+
"type-internal",
|
|
1799
|
+
"type-parent",
|
|
1800
|
+
"type-sibling",
|
|
1801
|
+
"type-index",
|
|
1800
1802
|
/**
|
|
1801
1803
|
* Imports that don’t fit into any other group
|
|
1802
1804
|
*/
|
|
1803
1805
|
"unknown"
|
|
1804
1806
|
];
|
|
1807
|
+
const PERFECTIONIST_SORT_EXPORTS_GROUPS = [
|
|
1808
|
+
"value-export",
|
|
1809
|
+
"type-export",
|
|
1810
|
+
"unknown"
|
|
1811
|
+
];
|
|
1812
|
+
const PERFECTIONIST_SORT_NAMED_EXPORTS_GROUPS = [
|
|
1813
|
+
"value-export",
|
|
1814
|
+
"type-export",
|
|
1815
|
+
"unknown"
|
|
1816
|
+
];
|
|
1817
|
+
const PERFECTIONIST_SORT_NAMED_IMPORTS_GROUPS = [
|
|
1818
|
+
"value-import",
|
|
1819
|
+
"type-import",
|
|
1820
|
+
"unknown"
|
|
1821
|
+
];
|
|
1805
1822
|
const PERFECTIONIST_SORT_CLASSES_GROUPS = ["unknown"];
|
|
1806
1823
|
|
|
1807
1824
|
const configFormat = async (options = {}) => {
|
|
@@ -2988,8 +3005,8 @@ const configPerfectionist = (options = {}) => {
|
|
|
2988
3005
|
"perfectionist/sort-exports": [
|
|
2989
3006
|
"error",
|
|
2990
3007
|
{
|
|
2991
|
-
...
|
|
2992
|
-
|
|
3008
|
+
...commonRuleOptionsWithBoth,
|
|
3009
|
+
groups: PERFECTIONIST_SORT_EXPORTS_GROUPS,
|
|
2993
3010
|
type: "line-length"
|
|
2994
3011
|
}
|
|
2995
3012
|
],
|
|
@@ -3004,16 +3021,16 @@ const configPerfectionist = (options = {}) => {
|
|
|
3004
3021
|
"perfectionist/sort-named-exports": [
|
|
3005
3022
|
"error",
|
|
3006
3023
|
{
|
|
3007
|
-
...
|
|
3008
|
-
|
|
3024
|
+
...commonRuleOptionsWithBoth,
|
|
3025
|
+
groups: PERFECTIONIST_SORT_NAMED_EXPORTS_GROUPS,
|
|
3009
3026
|
ignoreAlias: false
|
|
3010
3027
|
}
|
|
3011
3028
|
],
|
|
3012
3029
|
"perfectionist/sort-named-imports": [
|
|
3013
3030
|
"error",
|
|
3014
3031
|
{
|
|
3015
|
-
...
|
|
3016
|
-
|
|
3032
|
+
...commonRuleOptionsWithBoth,
|
|
3033
|
+
groups: PERFECTIONIST_SORT_NAMED_IMPORTS_GROUPS,
|
|
3017
3034
|
ignoreAlias: false
|
|
3018
3035
|
}
|
|
3019
3036
|
]
|
|
@@ -3490,4 +3507,4 @@ function defineESLintConfig(options = {}, ...userConfigs) {
|
|
|
3490
3507
|
return composer;
|
|
3491
3508
|
}
|
|
3492
3509
|
|
|
3493
|
-
export { GLOB_ALL_SRC, GLOB_ASTRO, GLOB_ASTRO_TS, GLOB_CSS, GLOB_DIST, GLOB_DTS, GLOB_EXCLUDE, GLOB_GITHUB_ACTION, GLOB_HTML, GLOB_JS, GLOB_JSON, GLOB_JSON5, GLOB_JSONC, GLOB_JSON_SCHEMA, GLOB_JSX, GLOB_JSX_ONLY, GLOB_LESS, GLOB_LOCKFILE, GLOB_MARKDOWN, GLOB_MARKDOWN_CODE, GLOB_MARKDOWN_NESTED, GLOB_NODE_MODULES, GLOB_PACKAGE_JSON, GLOB_PINIA_STORE, GLOB_PNPM_WORKSPACE_YAML, GLOB_POSTCSS, GLOB_SCSS, GLOB_SRC, GLOB_SRC_EXT, GLOB_STYLE, GLOB_SVELTE, GLOB_SVG, GLOB_TEST, GLOB_TOML, GLOB_TS, GLOB_TSCONFIG_JSON, GLOB_TSX, GLOB_TSX_ONLY, GLOB_TYPES, GLOB_TYPE_TEST, GLOB_VUE, GLOB_YAML, PERFECTIONIST_COMMON_RULE_OPTIONS, PERFECTIONIST_EXTRA_RULE_OPTIONS, PERFECTIONIST_SORT_CLASSES_GROUPS, PERFECTIONIST_SORT_IMPORTS_GROUPS, PERFECTIONIST_SORT_INTERFACES_OR_OBJECT_TYPES_GROUPS, PERFECTIONIST_SORT_INTERSECTION_TYPES_OR_UNION_TYPES_GROUPS, PERFECTIONIST_SORT_OBJECTS_GROUPS, PRETTIER_DEFAULT_OPTIONS, combineConfigs, configAntfu, configCommand, configDeMorgan, configDepend, configESLintComments, configESLintPlugin, configFormat, configGitHubAction, configGitIgnore, configIgnores, configImportX, configJSX, configJavaScript, configJsdoc, configJsonc, configMarkdown, configNode, configNtnyq, configPerfectionist, configPinia, configPnpm, configPrettier, configRegexp, configSVGO, configSort, configSpecials, configTest, configToml, configTypeScript, configUnicorn, configUnoCSS, configUnusedImports, configVue, configYml, defineESLintConfig, ensurePackages, getOverrides, hasPinia, hasShadcnVue, hasTypeScript, hasUnoCSS, hasVitest, hasVue, interopDefault, isInGitHooksOrRunBySpecifyPackages, mergePrettierOptions, parserPlain, resolveSubOptions };
|
|
3510
|
+
export { GLOB_ALL_SRC, GLOB_ASTRO, GLOB_ASTRO_TS, GLOB_CSS, GLOB_DIST, GLOB_DTS, GLOB_EXCLUDE, GLOB_GITHUB_ACTION, GLOB_HTML, GLOB_JS, GLOB_JSON, GLOB_JSON5, GLOB_JSONC, GLOB_JSON_SCHEMA, GLOB_JSX, GLOB_JSX_ONLY, GLOB_LESS, GLOB_LOCKFILE, GLOB_MARKDOWN, GLOB_MARKDOWN_CODE, GLOB_MARKDOWN_NESTED, GLOB_NODE_MODULES, GLOB_PACKAGE_JSON, GLOB_PINIA_STORE, GLOB_PNPM_WORKSPACE_YAML, GLOB_POSTCSS, GLOB_SCSS, GLOB_SRC, GLOB_SRC_EXT, GLOB_STYLE, GLOB_SVELTE, GLOB_SVG, GLOB_TEST, GLOB_TOML, GLOB_TS, GLOB_TSCONFIG_JSON, GLOB_TSX, GLOB_TSX_ONLY, GLOB_TYPES, GLOB_TYPE_TEST, GLOB_VUE, GLOB_YAML, PERFECTIONIST_COMMON_RULE_OPTIONS, PERFECTIONIST_EXTRA_RULE_OPTIONS, PERFECTIONIST_SORT_CLASSES_GROUPS, PERFECTIONIST_SORT_EXPORTS_GROUPS, PERFECTIONIST_SORT_IMPORTS_GROUPS, PERFECTIONIST_SORT_INTERFACES_OR_OBJECT_TYPES_GROUPS, PERFECTIONIST_SORT_INTERSECTION_TYPES_OR_UNION_TYPES_GROUPS, PERFECTIONIST_SORT_NAMED_EXPORTS_GROUPS, PERFECTIONIST_SORT_NAMED_IMPORTS_GROUPS, PERFECTIONIST_SORT_OBJECTS_GROUPS, PRETTIER_DEFAULT_OPTIONS, combineConfigs, configAntfu, configCommand, configDeMorgan, configDepend, configESLintComments, configESLintPlugin, configFormat, configGitHubAction, configGitIgnore, configIgnores, configImportX, configJSX, configJavaScript, configJsdoc, configJsonc, configMarkdown, configNode, configNtnyq, configPerfectionist, configPinia, configPnpm, configPrettier, configRegexp, configSVGO, configSort, configSpecials, configTest, configToml, configTypeScript, configUnicorn, configUnoCSS, configUnusedImports, configVue, configYml, defineESLintConfig, ensurePackages, getOverrides, hasPinia, hasShadcnVue, hasTypeScript, hasUnoCSS, hasVitest, hasVue, interopDefault, isInGitHooksOrRunBySpecifyPackages, mergePrettierOptions, parserPlain, resolveSubOptions };
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ntnyq/eslint-config",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "4.0
|
|
5
|
-
"packageManager": "pnpm@10.
|
|
4
|
+
"version": "4.1.0",
|
|
5
|
+
"packageManager": "pnpm@10.9.0",
|
|
6
6
|
"description": "An opinionated ESLint config preset of ntnyq",
|
|
7
7
|
"keywords": [
|
|
8
8
|
"eslint",
|
|
@@ -74,52 +74,52 @@
|
|
|
74
74
|
},
|
|
75
75
|
"dependencies": {
|
|
76
76
|
"@antfu/install-pkg": "^1.0.0",
|
|
77
|
-
"@clack/prompts": "^0.10.
|
|
78
|
-
"@eslint-community/eslint-plugin-eslint-comments": "^4.
|
|
79
|
-
"@eslint/js": "^9.
|
|
80
|
-
"@eslint/markdown": "^6.
|
|
81
|
-
"@unocss/eslint-plugin": "^66.1.0-beta.
|
|
82
|
-
"@vitest/eslint-plugin": "^1.1.
|
|
77
|
+
"@clack/prompts": "^0.10.1",
|
|
78
|
+
"@eslint-community/eslint-plugin-eslint-comments": "^4.5.0",
|
|
79
|
+
"@eslint/js": "^9.25.1",
|
|
80
|
+
"@eslint/markdown": "^6.4.0",
|
|
81
|
+
"@unocss/eslint-plugin": "^66.1.0-beta.12",
|
|
82
|
+
"@vitest/eslint-plugin": "^1.1.43",
|
|
83
83
|
"eslint-config-flat-gitignore": "^2.1.0",
|
|
84
84
|
"eslint-flat-config-utils": "^2.0.1",
|
|
85
|
-
"eslint-import-resolver-typescript": "^4.3.
|
|
85
|
+
"eslint-import-resolver-typescript": "^4.3.4",
|
|
86
86
|
"eslint-merge-processors": "^2.0.0",
|
|
87
87
|
"eslint-plugin-antfu": "^3.1.1",
|
|
88
88
|
"eslint-plugin-command": "^3.2.0",
|
|
89
89
|
"eslint-plugin-de-morgan": "^1.2.1",
|
|
90
|
-
"eslint-plugin-depend": "^0.
|
|
90
|
+
"eslint-plugin-depend": "^1.0.0",
|
|
91
91
|
"eslint-plugin-github-action": "^0.0.15",
|
|
92
|
-
"eslint-plugin-import-x": "^4.
|
|
93
|
-
"eslint-plugin-jsdoc": "^50.6.
|
|
92
|
+
"eslint-plugin-import-x": "^4.11.0",
|
|
93
|
+
"eslint-plugin-jsdoc": "^50.6.11",
|
|
94
94
|
"eslint-plugin-jsonc": "^2.20.0",
|
|
95
95
|
"eslint-plugin-n": "^17.17.0",
|
|
96
96
|
"eslint-plugin-no-only-tests": "^3.3.0",
|
|
97
97
|
"eslint-plugin-ntnyq": "^0.11.0",
|
|
98
|
-
"eslint-plugin-perfectionist": "^4.
|
|
98
|
+
"eslint-plugin-perfectionist": "^4.12.3",
|
|
99
99
|
"eslint-plugin-pinia": "^0.4.1",
|
|
100
100
|
"eslint-plugin-pnpm": "^0.3.1",
|
|
101
|
-
"eslint-plugin-prettier": "^5.2.
|
|
101
|
+
"eslint-plugin-prettier": "^5.2.6",
|
|
102
102
|
"eslint-plugin-regexp": "^2.7.0",
|
|
103
|
-
"eslint-plugin-svgo": "^0.7.
|
|
103
|
+
"eslint-plugin-svgo": "^0.7.1",
|
|
104
104
|
"eslint-plugin-toml": "^0.12.0",
|
|
105
105
|
"eslint-plugin-unicorn": "^58.0.0",
|
|
106
106
|
"eslint-plugin-vue": "^10.0.0",
|
|
107
|
-
"eslint-plugin-yml": "^1.
|
|
107
|
+
"eslint-plugin-yml": "^1.18.0",
|
|
108
108
|
"eslint-processor-vue-blocks": "^2.0.0",
|
|
109
109
|
"globals": "^16.0.0",
|
|
110
110
|
"jsonc-eslint-parser": "^2.4.0",
|
|
111
111
|
"local-pkg": "^1.1.1",
|
|
112
112
|
"prettier": "^3.5.3",
|
|
113
113
|
"toml-eslint-parser": "^0.10.0",
|
|
114
|
-
"typescript-eslint": "^8.
|
|
115
|
-
"vue-eslint-parser": "^10.1.
|
|
114
|
+
"typescript-eslint": "^8.31.0",
|
|
115
|
+
"vue-eslint-parser": "^10.1.3",
|
|
116
116
|
"yaml-eslint-parser": "^1.3.0"
|
|
117
117
|
},
|
|
118
118
|
"devDependencies": {
|
|
119
119
|
"@ntnyq/prettier-config": "^2.0.0",
|
|
120
|
-
"@types/node": "^22.
|
|
120
|
+
"@types/node": "^22.15.2",
|
|
121
121
|
"bumpp": "^10.1.0",
|
|
122
|
-
"eslint": "^9.
|
|
122
|
+
"eslint": "^9.25.1",
|
|
123
123
|
"eslint-parser-plain": "^0.1.1",
|
|
124
124
|
"eslint-plugin-eslint-plugin": "^6.4.0",
|
|
125
125
|
"eslint-typegen": "^2.1.0",
|
|
@@ -127,12 +127,12 @@
|
|
|
127
127
|
"jiti": "^2.4.2",
|
|
128
128
|
"nano-staged": "^0.8.0",
|
|
129
129
|
"npm-run-all2": "^7.0.2",
|
|
130
|
-
"tinyglobby": "^0.2.
|
|
130
|
+
"tinyglobby": "^0.2.13",
|
|
131
131
|
"tsx": "^4.19.3",
|
|
132
|
-
"typescript": "^5.8.
|
|
132
|
+
"typescript": "^5.8.3",
|
|
133
133
|
"unbuild": "^3.5.0",
|
|
134
|
-
"uncase": "^0.0
|
|
135
|
-
"vitest": "^3.1.
|
|
134
|
+
"uncase": "^0.1.0",
|
|
135
|
+
"vitest": "^3.1.2"
|
|
136
136
|
},
|
|
137
137
|
"engines": {
|
|
138
138
|
"node": ">=18.18.0"
|