@fabdeh/eslint-config 0.9.0 → 0.10.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 +115 -60
- package/dist/index.d.mts +1748 -449
- package/dist/index.mjs +327 -286
- package/package.json +59 -79
package/dist/index.d.mts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
+
import { PathLike } from "node:fs";
|
|
1
2
|
import { StylisticCustomizeOptions } from "@stylistic/eslint-plugin";
|
|
2
|
-
import { FlatGitignoreOptions } from "eslint-config-flat-gitignore";
|
|
3
3
|
import { TSESLint } from "@typescript-eslint/utils";
|
|
4
4
|
import { Linter } from "eslint";
|
|
5
|
+
import { FlatGitignoreOptions } from "eslint-config-flat-gitignore";
|
|
5
6
|
import { ObjectKeyMatcher, ObjectValueMatcher, Regex, StringMatcher } from "eslint-plugin-better-tailwindcss/types";
|
|
6
7
|
|
|
7
8
|
//#region src/typegen.d.ts
|
|
@@ -21,6 +22,11 @@ interface RuleOptions {
|
|
|
21
22
|
* @see https://github.com/angular-eslint/angular-eslint/blob/main/packages/eslint-plugin/docs/rules/component-selector.md
|
|
22
23
|
*/
|
|
23
24
|
'@angular-eslint/component-selector'?: Linter.RuleEntry<AngularEslintComponentSelector>;
|
|
25
|
+
/**
|
|
26
|
+
* Ensures that computed() returns a value. Omitting the value is likely a mistake.
|
|
27
|
+
* @see https://github.com/angular-eslint/angular-eslint/blob/main/packages/eslint-plugin/docs/rules/computed-must-return.md
|
|
28
|
+
*/
|
|
29
|
+
'@angular-eslint/computed-must-return'?: Linter.RuleEntry<[]>;
|
|
24
30
|
/**
|
|
25
31
|
* Ensures consistent usage of `styles`/`styleUrls`/`styleUrl` within Component metadata
|
|
26
32
|
* @see https://github.com/angular-eslint/angular-eslint/blob/main/packages/eslint-plugin/docs/rules/consistent-component-styles.md
|
|
@@ -333,10 +339,15 @@ interface RuleOptions {
|
|
|
333
339
|
*/
|
|
334
340
|
'@angular-eslint/template/no-negated-async'?: Linter.RuleEntry<[]>;
|
|
335
341
|
/**
|
|
336
|
-
* Denies nesting of
|
|
342
|
+
* Denies nesting of `<p>` and `<a>` tags.
|
|
337
343
|
* @see https://github.com/angular-eslint/angular-eslint/blob/main/packages/eslint-plugin-template/docs/rules/no-nested-tags.md
|
|
338
344
|
*/
|
|
339
345
|
'@angular-eslint/template/no-nested-tags'?: Linter.RuleEntry<[]>;
|
|
346
|
+
/**
|
|
347
|
+
* Disallows the non-null assertion operator (!) in templates
|
|
348
|
+
* @see https://github.com/angular-eslint/angular-eslint/blob/main/packages/eslint-plugin-template/docs/rules/no-non-null-assertion.md
|
|
349
|
+
*/
|
|
350
|
+
'@angular-eslint/template/no-non-null-assertion'?: Linter.RuleEntry<[]>;
|
|
340
351
|
/**
|
|
341
352
|
* Ensures that the `tabindex` attribute is not positive
|
|
342
353
|
* @see https://github.com/angular-eslint/angular-eslint/blob/main/packages/eslint-plugin-template/docs/rules/no-positive-tabindex.md
|
|
@@ -465,6 +476,7 @@ interface RuleOptions {
|
|
|
465
476
|
/**
|
|
466
477
|
* disallow unused `eslint-disable` comments
|
|
467
478
|
* @see https://eslint-community.github.io/eslint-plugin-eslint-comments/rules/no-unused-disable.html
|
|
479
|
+
* @deprecated
|
|
468
480
|
*/
|
|
469
481
|
'@eslint-community/eslint-comments/no-unused-disable'?: Linter.RuleEntry<[]>;
|
|
470
482
|
/**
|
|
@@ -552,6 +564,11 @@ interface RuleOptions {
|
|
|
552
564
|
* @see https://eslint.style/rules/eol-last
|
|
553
565
|
*/
|
|
554
566
|
'@stylistic/eol-last'?: Linter.RuleEntry<StylisticEolLast>;
|
|
567
|
+
/**
|
|
568
|
+
* Enforce consistent line break styles for JSX props
|
|
569
|
+
* @see https://eslint.style/rules/jsx-props-style
|
|
570
|
+
*/
|
|
571
|
+
'@stylistic/exp-jsx-props-style'?: Linter.RuleEntry<StylisticExpJsxPropsStyle>;
|
|
555
572
|
/**
|
|
556
573
|
* Enforce consistent spacing and line break styles inside brackets.
|
|
557
574
|
* @see https://eslint.style/rules/list-style
|
|
@@ -1432,7 +1449,7 @@ interface RuleOptions {
|
|
|
1432
1449
|
* Disallow default values that will never be used
|
|
1433
1450
|
* @see https://typescript-eslint.io/rules/no-useless-default-assignment
|
|
1434
1451
|
*/
|
|
1435
|
-
'@typescript-eslint/no-useless-default-assignment'?: Linter.RuleEntry<
|
|
1452
|
+
'@typescript-eslint/no-useless-default-assignment'?: Linter.RuleEntry<TypescriptEslintNoUselessDefaultAssignment>;
|
|
1436
1453
|
/**
|
|
1437
1454
|
* Disallow empty exports that don't change anything in a module file
|
|
1438
1455
|
* @see https://typescript-eslint.io/rules/no-useless-empty-export
|
|
@@ -1876,14 +1893,6 @@ interface RuleOptions {
|
|
|
1876
1893
|
* @see https://eslint.org/docs/latest/rules/for-direction
|
|
1877
1894
|
*/
|
|
1878
1895
|
'for-direction'?: Linter.RuleEntry<[]>;
|
|
1879
|
-
/**
|
|
1880
|
-
* Use dprint to format code
|
|
1881
|
-
*/
|
|
1882
|
-
'format/dprint'?: Linter.RuleEntry<FormatDprint>;
|
|
1883
|
-
/**
|
|
1884
|
-
* Use Prettier to format code
|
|
1885
|
-
*/
|
|
1886
|
-
'format/prettier'?: Linter.RuleEntry<FormatPrettier>;
|
|
1887
1896
|
/**
|
|
1888
1897
|
* Require or disallow spacing between function identifiers and their invocations
|
|
1889
1898
|
* @see https://eslint.org/docs/latest/rules/func-call-spacing
|
|
@@ -1979,238 +1988,238 @@ interface RuleOptions {
|
|
|
1979
1988
|
'implicit-arrow-linebreak'?: Linter.RuleEntry<ImplicitArrowLinebreak>;
|
|
1980
1989
|
/**
|
|
1981
1990
|
* Enforce or ban the use of inline type-only markers for named imports.
|
|
1982
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.
|
|
1991
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.2/docs/rules/consistent-type-specifier-style.md
|
|
1983
1992
|
*/
|
|
1984
1993
|
'import-x/consistent-type-specifier-style'?: Linter.RuleEntry<ImportXConsistentTypeSpecifierStyle>;
|
|
1985
1994
|
/**
|
|
1986
1995
|
* Ensure a default export is present, given a default import.
|
|
1987
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.
|
|
1996
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.2/docs/rules/default.md
|
|
1988
1997
|
*/
|
|
1989
1998
|
'import-x/default'?: Linter.RuleEntry<[]>;
|
|
1990
1999
|
/**
|
|
1991
2000
|
* Enforce a leading comment with the webpackChunkName for dynamic imports.
|
|
1992
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.
|
|
2001
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.2/docs/rules/dynamic-import-chunkname.md
|
|
1993
2002
|
*/
|
|
1994
2003
|
'import-x/dynamic-import-chunkname'?: Linter.RuleEntry<ImportXDynamicImportChunkname>;
|
|
1995
2004
|
/**
|
|
1996
2005
|
* Forbid any invalid exports, i.e. re-export of the same name.
|
|
1997
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.
|
|
2006
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.2/docs/rules/export.md
|
|
1998
2007
|
*/
|
|
1999
2008
|
'import-x/export'?: Linter.RuleEntry<[]>;
|
|
2000
2009
|
/**
|
|
2001
2010
|
* Ensure all exports appear after other statements.
|
|
2002
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.
|
|
2011
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.2/docs/rules/exports-last.md
|
|
2003
2012
|
*/
|
|
2004
2013
|
'import-x/exports-last'?: Linter.RuleEntry<[]>;
|
|
2005
2014
|
/**
|
|
2006
2015
|
* Ensure consistent use of file extension within the import path.
|
|
2007
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.
|
|
2016
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.2/docs/rules/extensions.md
|
|
2008
2017
|
*/
|
|
2009
2018
|
'import-x/extensions'?: Linter.RuleEntry<ImportXExtensions>;
|
|
2010
2019
|
/**
|
|
2011
2020
|
* Ensure all imports appear before other statements.
|
|
2012
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.
|
|
2021
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.2/docs/rules/first.md
|
|
2013
2022
|
*/
|
|
2014
2023
|
'import-x/first'?: Linter.RuleEntry<ImportXFirst>;
|
|
2015
2024
|
/**
|
|
2016
2025
|
* Prefer named exports to be grouped together in a single export declaration.
|
|
2017
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.
|
|
2026
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.2/docs/rules/group-exports.md
|
|
2018
2027
|
*/
|
|
2019
2028
|
'import-x/group-exports'?: Linter.RuleEntry<[]>;
|
|
2020
2029
|
/**
|
|
2021
2030
|
* Replaced by `import-x/first`.
|
|
2022
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.
|
|
2031
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.2/docs/rules/imports-first.md
|
|
2023
2032
|
* @deprecated
|
|
2024
2033
|
*/
|
|
2025
2034
|
'import-x/imports-first'?: Linter.RuleEntry<ImportXImportsFirst>;
|
|
2026
2035
|
/**
|
|
2027
2036
|
* Enforce the maximum number of dependencies a module can have.
|
|
2028
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.
|
|
2037
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.2/docs/rules/max-dependencies.md
|
|
2029
2038
|
*/
|
|
2030
2039
|
'import-x/max-dependencies'?: Linter.RuleEntry<ImportXMaxDependencies>;
|
|
2031
2040
|
/**
|
|
2032
2041
|
* Ensure named imports correspond to a named export in the remote file.
|
|
2033
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.
|
|
2042
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.2/docs/rules/named.md
|
|
2034
2043
|
*/
|
|
2035
2044
|
'import-x/named'?: Linter.RuleEntry<ImportXNamed>;
|
|
2036
2045
|
/**
|
|
2037
2046
|
* Ensure imported namespaces contain dereferenced properties as they are dereferenced.
|
|
2038
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.
|
|
2047
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.2/docs/rules/namespace.md
|
|
2039
2048
|
*/
|
|
2040
2049
|
'import-x/namespace'?: Linter.RuleEntry<ImportXNamespace>;
|
|
2041
2050
|
/**
|
|
2042
2051
|
* Enforce a newline after import statements.
|
|
2043
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.
|
|
2052
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.2/docs/rules/newline-after-import.md
|
|
2044
2053
|
*/
|
|
2045
2054
|
'import-x/newline-after-import'?: Linter.RuleEntry<ImportXNewlineAfterImport>;
|
|
2046
2055
|
/**
|
|
2047
2056
|
* Forbid import of modules using absolute paths.
|
|
2048
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.
|
|
2057
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.2/docs/rules/no-absolute-path.md
|
|
2049
2058
|
*/
|
|
2050
2059
|
'import-x/no-absolute-path'?: Linter.RuleEntry<ImportXNoAbsolutePath>;
|
|
2051
2060
|
/**
|
|
2052
2061
|
* Forbid AMD `require` and `define` calls.
|
|
2053
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.
|
|
2062
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.2/docs/rules/no-amd.md
|
|
2054
2063
|
*/
|
|
2055
2064
|
'import-x/no-amd'?: Linter.RuleEntry<[]>;
|
|
2056
2065
|
/**
|
|
2057
2066
|
* Forbid anonymous values as default exports.
|
|
2058
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.
|
|
2067
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.2/docs/rules/no-anonymous-default-export.md
|
|
2059
2068
|
*/
|
|
2060
2069
|
'import-x/no-anonymous-default-export'?: Linter.RuleEntry<ImportXNoAnonymousDefaultExport>;
|
|
2061
2070
|
/**
|
|
2062
2071
|
* Forbid CommonJS `require` calls and `module.exports` or `exports.*`.
|
|
2063
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.
|
|
2072
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.2/docs/rules/no-commonjs.md
|
|
2064
2073
|
*/
|
|
2065
2074
|
'import-x/no-commonjs'?: Linter.RuleEntry<ImportXNoCommonjs>;
|
|
2066
2075
|
/**
|
|
2067
2076
|
* Forbid a module from importing a module with a dependency path back to itself.
|
|
2068
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.
|
|
2077
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.2/docs/rules/no-cycle.md
|
|
2069
2078
|
*/
|
|
2070
2079
|
'import-x/no-cycle'?: Linter.RuleEntry<ImportXNoCycle>;
|
|
2071
2080
|
/**
|
|
2072
2081
|
* Forbid default exports.
|
|
2073
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.
|
|
2082
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.2/docs/rules/no-default-export.md
|
|
2074
2083
|
*/
|
|
2075
2084
|
'import-x/no-default-export'?: Linter.RuleEntry<[]>;
|
|
2076
2085
|
/**
|
|
2077
2086
|
* Forbid imported names marked with `@deprecated` documentation tag.
|
|
2078
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.
|
|
2087
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.2/docs/rules/no-deprecated.md
|
|
2079
2088
|
*/
|
|
2080
2089
|
'import-x/no-deprecated'?: Linter.RuleEntry<[]>;
|
|
2081
2090
|
/**
|
|
2082
2091
|
* Forbid repeated import of the same module in multiple places.
|
|
2083
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.
|
|
2092
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.2/docs/rules/no-duplicates.md
|
|
2084
2093
|
*/
|
|
2085
2094
|
'import-x/no-duplicates'?: Linter.RuleEntry<ImportXNoDuplicates>;
|
|
2086
2095
|
/**
|
|
2087
2096
|
* Forbid `require()` calls with expressions.
|
|
2088
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.
|
|
2097
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.2/docs/rules/no-dynamic-require.md
|
|
2089
2098
|
*/
|
|
2090
2099
|
'import-x/no-dynamic-require'?: Linter.RuleEntry<ImportXNoDynamicRequire>;
|
|
2091
2100
|
/**
|
|
2092
2101
|
* Forbid empty named import blocks.
|
|
2093
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.
|
|
2102
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.2/docs/rules/no-empty-named-blocks.md
|
|
2094
2103
|
*/
|
|
2095
2104
|
'import-x/no-empty-named-blocks'?: Linter.RuleEntry<[]>;
|
|
2096
2105
|
/**
|
|
2097
2106
|
* Forbid the use of extraneous packages.
|
|
2098
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.
|
|
2107
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.2/docs/rules/no-extraneous-dependencies.md
|
|
2099
2108
|
*/
|
|
2100
2109
|
'import-x/no-extraneous-dependencies'?: Linter.RuleEntry<ImportXNoExtraneousDependencies>;
|
|
2101
2110
|
/**
|
|
2102
2111
|
* Forbid import statements with CommonJS module.exports.
|
|
2103
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.
|
|
2112
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.2/docs/rules/no-import-module-exports.md
|
|
2104
2113
|
*/
|
|
2105
2114
|
'import-x/no-import-module-exports'?: Linter.RuleEntry<ImportXNoImportModuleExports>;
|
|
2106
2115
|
/**
|
|
2107
2116
|
* Forbid importing the submodules of other modules.
|
|
2108
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.
|
|
2117
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.2/docs/rules/no-internal-modules.md
|
|
2109
2118
|
*/
|
|
2110
2119
|
'import-x/no-internal-modules'?: Linter.RuleEntry<ImportXNoInternalModules>;
|
|
2111
2120
|
/**
|
|
2112
2121
|
* Forbid the use of mutable exports with `var` or `let`.
|
|
2113
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.
|
|
2122
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.2/docs/rules/no-mutable-exports.md
|
|
2114
2123
|
*/
|
|
2115
2124
|
'import-x/no-mutable-exports'?: Linter.RuleEntry<[]>;
|
|
2116
2125
|
/**
|
|
2117
2126
|
* Forbid use of exported name as identifier of default export.
|
|
2118
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.
|
|
2127
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.2/docs/rules/no-named-as-default.md
|
|
2119
2128
|
*/
|
|
2120
2129
|
'import-x/no-named-as-default'?: Linter.RuleEntry<[]>;
|
|
2121
2130
|
/**
|
|
2122
2131
|
* Forbid use of exported name as property of default export.
|
|
2123
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.
|
|
2132
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.2/docs/rules/no-named-as-default-member.md
|
|
2124
2133
|
*/
|
|
2125
2134
|
'import-x/no-named-as-default-member'?: Linter.RuleEntry<[]>;
|
|
2126
2135
|
/**
|
|
2127
2136
|
* Forbid named default exports.
|
|
2128
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.
|
|
2137
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.2/docs/rules/no-named-default.md
|
|
2129
2138
|
*/
|
|
2130
2139
|
'import-x/no-named-default'?: Linter.RuleEntry<[]>;
|
|
2131
2140
|
/**
|
|
2132
2141
|
* Forbid named exports.
|
|
2133
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.
|
|
2142
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.2/docs/rules/no-named-export.md
|
|
2134
2143
|
*/
|
|
2135
2144
|
'import-x/no-named-export'?: Linter.RuleEntry<[]>;
|
|
2136
2145
|
/**
|
|
2137
2146
|
* Forbid namespace (a.k.a. "wildcard" `*`) imports.
|
|
2138
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.
|
|
2147
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.2/docs/rules/no-namespace.md
|
|
2139
2148
|
*/
|
|
2140
2149
|
'import-x/no-namespace'?: Linter.RuleEntry<ImportXNoNamespace>;
|
|
2141
2150
|
/**
|
|
2142
2151
|
* Forbid Node.js builtin modules.
|
|
2143
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.
|
|
2152
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.2/docs/rules/no-nodejs-modules.md
|
|
2144
2153
|
*/
|
|
2145
2154
|
'import-x/no-nodejs-modules'?: Linter.RuleEntry<ImportXNoNodejsModules>;
|
|
2146
2155
|
/**
|
|
2147
2156
|
* Forbid importing packages through relative paths.
|
|
2148
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.
|
|
2157
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.2/docs/rules/no-relative-packages.md
|
|
2149
2158
|
*/
|
|
2150
2159
|
'import-x/no-relative-packages'?: Linter.RuleEntry<ImportXNoRelativePackages>;
|
|
2151
2160
|
/**
|
|
2152
2161
|
* Forbid importing modules from parent directories.
|
|
2153
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.
|
|
2162
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.2/docs/rules/no-relative-parent-imports.md
|
|
2154
2163
|
*/
|
|
2155
2164
|
'import-x/no-relative-parent-imports'?: Linter.RuleEntry<ImportXNoRelativeParentImports>;
|
|
2156
2165
|
/**
|
|
2157
2166
|
* Forbid importing a default export by a different name.
|
|
2158
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.
|
|
2167
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.2/docs/rules/no-rename-default.md
|
|
2159
2168
|
*/
|
|
2160
2169
|
'import-x/no-rename-default'?: Linter.RuleEntry<ImportXNoRenameDefault>;
|
|
2161
2170
|
/**
|
|
2162
2171
|
* Enforce which files can be imported in a given folder.
|
|
2163
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.
|
|
2172
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.2/docs/rules/no-restricted-paths.md
|
|
2164
2173
|
*/
|
|
2165
2174
|
'import-x/no-restricted-paths'?: Linter.RuleEntry<ImportXNoRestrictedPaths>;
|
|
2166
2175
|
/**
|
|
2167
2176
|
* Forbid a module from importing itself.
|
|
2168
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.
|
|
2177
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.2/docs/rules/no-self-import.md
|
|
2169
2178
|
*/
|
|
2170
2179
|
'import-x/no-self-import'?: Linter.RuleEntry<[]>;
|
|
2171
2180
|
/**
|
|
2172
2181
|
* Forbid unassigned imports.
|
|
2173
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.
|
|
2182
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.2/docs/rules/no-unassigned-import.md
|
|
2174
2183
|
*/
|
|
2175
2184
|
'import-x/no-unassigned-import'?: Linter.RuleEntry<ImportXNoUnassignedImport>;
|
|
2176
2185
|
/**
|
|
2177
2186
|
* Ensure imports point to a file/module that can be resolved.
|
|
2178
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.
|
|
2187
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.2/docs/rules/no-unresolved.md
|
|
2179
2188
|
*/
|
|
2180
2189
|
'import-x/no-unresolved'?: Linter.RuleEntry<ImportXNoUnresolved>;
|
|
2181
2190
|
/**
|
|
2182
2191
|
* Forbid modules without exports, or exports without matching import in another module.
|
|
2183
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.
|
|
2192
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.2/docs/rules/no-unused-modules.md
|
|
2184
2193
|
*/
|
|
2185
2194
|
'import-x/no-unused-modules'?: Linter.RuleEntry<ImportXNoUnusedModules>;
|
|
2186
2195
|
/**
|
|
2187
2196
|
* Forbid unnecessary path segments in import and require statements.
|
|
2188
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.
|
|
2197
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.2/docs/rules/no-useless-path-segments.md
|
|
2189
2198
|
*/
|
|
2190
2199
|
'import-x/no-useless-path-segments'?: Linter.RuleEntry<ImportXNoUselessPathSegments>;
|
|
2191
2200
|
/**
|
|
2192
2201
|
* Forbid webpack loader syntax in imports.
|
|
2193
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.
|
|
2202
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.2/docs/rules/no-webpack-loader-syntax.md
|
|
2194
2203
|
*/
|
|
2195
2204
|
'import-x/no-webpack-loader-syntax'?: Linter.RuleEntry<[]>;
|
|
2196
2205
|
/**
|
|
2197
2206
|
* Enforce a convention in module import order.
|
|
2198
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.
|
|
2207
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.2/docs/rules/order.md
|
|
2199
2208
|
*/
|
|
2200
2209
|
'import-x/order'?: Linter.RuleEntry<ImportXOrder>;
|
|
2201
2210
|
/**
|
|
2202
2211
|
* Prefer a default export if module exports a single name or multiple names.
|
|
2203
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.
|
|
2212
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.2/docs/rules/prefer-default-export.md
|
|
2204
2213
|
*/
|
|
2205
2214
|
'import-x/prefer-default-export'?: Linter.RuleEntry<ImportXPreferDefaultExport>;
|
|
2206
2215
|
/**
|
|
2207
2216
|
* Enforce using namespace imports for specific modules, like `react`/`react-dom`, etc.
|
|
2208
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.
|
|
2217
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.2/docs/rules/prefer-namespace-import.md
|
|
2209
2218
|
*/
|
|
2210
2219
|
'import-x/prefer-namespace-import'?: Linter.RuleEntry<ImportXPreferNamespaceImport>;
|
|
2211
2220
|
/**
|
|
2212
2221
|
* Forbid potentially ambiguous parse goal (`script` vs. `module`).
|
|
2213
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.
|
|
2222
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.2/docs/rules/unambiguous.md
|
|
2214
2223
|
*/
|
|
2215
2224
|
'import-x/unambiguous'?: Linter.RuleEntry<[]>;
|
|
2216
2225
|
/**
|
|
@@ -2938,6 +2947,11 @@ interface RuleOptions {
|
|
|
2938
2947
|
* @see https://github.com/eslint/markdown/blob/main/docs/rules/fenced-code-language.md
|
|
2939
2948
|
*/
|
|
2940
2949
|
'markdown/fenced-code-language'?: Linter.RuleEntry<MarkdownFencedCodeLanguage>;
|
|
2950
|
+
/**
|
|
2951
|
+
* Require or disallow metadata for fenced code blocks
|
|
2952
|
+
* @see https://github.com/eslint/markdown/blob/main/docs/rules/fenced-code-meta.md
|
|
2953
|
+
*/
|
|
2954
|
+
'markdown/fenced-code-meta'?: Linter.RuleEntry<MarkdownFencedCodeMeta>;
|
|
2941
2955
|
/**
|
|
2942
2956
|
* Enforce heading levels increment by one
|
|
2943
2957
|
* @see https://github.com/eslint/markdown/blob/main/docs/rules/heading-increment.md
|
|
@@ -3248,6 +3262,11 @@ interface RuleOptions {
|
|
|
3248
3262
|
* @see https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/prefer-global/console.md
|
|
3249
3263
|
*/
|
|
3250
3264
|
'n/prefer-global/console'?: Linter.RuleEntry<NPreferGlobalConsole>;
|
|
3265
|
+
/**
|
|
3266
|
+
* enforce either `crypto` or `require("crypto").webcrypto`
|
|
3267
|
+
* @see https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/prefer-global/crypto.md
|
|
3268
|
+
*/
|
|
3269
|
+
'n/prefer-global/crypto'?: Linter.RuleEntry<NPreferGlobalCrypto>;
|
|
3251
3270
|
/**
|
|
3252
3271
|
* enforce either `process` or `require("process")`
|
|
3253
3272
|
* @see https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/prefer-global/process.md
|
|
@@ -3263,6 +3282,11 @@ interface RuleOptions {
|
|
|
3263
3282
|
* @see https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/prefer-global/text-encoder.md
|
|
3264
3283
|
*/
|
|
3265
3284
|
'n/prefer-global/text-encoder'?: Linter.RuleEntry<NPreferGlobalTextEncoder>;
|
|
3285
|
+
/**
|
|
3286
|
+
* enforce either global timer functions or `require("timers")`
|
|
3287
|
+
* @see https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/prefer-global/timers.md
|
|
3288
|
+
*/
|
|
3289
|
+
'n/prefer-global/timers'?: Linter.RuleEntry<NPreferGlobalTimers>;
|
|
3266
3290
|
/**
|
|
3267
3291
|
* enforce either `URL` or `require("url").URL`
|
|
3268
3292
|
* @see https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/prefer-global/url.md
|
|
@@ -4307,6 +4331,296 @@ interface RuleOptions {
|
|
|
4307
4331
|
* @see https://perfectionist.dev/rules/sort-variable-declarations
|
|
4308
4332
|
*/
|
|
4309
4333
|
'perfectionist/sort-variable-declarations'?: Linter.RuleEntry<PerfectionistSortVariableDeclarations>;
|
|
4334
|
+
/**
|
|
4335
|
+
* Enforces a blank line between Playwright test blocks (e.g., test, test.step, test.beforeEach, etc.).
|
|
4336
|
+
* @see https://github.com/mskelton/eslint-plugin-playwright/tree/main/docs/rules/consistent-spacing-between-blocks.md
|
|
4337
|
+
*/
|
|
4338
|
+
'playwright/consistent-spacing-between-blocks'?: Linter.RuleEntry<[]>;
|
|
4339
|
+
/**
|
|
4340
|
+
* Enforce assertion to be made in a test body
|
|
4341
|
+
* @see https://github.com/mskelton/eslint-plugin-playwright/tree/main/docs/rules/expect-expect.md
|
|
4342
|
+
*/
|
|
4343
|
+
'playwright/expect-expect'?: Linter.RuleEntry<PlaywrightExpectExpect>;
|
|
4344
|
+
/**
|
|
4345
|
+
* Enforces a maximum number assertion calls in a test body
|
|
4346
|
+
* @see https://github.com/mskelton/eslint-plugin-playwright/tree/main/docs/rules/max-expects.md
|
|
4347
|
+
*/
|
|
4348
|
+
'playwright/max-expects'?: Linter.RuleEntry<PlaywrightMaxExpects>;
|
|
4349
|
+
/**
|
|
4350
|
+
* Enforces a maximum depth to nested describe calls
|
|
4351
|
+
* @see https://github.com/mskelton/eslint-plugin-playwright/tree/main/docs/rules/max-nested-describe.md
|
|
4352
|
+
*/
|
|
4353
|
+
'playwright/max-nested-describe'?: Linter.RuleEntry<PlaywrightMaxNestedDescribe>;
|
|
4354
|
+
/**
|
|
4355
|
+
* Identify false positives when async Playwright APIs are not properly awaited.
|
|
4356
|
+
* @see https://github.com/mskelton/eslint-plugin-playwright/tree/main/docs/rules/missing-playwright-await.md
|
|
4357
|
+
*/
|
|
4358
|
+
'playwright/missing-playwright-await'?: Linter.RuleEntry<PlaywrightMissingPlaywrightAwait>;
|
|
4359
|
+
/**
|
|
4360
|
+
* Disallow commented out tests
|
|
4361
|
+
* @see https://github.com/mskelton/eslint-plugin-playwright/tree/main/docs/rules/no-commented-out-tests.md
|
|
4362
|
+
*/
|
|
4363
|
+
'playwright/no-commented-out-tests'?: Linter.RuleEntry<[]>;
|
|
4364
|
+
/**
|
|
4365
|
+
* Disallow calling `expect` conditionally
|
|
4366
|
+
* @see https://github.com/mskelton/eslint-plugin-playwright/tree/main/docs/rules/no-conditional-expect.md
|
|
4367
|
+
*/
|
|
4368
|
+
'playwright/no-conditional-expect'?: Linter.RuleEntry<[]>;
|
|
4369
|
+
/**
|
|
4370
|
+
* Disallow conditional logic in tests
|
|
4371
|
+
* @see https://github.com/mskelton/eslint-plugin-playwright/tree/main/docs/rules/no-conditional-in-test.md
|
|
4372
|
+
*/
|
|
4373
|
+
'playwright/no-conditional-in-test'?: Linter.RuleEntry<[]>;
|
|
4374
|
+
/**
|
|
4375
|
+
* Disallow duplicate setup and teardown hooks
|
|
4376
|
+
* @see https://github.com/mskelton/eslint-plugin-playwright/tree/main/docs/rules/no-duplicate-hooks.md
|
|
4377
|
+
*/
|
|
4378
|
+
'playwright/no-duplicate-hooks'?: Linter.RuleEntry<[]>;
|
|
4379
|
+
/**
|
|
4380
|
+
* Disallow multiple `test.slow()` calls in the same test
|
|
4381
|
+
* @see https://github.com/mskelton/eslint-plugin-playwright/tree/main/docs/rules/no-duplicate-slow.md
|
|
4382
|
+
*/
|
|
4383
|
+
'playwright/no-duplicate-slow'?: Linter.RuleEntry<[]>;
|
|
4384
|
+
/**
|
|
4385
|
+
* The use of ElementHandle is discouraged, use Locator instead
|
|
4386
|
+
* @see https://github.com/mskelton/eslint-plugin-playwright/tree/main/docs/rules/no-element-handle.md
|
|
4387
|
+
*/
|
|
4388
|
+
'playwright/no-element-handle'?: Linter.RuleEntry<[]>;
|
|
4389
|
+
/**
|
|
4390
|
+
* The use of `page.$eval` and `page.$$eval` are discouraged, use `locator.evaluate` or `locator.evaluateAll` instead
|
|
4391
|
+
* @see https://github.com/mskelton/eslint-plugin-playwright/tree/main/docs/rules/no-eval.md
|
|
4392
|
+
*/
|
|
4393
|
+
'playwright/no-eval'?: Linter.RuleEntry<[]>;
|
|
4394
|
+
/**
|
|
4395
|
+
* Prevent usage of `.only()` focus test annotation
|
|
4396
|
+
* @see https://github.com/mskelton/eslint-plugin-playwright/tree/main/docs/rules/no-focused-test.md
|
|
4397
|
+
*/
|
|
4398
|
+
'playwright/no-focused-test'?: Linter.RuleEntry<[]>;
|
|
4399
|
+
/**
|
|
4400
|
+
* Prevent usage of `{ force: true }` option.
|
|
4401
|
+
* @see https://github.com/mskelton/eslint-plugin-playwright/tree/main/docs/rules/no-force-option.md
|
|
4402
|
+
*/
|
|
4403
|
+
'playwright/no-force-option'?: Linter.RuleEntry<[]>;
|
|
4404
|
+
/**
|
|
4405
|
+
* Disallows the usage of getByTitle()
|
|
4406
|
+
* @see https://github.com/mskelton/eslint-plugin-playwright/tree/main/docs/rules/no-get-by-title.md
|
|
4407
|
+
*/
|
|
4408
|
+
'playwright/no-get-by-title'?: Linter.RuleEntry<[]>;
|
|
4409
|
+
/**
|
|
4410
|
+
* Disallow setup and teardown hooks
|
|
4411
|
+
* @see https://github.com/mskelton/eslint-plugin-playwright/tree/main/docs/rules/no-hooks.md
|
|
4412
|
+
*/
|
|
4413
|
+
'playwright/no-hooks'?: Linter.RuleEntry<PlaywrightNoHooks>;
|
|
4414
|
+
/**
|
|
4415
|
+
* Disallow nested `test.step()` methods
|
|
4416
|
+
* @see https://github.com/mskelton/eslint-plugin-playwright/tree/main/docs/rules/no-nested-step.md
|
|
4417
|
+
*/
|
|
4418
|
+
'playwright/no-nested-step'?: Linter.RuleEntry<[]>;
|
|
4419
|
+
/**
|
|
4420
|
+
* Prevent usage of the networkidle option
|
|
4421
|
+
* @see https://github.com/mskelton/eslint-plugin-playwright/tree/main/docs/rules/no-networkidle.md
|
|
4422
|
+
*/
|
|
4423
|
+
'playwright/no-networkidle'?: Linter.RuleEntry<[]>;
|
|
4424
|
+
/**
|
|
4425
|
+
* Disallow usage of nth methods
|
|
4426
|
+
* @see https://github.com/mskelton/eslint-plugin-playwright/tree/main/docs/rules/no-nth-methods.md
|
|
4427
|
+
*/
|
|
4428
|
+
'playwright/no-nth-methods'?: Linter.RuleEntry<[]>;
|
|
4429
|
+
/**
|
|
4430
|
+
* Prevent usage of page.pause()
|
|
4431
|
+
* @see https://github.com/mskelton/eslint-plugin-playwright/tree/main/docs/rules/no-page-pause.md
|
|
4432
|
+
*/
|
|
4433
|
+
'playwright/no-page-pause'?: Linter.RuleEntry<[]>;
|
|
4434
|
+
/**
|
|
4435
|
+
* Disallows the usage of raw locators
|
|
4436
|
+
* @see https://github.com/mskelton/eslint-plugin-playwright/tree/main/docs/rules/no-raw-locators.md
|
|
4437
|
+
*/
|
|
4438
|
+
'playwright/no-raw-locators'?: Linter.RuleEntry<PlaywrightNoRawLocators>;
|
|
4439
|
+
/**
|
|
4440
|
+
* Disallows the usage of specific locator methods
|
|
4441
|
+
* @see https://github.com/mskelton/eslint-plugin-playwright/tree/main/docs/rules/no-restricted-locators.md
|
|
4442
|
+
*/
|
|
4443
|
+
'playwright/no-restricted-locators'?: Linter.RuleEntry<PlaywrightNoRestrictedLocators>;
|
|
4444
|
+
/**
|
|
4445
|
+
* Disallow specific matchers & modifiers
|
|
4446
|
+
* @see https://github.com/mskelton/eslint-plugin-playwright/tree/main/docs/rules/no-restricted-matchers.md
|
|
4447
|
+
*/
|
|
4448
|
+
'playwright/no-restricted-matchers'?: Linter.RuleEntry<PlaywrightNoRestrictedMatchers>;
|
|
4449
|
+
/**
|
|
4450
|
+
* Disallows the usage of specific roles in getByRole()
|
|
4451
|
+
* @see https://github.com/mskelton/eslint-plugin-playwright/tree/main/docs/rules/no-restricted-roles.md
|
|
4452
|
+
*/
|
|
4453
|
+
'playwright/no-restricted-roles'?: Linter.RuleEntry<PlaywrightNoRestrictedRoles>;
|
|
4454
|
+
/**
|
|
4455
|
+
* Prevent usage of the `.skip()` skip test annotation.
|
|
4456
|
+
* @see https://github.com/mskelton/eslint-plugin-playwright/tree/main/docs/rules/no-skipped-test.md
|
|
4457
|
+
*/
|
|
4458
|
+
'playwright/no-skipped-test'?: Linter.RuleEntry<PlaywrightNoSkippedTest>;
|
|
4459
|
+
/**
|
|
4460
|
+
* Prevent usage of the `.slow()` slow test annotation.
|
|
4461
|
+
* @see https://github.com/mskelton/eslint-plugin-playwright/tree/main/docs/rules/no-slowed-test.md
|
|
4462
|
+
*/
|
|
4463
|
+
'playwright/no-slowed-test'?: Linter.RuleEntry<PlaywrightNoSlowedTest>;
|
|
4464
|
+
/**
|
|
4465
|
+
* Disallow using `expect` outside of `test` blocks
|
|
4466
|
+
* @see https://github.com/mskelton/eslint-plugin-playwright/tree/main/docs/rules/no-standalone-expect.md
|
|
4467
|
+
*/
|
|
4468
|
+
'playwright/no-standalone-expect'?: Linter.RuleEntry<[]>;
|
|
4469
|
+
/**
|
|
4470
|
+
* Prevent unsafe variable references in page.evaluate() and page.addInitScript()
|
|
4471
|
+
* @see https://github.com/mskelton/eslint-plugin-playwright/tree/main/docs/rules/no-unsafe-references.md
|
|
4472
|
+
*/
|
|
4473
|
+
'playwright/no-unsafe-references'?: Linter.RuleEntry<[]>;
|
|
4474
|
+
/**
|
|
4475
|
+
* Disallow usage of page locators that are not used
|
|
4476
|
+
* @see https://github.com/mskelton/eslint-plugin-playwright/tree/main/docs/rules/no-unused-locators.md
|
|
4477
|
+
*/
|
|
4478
|
+
'playwright/no-unused-locators'?: Linter.RuleEntry<[]>;
|
|
4479
|
+
/**
|
|
4480
|
+
* Disallow unnecessary awaits for Playwright methods
|
|
4481
|
+
* @see https://github.com/mskelton/eslint-plugin-playwright/tree/main/docs/rules/no-useless-await.md
|
|
4482
|
+
*/
|
|
4483
|
+
'playwright/no-useless-await'?: Linter.RuleEntry<[]>;
|
|
4484
|
+
/**
|
|
4485
|
+
* Disallow usage of 'not' matchers when a more specific matcher exists
|
|
4486
|
+
* @see https://github.com/mskelton/eslint-plugin-playwright/tree/main/docs/rules/no-useless-not.md
|
|
4487
|
+
*/
|
|
4488
|
+
'playwright/no-useless-not'?: Linter.RuleEntry<[]>;
|
|
4489
|
+
/**
|
|
4490
|
+
* Prevent usage of page.waitForNavigation()
|
|
4491
|
+
* @see https://github.com/mskelton/eslint-plugin-playwright/tree/main/docs/rules/no-wait-for-navigation.md
|
|
4492
|
+
*/
|
|
4493
|
+
'playwright/no-wait-for-navigation'?: Linter.RuleEntry<[]>;
|
|
4494
|
+
/**
|
|
4495
|
+
* Prevent usage of page.waitForSelector()
|
|
4496
|
+
* @see https://github.com/mskelton/eslint-plugin-playwright/tree/main/docs/rules/no-wait-for-selector.md
|
|
4497
|
+
*/
|
|
4498
|
+
'playwright/no-wait-for-selector'?: Linter.RuleEntry<[]>;
|
|
4499
|
+
/**
|
|
4500
|
+
* Prevent usage of page.waitForTimeout()
|
|
4501
|
+
* @see https://github.com/mskelton/eslint-plugin-playwright/tree/main/docs/rules/no-wait-for-timeout.md
|
|
4502
|
+
*/
|
|
4503
|
+
'playwright/no-wait-for-timeout'?: Linter.RuleEntry<[]>;
|
|
4504
|
+
/**
|
|
4505
|
+
* Suggest using the built-in comparison matchers
|
|
4506
|
+
* @see https://github.com/mskelton/eslint-plugin-playwright/tree/main/docs/rules/prefer-comparison-matcher.md
|
|
4507
|
+
*/
|
|
4508
|
+
'playwright/prefer-comparison-matcher'?: Linter.RuleEntry<[]>;
|
|
4509
|
+
/**
|
|
4510
|
+
* Suggest using the built-in equality matchers
|
|
4511
|
+
* @see https://github.com/mskelton/eslint-plugin-playwright/tree/main/docs/rules/prefer-equality-matcher.md
|
|
4512
|
+
*/
|
|
4513
|
+
'playwright/prefer-equality-matcher'?: Linter.RuleEntry<[]>;
|
|
4514
|
+
/**
|
|
4515
|
+
* Prefer having hooks in a consistent order
|
|
4516
|
+
* @see https://github.com/mskelton/eslint-plugin-playwright/tree/main/docs/rules/prefer-hooks-in-order.md
|
|
4517
|
+
*/
|
|
4518
|
+
'playwright/prefer-hooks-in-order'?: Linter.RuleEntry<[]>;
|
|
4519
|
+
/**
|
|
4520
|
+
* Suggest having hooks before any test cases
|
|
4521
|
+
* @see https://github.com/mskelton/eslint-plugin-playwright/tree/main/docs/rules/prefer-hooks-on-top.md
|
|
4522
|
+
*/
|
|
4523
|
+
'playwright/prefer-hooks-on-top'?: Linter.RuleEntry<[]>;
|
|
4524
|
+
/**
|
|
4525
|
+
* Suggest locators over page methods
|
|
4526
|
+
* @see https://github.com/mskelton/eslint-plugin-playwright/tree/main/docs/rules/prefer-locator.md
|
|
4527
|
+
*/
|
|
4528
|
+
'playwright/prefer-locator'?: Linter.RuleEntry<[]>;
|
|
4529
|
+
/**
|
|
4530
|
+
* Enforce lowercase test names
|
|
4531
|
+
* @see https://github.com/mskelton/eslint-plugin-playwright/tree/main/docs/rules/prefer-lowercase-title.md
|
|
4532
|
+
*/
|
|
4533
|
+
'playwright/prefer-lowercase-title'?: Linter.RuleEntry<PlaywrightPreferLowercaseTitle>;
|
|
4534
|
+
/**
|
|
4535
|
+
* Prefer native locator functions
|
|
4536
|
+
* @see https://github.com/mskelton/eslint-plugin-playwright/tree/main/docs/rules/prefer-native-locators.md
|
|
4537
|
+
*/
|
|
4538
|
+
'playwright/prefer-native-locators'?: Linter.RuleEntry<PlaywrightPreferNativeLocators>;
|
|
4539
|
+
/**
|
|
4540
|
+
* Suggest using `toStrictEqual()`
|
|
4541
|
+
* @see https://github.com/mskelton/eslint-plugin-playwright/tree/main/docs/rules/prefer-strict-equal.md
|
|
4542
|
+
*/
|
|
4543
|
+
'playwright/prefer-strict-equal'?: Linter.RuleEntry<[]>;
|
|
4544
|
+
/**
|
|
4545
|
+
* Suggest using `toBe()` for primitive literals
|
|
4546
|
+
* @see https://github.com/mskelton/eslint-plugin-playwright/tree/main/docs/rules/prefer-to-be.md
|
|
4547
|
+
*/
|
|
4548
|
+
'playwright/prefer-to-be'?: Linter.RuleEntry<[]>;
|
|
4549
|
+
/**
|
|
4550
|
+
* Suggest using toContain()
|
|
4551
|
+
* @see https://github.com/mskelton/eslint-plugin-playwright/tree/main/docs/rules/prefer-to-contain.md
|
|
4552
|
+
*/
|
|
4553
|
+
'playwright/prefer-to-contain'?: Linter.RuleEntry<[]>;
|
|
4554
|
+
/**
|
|
4555
|
+
* Suggest using `toHaveCount()`
|
|
4556
|
+
* @see https://github.com/mskelton/eslint-plugin-playwright/tree/main/docs/rules/prefer-to-have-count.md
|
|
4557
|
+
*/
|
|
4558
|
+
'playwright/prefer-to-have-count'?: Linter.RuleEntry<[]>;
|
|
4559
|
+
/**
|
|
4560
|
+
* Suggest using `toHaveLength()`
|
|
4561
|
+
* @see https://github.com/mskelton/eslint-plugin-playwright/tree/main/docs/rules/prefer-to-have-length.md
|
|
4562
|
+
*/
|
|
4563
|
+
'playwright/prefer-to-have-length'?: Linter.RuleEntry<[]>;
|
|
4564
|
+
/**
|
|
4565
|
+
* Prefer web first assertions
|
|
4566
|
+
* @see https://github.com/mskelton/eslint-plugin-playwright/tree/main/docs/rules/prefer-web-first-assertions.md
|
|
4567
|
+
*/
|
|
4568
|
+
'playwright/prefer-web-first-assertions'?: Linter.RuleEntry<[]>;
|
|
4569
|
+
/**
|
|
4570
|
+
* Require setup and teardown code to be within a hook
|
|
4571
|
+
* @see https://github.com/mskelton/eslint-plugin-playwright/tree/main/docs/rules/require-hook.md
|
|
4572
|
+
*/
|
|
4573
|
+
'playwright/require-hook'?: Linter.RuleEntry<PlaywrightRequireHook>;
|
|
4574
|
+
/**
|
|
4575
|
+
* Require all assertions to use `expect.soft`
|
|
4576
|
+
* @see https://github.com/mskelton/eslint-plugin-playwright/tree/main/docs/rules/require-soft-assertions.md
|
|
4577
|
+
*/
|
|
4578
|
+
'playwright/require-soft-assertions'?: Linter.RuleEntry<[]>;
|
|
4579
|
+
/**
|
|
4580
|
+
* Require test blocks to have tags
|
|
4581
|
+
* @see https://github.com/mskelton/eslint-plugin-playwright/tree/main/docs/rules/require-tags.md
|
|
4582
|
+
*/
|
|
4583
|
+
'playwright/require-tags'?: Linter.RuleEntry<[]>;
|
|
4584
|
+
/**
|
|
4585
|
+
* Require a timeout option for `toPass()`
|
|
4586
|
+
* @see https://github.com/mskelton/eslint-plugin-playwright/tree/main/docs/rules/require-to-pass-timeout.md
|
|
4587
|
+
*/
|
|
4588
|
+
'playwright/require-to-pass-timeout'?: Linter.RuleEntry<[]>;
|
|
4589
|
+
/**
|
|
4590
|
+
* Require a message for `toThrow()`
|
|
4591
|
+
* @see https://github.com/mskelton/eslint-plugin-playwright/tree/main/docs/rules/require-to-throw-message.md
|
|
4592
|
+
*/
|
|
4593
|
+
'playwright/require-to-throw-message'?: Linter.RuleEntry<[]>;
|
|
4594
|
+
/**
|
|
4595
|
+
* Require test cases and hooks to be inside a `test.describe` block
|
|
4596
|
+
* @see https://github.com/mskelton/eslint-plugin-playwright/tree/main/docs/rules/require-top-level-describe.md
|
|
4597
|
+
*/
|
|
4598
|
+
'playwright/require-top-level-describe'?: Linter.RuleEntry<PlaywrightRequireTopLevelDescribe>;
|
|
4599
|
+
/**
|
|
4600
|
+
* Enforce valid `describe()` callback
|
|
4601
|
+
* @see https://github.com/mskelton/eslint-plugin-playwright/tree/main/docs/rules/valid-describe-callback.md
|
|
4602
|
+
*/
|
|
4603
|
+
'playwright/valid-describe-callback'?: Linter.RuleEntry<[]>;
|
|
4604
|
+
/**
|
|
4605
|
+
* Enforce valid `expect()` usage
|
|
4606
|
+
* @see https://github.com/mskelton/eslint-plugin-playwright/tree/main/docs/rules/valid-expect.md
|
|
4607
|
+
*/
|
|
4608
|
+
'playwright/valid-expect'?: Linter.RuleEntry<PlaywrightValidExpect>;
|
|
4609
|
+
/**
|
|
4610
|
+
* Require promises that have expectations in their chain to be valid
|
|
4611
|
+
* @see https://github.com/mskelton/eslint-plugin-playwright/tree/main/docs/rules/valid-expect-in-promise.md
|
|
4612
|
+
*/
|
|
4613
|
+
'playwright/valid-expect-in-promise'?: Linter.RuleEntry<[]>;
|
|
4614
|
+
/**
|
|
4615
|
+
* Enforce valid tag format in Playwright test blocks and titles
|
|
4616
|
+
* @see https://github.com/mskelton/eslint-plugin-playwright/tree/main/docs/rules/valid-test-tags.md
|
|
4617
|
+
*/
|
|
4618
|
+
'playwright/valid-test-tags'?: Linter.RuleEntry<PlaywrightValidTestTags>;
|
|
4619
|
+
/**
|
|
4620
|
+
* Enforce valid titles
|
|
4621
|
+
* @see https://github.com/mskelton/eslint-plugin-playwright/tree/main/docs/rules/valid-title.md
|
|
4622
|
+
*/
|
|
4623
|
+
'playwright/valid-title'?: Linter.RuleEntry<PlaywrightValidTitle>;
|
|
4310
4624
|
/**
|
|
4311
4625
|
* Require using arrow functions for callbacks
|
|
4312
4626
|
* @see https://eslint.org/docs/latest/rules/prefer-arrow-callback
|
|
@@ -4401,7 +4715,7 @@ interface RuleOptions {
|
|
|
4401
4715
|
*/
|
|
4402
4716
|
'quotes'?: Linter.RuleEntry<Quotes>;
|
|
4403
4717
|
/**
|
|
4404
|
-
* Enforce the
|
|
4718
|
+
* Enforce the use of the radix argument when using `parseInt()`
|
|
4405
4719
|
* @see https://eslint.org/docs/latest/rules/radix
|
|
4406
4720
|
*/
|
|
4407
4721
|
'radix'?: Linter.RuleEntry<Radix>;
|
|
@@ -5108,11 +5422,21 @@ interface RuleOptions {
|
|
|
5108
5422
|
* @see https://ota-meshi.github.io/eslint-plugin-toml/rules/indent.html
|
|
5109
5423
|
*/
|
|
5110
5424
|
'toml/indent'?: Linter.RuleEntry<TomlIndent>;
|
|
5425
|
+
/**
|
|
5426
|
+
* enforce linebreaks after opening and before closing braces
|
|
5427
|
+
* @see https://ota-meshi.github.io/eslint-plugin-toml/rules/inline-table-curly-newline.html
|
|
5428
|
+
*/
|
|
5429
|
+
'toml/inline-table-curly-newline'?: Linter.RuleEntry<TomlInlineTableCurlyNewline>;
|
|
5111
5430
|
/**
|
|
5112
5431
|
* enforce consistent spacing inside braces
|
|
5113
5432
|
* @see https://ota-meshi.github.io/eslint-plugin-toml/rules/inline-table-curly-spacing.html
|
|
5114
5433
|
*/
|
|
5115
5434
|
'toml/inline-table-curly-spacing'?: Linter.RuleEntry<TomlInlineTableCurlySpacing>;
|
|
5435
|
+
/**
|
|
5436
|
+
* enforce placing inline table key-value pairs on separate lines
|
|
5437
|
+
* @see https://ota-meshi.github.io/eslint-plugin-toml/rules/inline-table-key-value-newline.html
|
|
5438
|
+
*/
|
|
5439
|
+
'toml/inline-table-key-value-newline'?: Linter.RuleEntry<TomlInlineTableKeyValueNewline>;
|
|
5116
5440
|
/**
|
|
5117
5441
|
* enforce consistent spacing between keys and values in key/value pairs
|
|
5118
5442
|
* @see https://ota-meshi.github.io/eslint-plugin-toml/rules/key-spacing.html
|
|
@@ -5201,725 +5525,750 @@ interface RuleOptions {
|
|
|
5201
5525
|
'unicode-bom'?: Linter.RuleEntry<UnicodeBom>;
|
|
5202
5526
|
/**
|
|
5203
5527
|
* Improve regexes by making them shorter, consistent, and safer.
|
|
5204
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5528
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/better-regex.md
|
|
5205
5529
|
*/
|
|
5206
5530
|
'unicorn/better-regex'?: Linter.RuleEntry<UnicornBetterRegex>;
|
|
5207
5531
|
/**
|
|
5208
5532
|
* Enforce a specific parameter name in catch clauses.
|
|
5209
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5533
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/catch-error-name.md
|
|
5210
5534
|
*/
|
|
5211
5535
|
'unicorn/catch-error-name'?: Linter.RuleEntry<UnicornCatchErrorName>;
|
|
5212
5536
|
/**
|
|
5213
5537
|
* Enforce consistent assertion style with `node:assert`.
|
|
5214
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5538
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/consistent-assert.md
|
|
5215
5539
|
*/
|
|
5216
5540
|
'unicorn/consistent-assert'?: Linter.RuleEntry<[]>;
|
|
5217
5541
|
/**
|
|
5218
5542
|
* Prefer passing `Date` directly to the constructor when cloning.
|
|
5219
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5543
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/consistent-date-clone.md
|
|
5220
5544
|
*/
|
|
5221
5545
|
'unicorn/consistent-date-clone'?: Linter.RuleEntry<[]>;
|
|
5222
5546
|
/**
|
|
5223
5547
|
* Use destructured variables over properties.
|
|
5224
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5548
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/consistent-destructuring.md
|
|
5225
5549
|
*/
|
|
5226
5550
|
'unicorn/consistent-destructuring'?: Linter.RuleEntry<[]>;
|
|
5227
5551
|
/**
|
|
5228
5552
|
* Prefer consistent types when spreading a ternary in an array literal.
|
|
5229
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5553
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/consistent-empty-array-spread.md
|
|
5230
5554
|
*/
|
|
5231
5555
|
'unicorn/consistent-empty-array-spread'?: Linter.RuleEntry<[]>;
|
|
5232
5556
|
/**
|
|
5233
5557
|
* Enforce consistent style for element existence checks with `indexOf()`, `lastIndexOf()`, `findIndex()`, and `findLastIndex()`.
|
|
5234
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5558
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/consistent-existence-index-check.md
|
|
5235
5559
|
*/
|
|
5236
5560
|
'unicorn/consistent-existence-index-check'?: Linter.RuleEntry<[]>;
|
|
5237
5561
|
/**
|
|
5238
5562
|
* Move function definitions to the highest possible scope.
|
|
5239
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5563
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/consistent-function-scoping.md
|
|
5240
5564
|
*/
|
|
5241
5565
|
'unicorn/consistent-function-scoping'?: Linter.RuleEntry<UnicornConsistentFunctionScoping>;
|
|
5566
|
+
/**
|
|
5567
|
+
* Enforce consistent style for escaping `${` in template literals.
|
|
5568
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/consistent-template-literal-escape.md
|
|
5569
|
+
*/
|
|
5570
|
+
'unicorn/consistent-template-literal-escape'?: Linter.RuleEntry<[]>;
|
|
5242
5571
|
/**
|
|
5243
5572
|
* Enforce correct `Error` subclassing.
|
|
5244
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5573
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/custom-error-definition.md
|
|
5245
5574
|
*/
|
|
5246
5575
|
'unicorn/custom-error-definition'?: Linter.RuleEntry<[]>;
|
|
5247
5576
|
/**
|
|
5248
5577
|
* Enforce no spaces between braces.
|
|
5249
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5578
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/empty-brace-spaces.md
|
|
5250
5579
|
*/
|
|
5251
5580
|
'unicorn/empty-brace-spaces'?: Linter.RuleEntry<[]>;
|
|
5252
5581
|
/**
|
|
5253
5582
|
* Enforce passing a `message` value when creating a built-in error.
|
|
5254
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5583
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/error-message.md
|
|
5255
5584
|
*/
|
|
5256
5585
|
'unicorn/error-message'?: Linter.RuleEntry<[]>;
|
|
5257
5586
|
/**
|
|
5258
5587
|
* Require escape sequences to use uppercase or lowercase values.
|
|
5259
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5588
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/escape-case.md
|
|
5260
5589
|
*/
|
|
5261
5590
|
'unicorn/escape-case'?: Linter.RuleEntry<UnicornEscapeCase>;
|
|
5262
5591
|
/**
|
|
5263
5592
|
* Add expiration conditions to TODO comments.
|
|
5264
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5593
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/expiring-todo-comments.md
|
|
5265
5594
|
*/
|
|
5266
5595
|
'unicorn/expiring-todo-comments'?: Linter.RuleEntry<UnicornExpiringTodoComments>;
|
|
5267
5596
|
/**
|
|
5268
5597
|
* Enforce explicitly comparing the `length` or `size` property of a value.
|
|
5269
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5598
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/explicit-length-check.md
|
|
5270
5599
|
*/
|
|
5271
5600
|
'unicorn/explicit-length-check'?: Linter.RuleEntry<UnicornExplicitLengthCheck>;
|
|
5272
5601
|
/**
|
|
5273
5602
|
* Enforce a case style for filenames.
|
|
5274
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5603
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/filename-case.md
|
|
5275
5604
|
*/
|
|
5276
5605
|
'unicorn/filename-case'?: Linter.RuleEntry<UnicornFilenameCase>;
|
|
5277
5606
|
/**
|
|
5278
5607
|
* Enforce specific import styles per module.
|
|
5279
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5608
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/import-style.md
|
|
5280
5609
|
*/
|
|
5281
5610
|
'unicorn/import-style'?: Linter.RuleEntry<UnicornImportStyle>;
|
|
5611
|
+
/**
|
|
5612
|
+
* Prevent usage of variables from outside the scope of isolated functions.
|
|
5613
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/isolated-functions.md
|
|
5614
|
+
*/
|
|
5615
|
+
'unicorn/isolated-functions'?: Linter.RuleEntry<UnicornIsolatedFunctions>;
|
|
5282
5616
|
/**
|
|
5283
5617
|
* Enforce the use of `new` for all builtins, except `String`, `Number`, `Boolean`, `Symbol` and `BigInt`.
|
|
5284
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5618
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/new-for-builtins.md
|
|
5285
5619
|
*/
|
|
5286
5620
|
'unicorn/new-for-builtins'?: Linter.RuleEntry<[]>;
|
|
5287
5621
|
/**
|
|
5288
5622
|
* Enforce specifying rules to disable in `eslint-disable` comments.
|
|
5289
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5623
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-abusive-eslint-disable.md
|
|
5290
5624
|
*/
|
|
5291
5625
|
'unicorn/no-abusive-eslint-disable'?: Linter.RuleEntry<[]>;
|
|
5292
5626
|
/**
|
|
5293
5627
|
* Disallow recursive access to `this` within getters and setters.
|
|
5294
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5628
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-accessor-recursion.md
|
|
5295
5629
|
*/
|
|
5296
5630
|
'unicorn/no-accessor-recursion'?: Linter.RuleEntry<[]>;
|
|
5297
5631
|
/**
|
|
5298
5632
|
* Disallow anonymous functions and classes as the default export.
|
|
5299
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5633
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-anonymous-default-export.md
|
|
5300
5634
|
*/
|
|
5301
5635
|
'unicorn/no-anonymous-default-export'?: Linter.RuleEntry<[]>;
|
|
5302
5636
|
/**
|
|
5303
5637
|
* Prevent passing a function reference directly to iterator methods.
|
|
5304
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5638
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-array-callback-reference.md
|
|
5305
5639
|
*/
|
|
5306
5640
|
'unicorn/no-array-callback-reference'?: Linter.RuleEntry<[]>;
|
|
5307
5641
|
/**
|
|
5308
5642
|
* Prefer `for…of` over the `forEach` method.
|
|
5309
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5643
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-array-for-each.md
|
|
5310
5644
|
*/
|
|
5311
5645
|
'unicorn/no-array-for-each'?: Linter.RuleEntry<[]>;
|
|
5312
5646
|
/**
|
|
5313
5647
|
* Disallow using the `this` argument in array methods.
|
|
5314
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5648
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-array-method-this-argument.md
|
|
5315
5649
|
*/
|
|
5316
5650
|
'unicorn/no-array-method-this-argument'?: Linter.RuleEntry<[]>;
|
|
5317
5651
|
/**
|
|
5318
5652
|
* Replaced by `unicorn/prefer-single-call` which covers more cases.
|
|
5319
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5653
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/deleted-and-deprecated-rules.md#no-array-push-push
|
|
5320
5654
|
* @deprecated
|
|
5321
5655
|
*/
|
|
5322
5656
|
'unicorn/no-array-push-push'?: Linter.RuleEntry<[]>;
|
|
5323
5657
|
/**
|
|
5324
5658
|
* Disallow `Array#reduce()` and `Array#reduceRight()`.
|
|
5325
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5659
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-array-reduce.md
|
|
5326
5660
|
*/
|
|
5327
5661
|
'unicorn/no-array-reduce'?: Linter.RuleEntry<UnicornNoArrayReduce>;
|
|
5328
5662
|
/**
|
|
5329
5663
|
* Prefer `Array#toReversed()` over `Array#reverse()`.
|
|
5330
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5664
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-array-reverse.md
|
|
5331
5665
|
*/
|
|
5332
5666
|
'unicorn/no-array-reverse'?: Linter.RuleEntry<UnicornNoArrayReverse>;
|
|
5333
5667
|
/**
|
|
5334
5668
|
* Prefer `Array#toSorted()` over `Array#sort()`.
|
|
5335
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5669
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-array-sort.md
|
|
5336
5670
|
*/
|
|
5337
5671
|
'unicorn/no-array-sort'?: Linter.RuleEntry<UnicornNoArraySort>;
|
|
5338
5672
|
/**
|
|
5339
5673
|
* Disallow member access from await expression.
|
|
5340
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5674
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-await-expression-member.md
|
|
5341
5675
|
*/
|
|
5342
5676
|
'unicorn/no-await-expression-member'?: Linter.RuleEntry<[]>;
|
|
5343
5677
|
/**
|
|
5344
5678
|
* Disallow using `await` in `Promise` method parameters.
|
|
5345
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5679
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-await-in-promise-methods.md
|
|
5346
5680
|
*/
|
|
5347
5681
|
'unicorn/no-await-in-promise-methods'?: Linter.RuleEntry<[]>;
|
|
5348
5682
|
/**
|
|
5349
5683
|
* Do not use leading/trailing space between `console.log` parameters.
|
|
5350
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5684
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-console-spaces.md
|
|
5351
5685
|
*/
|
|
5352
5686
|
'unicorn/no-console-spaces'?: Linter.RuleEntry<[]>;
|
|
5353
5687
|
/**
|
|
5354
5688
|
* Do not use `document.cookie` directly.
|
|
5355
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5689
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-document-cookie.md
|
|
5356
5690
|
*/
|
|
5357
5691
|
'unicorn/no-document-cookie'?: Linter.RuleEntry<[]>;
|
|
5358
5692
|
/**
|
|
5359
5693
|
* Disallow empty files.
|
|
5360
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5694
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-empty-file.md
|
|
5361
5695
|
*/
|
|
5362
5696
|
'unicorn/no-empty-file'?: Linter.RuleEntry<[]>;
|
|
5363
5697
|
/**
|
|
5364
5698
|
* Do not use a `for` loop that can be replaced with a `for-of` loop.
|
|
5365
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5699
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-for-loop.md
|
|
5366
5700
|
*/
|
|
5367
5701
|
'unicorn/no-for-loop'?: Linter.RuleEntry<[]>;
|
|
5368
5702
|
/**
|
|
5369
5703
|
* Enforce the use of Unicode escapes instead of hexadecimal escapes.
|
|
5370
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5704
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-hex-escape.md
|
|
5371
5705
|
*/
|
|
5372
5706
|
'unicorn/no-hex-escape'?: Linter.RuleEntry<[]>;
|
|
5373
5707
|
/**
|
|
5374
5708
|
* Disallow immediate mutation after variable assignment.
|
|
5375
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5709
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-immediate-mutation.md
|
|
5376
5710
|
*/
|
|
5377
5711
|
'unicorn/no-immediate-mutation'?: Linter.RuleEntry<[]>;
|
|
5378
5712
|
/**
|
|
5379
5713
|
* Replaced by `unicorn/no-instanceof-builtins` which covers more cases.
|
|
5380
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5714
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/deleted-and-deprecated-rules.md#no-instanceof-array
|
|
5381
5715
|
* @deprecated
|
|
5382
5716
|
*/
|
|
5383
5717
|
'unicorn/no-instanceof-array'?: Linter.RuleEntry<[]>;
|
|
5384
5718
|
/**
|
|
5385
5719
|
* Disallow `instanceof` with built-in objects
|
|
5386
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5720
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-instanceof-builtins.md
|
|
5387
5721
|
*/
|
|
5388
5722
|
'unicorn/no-instanceof-builtins'?: Linter.RuleEntry<UnicornNoInstanceofBuiltins>;
|
|
5389
5723
|
/**
|
|
5390
5724
|
* Disallow invalid options in `fetch()` and `new Request()`.
|
|
5391
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5725
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-invalid-fetch-options.md
|
|
5392
5726
|
*/
|
|
5393
5727
|
'unicorn/no-invalid-fetch-options'?: Linter.RuleEntry<[]>;
|
|
5394
5728
|
/**
|
|
5395
5729
|
* Prevent calling `EventTarget#removeEventListener()` with the result of an expression.
|
|
5396
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5730
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-invalid-remove-event-listener.md
|
|
5397
5731
|
*/
|
|
5398
5732
|
'unicorn/no-invalid-remove-event-listener'?: Linter.RuleEntry<[]>;
|
|
5399
5733
|
/**
|
|
5400
5734
|
* Disallow identifiers starting with `new` or `class`.
|
|
5401
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5735
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-keyword-prefix.md
|
|
5402
5736
|
*/
|
|
5403
5737
|
'unicorn/no-keyword-prefix'?: Linter.RuleEntry<UnicornNoKeywordPrefix>;
|
|
5404
5738
|
/**
|
|
5405
5739
|
* Replaced by `unicorn/no-unnecessary-slice-end` which covers more cases.
|
|
5406
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5740
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/deleted-and-deprecated-rules.md#no-length-as-slice-end
|
|
5407
5741
|
* @deprecated
|
|
5408
5742
|
*/
|
|
5409
5743
|
'unicorn/no-length-as-slice-end'?: Linter.RuleEntry<[]>;
|
|
5410
5744
|
/**
|
|
5411
5745
|
* Disallow `if` statements as the only statement in `if` blocks without `else`.
|
|
5412
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5746
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-lonely-if.md
|
|
5413
5747
|
*/
|
|
5414
5748
|
'unicorn/no-lonely-if'?: Linter.RuleEntry<[]>;
|
|
5415
5749
|
/**
|
|
5416
5750
|
* Disallow a magic number as the `depth` argument in `Array#flat(…).`
|
|
5417
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5751
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-magic-array-flat-depth.md
|
|
5418
5752
|
*/
|
|
5419
5753
|
'unicorn/no-magic-array-flat-depth'?: Linter.RuleEntry<[]>;
|
|
5420
5754
|
/**
|
|
5421
5755
|
* Disallow named usage of default import and export.
|
|
5422
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5756
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-named-default.md
|
|
5423
5757
|
*/
|
|
5424
5758
|
'unicorn/no-named-default'?: Linter.RuleEntry<[]>;
|
|
5425
5759
|
/**
|
|
5426
5760
|
* Disallow negated conditions.
|
|
5427
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5761
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-negated-condition.md
|
|
5428
5762
|
*/
|
|
5429
5763
|
'unicorn/no-negated-condition'?: Linter.RuleEntry<[]>;
|
|
5430
5764
|
/**
|
|
5431
5765
|
* Disallow negated expression in equality check.
|
|
5432
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5766
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-negation-in-equality-check.md
|
|
5433
5767
|
*/
|
|
5434
5768
|
'unicorn/no-negation-in-equality-check'?: Linter.RuleEntry<[]>;
|
|
5435
5769
|
/**
|
|
5436
5770
|
* Disallow nested ternary expressions.
|
|
5437
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5771
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-nested-ternary.md
|
|
5438
5772
|
*/
|
|
5439
5773
|
'unicorn/no-nested-ternary'?: Linter.RuleEntry<[]>;
|
|
5440
5774
|
/**
|
|
5441
5775
|
* Disallow `new Array()`.
|
|
5442
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5776
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-new-array.md
|
|
5443
5777
|
*/
|
|
5444
5778
|
'unicorn/no-new-array'?: Linter.RuleEntry<[]>;
|
|
5445
5779
|
/**
|
|
5446
5780
|
* Enforce the use of `Buffer.from()` and `Buffer.alloc()` instead of the deprecated `new Buffer()`.
|
|
5447
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5781
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-new-buffer.md
|
|
5448
5782
|
*/
|
|
5449
5783
|
'unicorn/no-new-buffer'?: Linter.RuleEntry<[]>;
|
|
5450
5784
|
/**
|
|
5451
5785
|
* Disallow the use of the `null` literal.
|
|
5452
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5786
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-null.md
|
|
5453
5787
|
*/
|
|
5454
5788
|
'unicorn/no-null'?: Linter.RuleEntry<UnicornNoNull>;
|
|
5455
5789
|
/**
|
|
5456
5790
|
* Disallow the use of objects as default parameters.
|
|
5457
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5791
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-object-as-default-parameter.md
|
|
5458
5792
|
*/
|
|
5459
5793
|
'unicorn/no-object-as-default-parameter'?: Linter.RuleEntry<[]>;
|
|
5460
5794
|
/**
|
|
5461
5795
|
* Disallow `process.exit()`.
|
|
5462
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5796
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-process-exit.md
|
|
5463
5797
|
*/
|
|
5464
5798
|
'unicorn/no-process-exit'?: Linter.RuleEntry<[]>;
|
|
5465
5799
|
/**
|
|
5466
5800
|
* Disallow passing single-element arrays to `Promise` methods.
|
|
5467
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5801
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-single-promise-in-promise-methods.md
|
|
5468
5802
|
*/
|
|
5469
5803
|
'unicorn/no-single-promise-in-promise-methods'?: Linter.RuleEntry<[]>;
|
|
5470
5804
|
/**
|
|
5471
5805
|
* Disallow classes that only have static members.
|
|
5472
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5806
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-static-only-class.md
|
|
5473
5807
|
*/
|
|
5474
5808
|
'unicorn/no-static-only-class'?: Linter.RuleEntry<[]>;
|
|
5475
5809
|
/**
|
|
5476
5810
|
* Disallow `then` property.
|
|
5477
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5811
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-thenable.md
|
|
5478
5812
|
*/
|
|
5479
5813
|
'unicorn/no-thenable'?: Linter.RuleEntry<[]>;
|
|
5480
5814
|
/**
|
|
5481
5815
|
* Disallow assigning `this` to a variable.
|
|
5482
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5816
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-this-assignment.md
|
|
5483
5817
|
*/
|
|
5484
5818
|
'unicorn/no-this-assignment'?: Linter.RuleEntry<[]>;
|
|
5485
5819
|
/**
|
|
5486
5820
|
* Disallow comparing `undefined` using `typeof`.
|
|
5487
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5821
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-typeof-undefined.md
|
|
5488
5822
|
*/
|
|
5489
5823
|
'unicorn/no-typeof-undefined'?: Linter.RuleEntry<UnicornNoTypeofUndefined>;
|
|
5490
5824
|
/**
|
|
5491
5825
|
* Disallow using `1` as the `depth` argument of `Array#flat()`.
|
|
5492
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5826
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-unnecessary-array-flat-depth.md
|
|
5493
5827
|
*/
|
|
5494
5828
|
'unicorn/no-unnecessary-array-flat-depth'?: Linter.RuleEntry<[]>;
|
|
5495
5829
|
/**
|
|
5496
5830
|
* Disallow using `.length` or `Infinity` as the `deleteCount` or `skipCount` argument of `Array#{splice,toSpliced}()`.
|
|
5497
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5831
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-unnecessary-array-splice-count.md
|
|
5498
5832
|
*/
|
|
5499
5833
|
'unicorn/no-unnecessary-array-splice-count'?: Linter.RuleEntry<[]>;
|
|
5500
5834
|
/**
|
|
5501
5835
|
* Disallow awaiting non-promise values.
|
|
5502
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5836
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-unnecessary-await.md
|
|
5503
5837
|
*/
|
|
5504
5838
|
'unicorn/no-unnecessary-await'?: Linter.RuleEntry<[]>;
|
|
5505
5839
|
/**
|
|
5506
5840
|
* Enforce the use of built-in methods instead of unnecessary polyfills.
|
|
5507
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5841
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-unnecessary-polyfills.md
|
|
5508
5842
|
*/
|
|
5509
5843
|
'unicorn/no-unnecessary-polyfills'?: Linter.RuleEntry<UnicornNoUnnecessaryPolyfills>;
|
|
5510
5844
|
/**
|
|
5511
5845
|
* Disallow using `.length` or `Infinity` as the `end` argument of `{Array,String,TypedArray}#slice()`.
|
|
5512
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5846
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-unnecessary-slice-end.md
|
|
5513
5847
|
*/
|
|
5514
5848
|
'unicorn/no-unnecessary-slice-end'?: Linter.RuleEntry<[]>;
|
|
5515
5849
|
/**
|
|
5516
5850
|
* Disallow unreadable array destructuring.
|
|
5517
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5851
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-unreadable-array-destructuring.md
|
|
5518
5852
|
*/
|
|
5519
5853
|
'unicorn/no-unreadable-array-destructuring'?: Linter.RuleEntry<[]>;
|
|
5520
5854
|
/**
|
|
5521
5855
|
* Disallow unreadable IIFEs.
|
|
5522
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5856
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-unreadable-iife.md
|
|
5523
5857
|
*/
|
|
5524
5858
|
'unicorn/no-unreadable-iife'?: Linter.RuleEntry<[]>;
|
|
5525
5859
|
/**
|
|
5526
5860
|
* Disallow unused object properties.
|
|
5527
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5861
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-unused-properties.md
|
|
5528
5862
|
*/
|
|
5529
5863
|
'unicorn/no-unused-properties'?: Linter.RuleEntry<[]>;
|
|
5530
5864
|
/**
|
|
5531
5865
|
* Disallow useless values or fallbacks in `Set`, `Map`, `WeakSet`, or `WeakMap`.
|
|
5532
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5866
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-useless-collection-argument.md
|
|
5533
5867
|
*/
|
|
5534
5868
|
'unicorn/no-useless-collection-argument'?: Linter.RuleEntry<[]>;
|
|
5535
5869
|
/**
|
|
5536
5870
|
* Disallow unnecessary `Error.captureStackTrace(…)`.
|
|
5537
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5871
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-useless-error-capture-stack-trace.md
|
|
5538
5872
|
*/
|
|
5539
5873
|
'unicorn/no-useless-error-capture-stack-trace'?: Linter.RuleEntry<[]>;
|
|
5540
5874
|
/**
|
|
5541
5875
|
* Disallow useless fallback when spreading in object literals.
|
|
5542
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5876
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-useless-fallback-in-spread.md
|
|
5543
5877
|
*/
|
|
5544
5878
|
'unicorn/no-useless-fallback-in-spread'?: Linter.RuleEntry<[]>;
|
|
5879
|
+
/**
|
|
5880
|
+
* Disallow unnecessary `.toArray()` on iterators.
|
|
5881
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-useless-iterator-to-array.md
|
|
5882
|
+
*/
|
|
5883
|
+
'unicorn/no-useless-iterator-to-array'?: Linter.RuleEntry<[]>;
|
|
5545
5884
|
/**
|
|
5546
5885
|
* Disallow useless array length check.
|
|
5547
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5886
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-useless-length-check.md
|
|
5548
5887
|
*/
|
|
5549
5888
|
'unicorn/no-useless-length-check'?: Linter.RuleEntry<[]>;
|
|
5550
5889
|
/**
|
|
5551
5890
|
* Disallow returning/yielding `Promise.resolve/reject()` in async functions or promise callbacks
|
|
5552
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5891
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-useless-promise-resolve-reject.md
|
|
5553
5892
|
*/
|
|
5554
5893
|
'unicorn/no-useless-promise-resolve-reject'?: Linter.RuleEntry<[]>;
|
|
5555
5894
|
/**
|
|
5556
5895
|
* Disallow unnecessary spread.
|
|
5557
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5896
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-useless-spread.md
|
|
5558
5897
|
*/
|
|
5559
5898
|
'unicorn/no-useless-spread'?: Linter.RuleEntry<[]>;
|
|
5560
5899
|
/**
|
|
5561
5900
|
* Disallow useless case in switch statements.
|
|
5562
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5901
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-useless-switch-case.md
|
|
5563
5902
|
*/
|
|
5564
5903
|
'unicorn/no-useless-switch-case'?: Linter.RuleEntry<[]>;
|
|
5565
5904
|
/**
|
|
5566
5905
|
* Disallow useless `undefined`.
|
|
5567
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5906
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-useless-undefined.md
|
|
5568
5907
|
*/
|
|
5569
5908
|
'unicorn/no-useless-undefined'?: Linter.RuleEntry<UnicornNoUselessUndefined>;
|
|
5570
5909
|
/**
|
|
5571
5910
|
* Disallow number literals with zero fractions or dangling dots.
|
|
5572
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5911
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-zero-fractions.md
|
|
5573
5912
|
*/
|
|
5574
5913
|
'unicorn/no-zero-fractions'?: Linter.RuleEntry<[]>;
|
|
5575
5914
|
/**
|
|
5576
5915
|
* Enforce proper case for numeric literals.
|
|
5577
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5916
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/number-literal-case.md
|
|
5578
5917
|
*/
|
|
5579
5918
|
'unicorn/number-literal-case'?: Linter.RuleEntry<UnicornNumberLiteralCase>;
|
|
5580
5919
|
/**
|
|
5581
5920
|
* Enforce the style of numeric separators by correctly grouping digits.
|
|
5582
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5921
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/numeric-separators-style.md
|
|
5583
5922
|
*/
|
|
5584
5923
|
'unicorn/numeric-separators-style'?: Linter.RuleEntry<UnicornNumericSeparatorsStyle>;
|
|
5585
5924
|
/**
|
|
5586
5925
|
* Prefer `.addEventListener()` and `.removeEventListener()` over `on`-functions.
|
|
5587
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5926
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-add-event-listener.md
|
|
5588
5927
|
*/
|
|
5589
5928
|
'unicorn/prefer-add-event-listener'?: Linter.RuleEntry<UnicornPreferAddEventListener>;
|
|
5590
5929
|
/**
|
|
5591
5930
|
* Prefer `.find(…)` and `.findLast(…)` over the first or last element from `.filter(…)`.
|
|
5592
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5931
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-array-find.md
|
|
5593
5932
|
*/
|
|
5594
5933
|
'unicorn/prefer-array-find'?: Linter.RuleEntry<UnicornPreferArrayFind>;
|
|
5595
5934
|
/**
|
|
5596
5935
|
* Prefer `Array#flat()` over legacy techniques to flatten arrays.
|
|
5597
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5936
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-array-flat.md
|
|
5598
5937
|
*/
|
|
5599
5938
|
'unicorn/prefer-array-flat'?: Linter.RuleEntry<UnicornPreferArrayFlat>;
|
|
5600
5939
|
/**
|
|
5601
5940
|
* Prefer `.flatMap(…)` over `.map(…).flat()`.
|
|
5602
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5941
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-array-flat-map.md
|
|
5603
5942
|
*/
|
|
5604
5943
|
'unicorn/prefer-array-flat-map'?: Linter.RuleEntry<[]>;
|
|
5605
5944
|
/**
|
|
5606
5945
|
* Prefer `Array#{indexOf,lastIndexOf}()` over `Array#{findIndex,findLastIndex}()` when looking for the index of an item.
|
|
5607
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5946
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-array-index-of.md
|
|
5608
5947
|
*/
|
|
5609
5948
|
'unicorn/prefer-array-index-of'?: Linter.RuleEntry<[]>;
|
|
5610
5949
|
/**
|
|
5611
5950
|
* Prefer `.some(…)` over `.filter(…).length` check and `.{find,findLast,findIndex,findLastIndex}(…)`.
|
|
5612
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5951
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-array-some.md
|
|
5613
5952
|
*/
|
|
5614
5953
|
'unicorn/prefer-array-some'?: Linter.RuleEntry<[]>;
|
|
5615
5954
|
/**
|
|
5616
5955
|
* Prefer `.at()` method for index access and `String#charAt()`.
|
|
5617
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5956
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-at.md
|
|
5618
5957
|
*/
|
|
5619
5958
|
'unicorn/prefer-at'?: Linter.RuleEntry<UnicornPreferAt>;
|
|
5620
5959
|
/**
|
|
5621
5960
|
* Prefer `BigInt` literals over the constructor.
|
|
5622
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5961
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-bigint-literals.md
|
|
5623
5962
|
*/
|
|
5624
5963
|
'unicorn/prefer-bigint-literals'?: Linter.RuleEntry<[]>;
|
|
5625
5964
|
/**
|
|
5626
5965
|
* Prefer `Blob#arrayBuffer()` over `FileReader#readAsArrayBuffer(…)` and `Blob#text()` over `FileReader#readAsText(…)`.
|
|
5627
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5966
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-blob-reading-methods.md
|
|
5628
5967
|
*/
|
|
5629
5968
|
'unicorn/prefer-blob-reading-methods'?: Linter.RuleEntry<[]>;
|
|
5630
5969
|
/**
|
|
5631
5970
|
* Prefer class field declarations over `this` assignments in constructors.
|
|
5632
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5971
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-class-fields.md
|
|
5633
5972
|
*/
|
|
5634
5973
|
'unicorn/prefer-class-fields'?: Linter.RuleEntry<[]>;
|
|
5635
5974
|
/**
|
|
5636
5975
|
* Prefer using `Element#classList.toggle()` to toggle class names.
|
|
5637
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5976
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-classlist-toggle.md
|
|
5638
5977
|
*/
|
|
5639
5978
|
'unicorn/prefer-classlist-toggle'?: Linter.RuleEntry<[]>;
|
|
5640
5979
|
/**
|
|
5641
5980
|
* Prefer `String#codePointAt(…)` over `String#charCodeAt(…)` and `String.fromCodePoint(…)` over `String.fromCharCode(…)`.
|
|
5642
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5981
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-code-point.md
|
|
5643
5982
|
*/
|
|
5644
5983
|
'unicorn/prefer-code-point'?: Linter.RuleEntry<[]>;
|
|
5645
5984
|
/**
|
|
5646
5985
|
* Prefer `Date.now()` to get the number of milliseconds since the Unix Epoch.
|
|
5647
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5986
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-date-now.md
|
|
5648
5987
|
*/
|
|
5649
5988
|
'unicorn/prefer-date-now'?: Linter.RuleEntry<[]>;
|
|
5650
5989
|
/**
|
|
5651
5990
|
* Prefer default parameters over reassignment.
|
|
5652
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5991
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-default-parameters.md
|
|
5653
5992
|
*/
|
|
5654
5993
|
'unicorn/prefer-default-parameters'?: Linter.RuleEntry<[]>;
|
|
5655
5994
|
/**
|
|
5656
5995
|
* Prefer `Node#append()` over `Node#appendChild()`.
|
|
5657
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5996
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-dom-node-append.md
|
|
5658
5997
|
*/
|
|
5659
5998
|
'unicorn/prefer-dom-node-append'?: Linter.RuleEntry<[]>;
|
|
5660
5999
|
/**
|
|
5661
6000
|
* Prefer using `.dataset` on DOM elements over calling attribute methods.
|
|
5662
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6001
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-dom-node-dataset.md
|
|
5663
6002
|
*/
|
|
5664
6003
|
'unicorn/prefer-dom-node-dataset'?: Linter.RuleEntry<[]>;
|
|
5665
6004
|
/**
|
|
5666
6005
|
* Prefer `childNode.remove()` over `parentNode.removeChild(childNode)`.
|
|
5667
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6006
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-dom-node-remove.md
|
|
5668
6007
|
*/
|
|
5669
6008
|
'unicorn/prefer-dom-node-remove'?: Linter.RuleEntry<[]>;
|
|
5670
6009
|
/**
|
|
5671
6010
|
* Prefer `.textContent` over `.innerText`.
|
|
5672
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6011
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-dom-node-text-content.md
|
|
5673
6012
|
*/
|
|
5674
6013
|
'unicorn/prefer-dom-node-text-content'?: Linter.RuleEntry<[]>;
|
|
5675
6014
|
/**
|
|
5676
6015
|
* Prefer `EventTarget` over `EventEmitter`.
|
|
5677
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6016
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-event-target.md
|
|
5678
6017
|
*/
|
|
5679
6018
|
'unicorn/prefer-event-target'?: Linter.RuleEntry<[]>;
|
|
5680
6019
|
/**
|
|
5681
6020
|
* Prefer `export…from` when re-exporting.
|
|
5682
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6021
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-export-from.md
|
|
5683
6022
|
*/
|
|
5684
6023
|
'unicorn/prefer-export-from'?: Linter.RuleEntry<UnicornPreferExportFrom>;
|
|
5685
6024
|
/**
|
|
5686
6025
|
* Prefer `globalThis` over `window`, `self`, and `global`.
|
|
5687
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6026
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-global-this.md
|
|
5688
6027
|
*/
|
|
5689
6028
|
'unicorn/prefer-global-this'?: Linter.RuleEntry<[]>;
|
|
5690
6029
|
/**
|
|
5691
6030
|
* Prefer `import.meta.{dirname,filename}` over legacy techniques for getting file paths.
|
|
5692
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6031
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-import-meta-properties.md
|
|
5693
6032
|
*/
|
|
5694
6033
|
'unicorn/prefer-import-meta-properties'?: Linter.RuleEntry<[]>;
|
|
5695
6034
|
/**
|
|
5696
6035
|
* Prefer `.includes()` over `.indexOf()`, `.lastIndexOf()`, and `Array#some()` when checking for existence or non-existence.
|
|
5697
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6036
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-includes.md
|
|
5698
6037
|
*/
|
|
5699
6038
|
'unicorn/prefer-includes'?: Linter.RuleEntry<[]>;
|
|
5700
6039
|
/**
|
|
5701
6040
|
* Prefer reading a JSON file as a buffer.
|
|
5702
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6041
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-json-parse-buffer.md
|
|
5703
6042
|
*/
|
|
5704
6043
|
'unicorn/prefer-json-parse-buffer'?: Linter.RuleEntry<[]>;
|
|
5705
6044
|
/**
|
|
5706
6045
|
* Prefer `KeyboardEvent#key` over `KeyboardEvent#keyCode`.
|
|
5707
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6046
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-keyboard-event-key.md
|
|
5708
6047
|
*/
|
|
5709
6048
|
'unicorn/prefer-keyboard-event-key'?: Linter.RuleEntry<[]>;
|
|
5710
6049
|
/**
|
|
5711
6050
|
* Prefer using a logical operator over a ternary.
|
|
5712
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6051
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-logical-operator-over-ternary.md
|
|
5713
6052
|
*/
|
|
5714
6053
|
'unicorn/prefer-logical-operator-over-ternary'?: Linter.RuleEntry<[]>;
|
|
5715
6054
|
/**
|
|
5716
6055
|
* Prefer `Math.min()` and `Math.max()` over ternaries for simple comparisons.
|
|
5717
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6056
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-math-min-max.md
|
|
5718
6057
|
*/
|
|
5719
6058
|
'unicorn/prefer-math-min-max'?: Linter.RuleEntry<[]>;
|
|
5720
6059
|
/**
|
|
5721
6060
|
* Enforce the use of `Math.trunc` instead of bitwise operators.
|
|
5722
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6061
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-math-trunc.md
|
|
5723
6062
|
*/
|
|
5724
6063
|
'unicorn/prefer-math-trunc'?: Linter.RuleEntry<[]>;
|
|
5725
6064
|
/**
|
|
5726
6065
|
* Prefer `.before()` over `.insertBefore()`, `.replaceWith()` over `.replaceChild()`, prefer one of `.before()`, `.after()`, `.append()` or `.prepend()` over `insertAdjacentText()` and `insertAdjacentElement()`.
|
|
5727
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6066
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-modern-dom-apis.md
|
|
5728
6067
|
*/
|
|
5729
6068
|
'unicorn/prefer-modern-dom-apis'?: Linter.RuleEntry<[]>;
|
|
5730
6069
|
/**
|
|
5731
6070
|
* Prefer modern `Math` APIs over legacy patterns.
|
|
5732
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6071
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-modern-math-apis.md
|
|
5733
6072
|
*/
|
|
5734
6073
|
'unicorn/prefer-modern-math-apis'?: Linter.RuleEntry<[]>;
|
|
5735
6074
|
/**
|
|
5736
6075
|
* Prefer JavaScript modules (ESM) over CommonJS.
|
|
5737
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6076
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-module.md
|
|
5738
6077
|
*/
|
|
5739
6078
|
'unicorn/prefer-module'?: Linter.RuleEntry<[]>;
|
|
5740
6079
|
/**
|
|
5741
6080
|
* Prefer using `String`, `Number`, `BigInt`, `Boolean`, and `Symbol` directly.
|
|
5742
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6081
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-native-coercion-functions.md
|
|
5743
6082
|
*/
|
|
5744
6083
|
'unicorn/prefer-native-coercion-functions'?: Linter.RuleEntry<[]>;
|
|
5745
6084
|
/**
|
|
5746
6085
|
* Prefer negative index over `.length - index` when possible.
|
|
5747
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6086
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-negative-index.md
|
|
5748
6087
|
*/
|
|
5749
6088
|
'unicorn/prefer-negative-index'?: Linter.RuleEntry<[]>;
|
|
5750
6089
|
/**
|
|
5751
6090
|
* Prefer using the `node:` protocol when importing Node.js builtin modules.
|
|
5752
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6091
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-node-protocol.md
|
|
5753
6092
|
*/
|
|
5754
6093
|
'unicorn/prefer-node-protocol'?: Linter.RuleEntry<[]>;
|
|
5755
6094
|
/**
|
|
5756
6095
|
* Prefer `Number` static properties over global ones.
|
|
5757
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6096
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-number-properties.md
|
|
5758
6097
|
*/
|
|
5759
6098
|
'unicorn/prefer-number-properties'?: Linter.RuleEntry<UnicornPreferNumberProperties>;
|
|
5760
6099
|
/**
|
|
5761
6100
|
* Prefer using `Object.fromEntries(…)` to transform a list of key-value pairs into an object.
|
|
5762
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6101
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-object-from-entries.md
|
|
5763
6102
|
*/
|
|
5764
6103
|
'unicorn/prefer-object-from-entries'?: Linter.RuleEntry<UnicornPreferObjectFromEntries>;
|
|
5765
6104
|
/**
|
|
5766
6105
|
* Prefer omitting the `catch` binding parameter.
|
|
5767
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6106
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-optional-catch-binding.md
|
|
5768
6107
|
*/
|
|
5769
6108
|
'unicorn/prefer-optional-catch-binding'?: Linter.RuleEntry<[]>;
|
|
5770
6109
|
/**
|
|
5771
6110
|
* Prefer borrowing methods from the prototype instead of the instance.
|
|
5772
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6111
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-prototype-methods.md
|
|
5773
6112
|
*/
|
|
5774
6113
|
'unicorn/prefer-prototype-methods'?: Linter.RuleEntry<[]>;
|
|
5775
6114
|
/**
|
|
5776
6115
|
* Prefer `.querySelector()` over `.getElementById()`, `.querySelectorAll()` over `.getElementsByClassName()` and `.getElementsByTagName()` and `.getElementsByName()`.
|
|
5777
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6116
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-query-selector.md
|
|
5778
6117
|
*/
|
|
5779
6118
|
'unicorn/prefer-query-selector'?: Linter.RuleEntry<[]>;
|
|
5780
6119
|
/**
|
|
5781
6120
|
* Prefer `Reflect.apply()` over `Function#apply()`.
|
|
5782
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6121
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-reflect-apply.md
|
|
5783
6122
|
*/
|
|
5784
6123
|
'unicorn/prefer-reflect-apply'?: Linter.RuleEntry<[]>;
|
|
5785
6124
|
/**
|
|
5786
6125
|
* Prefer `RegExp#test()` over `String#match()` and `RegExp#exec()`.
|
|
5787
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6126
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-regexp-test.md
|
|
5788
6127
|
*/
|
|
5789
6128
|
'unicorn/prefer-regexp-test'?: Linter.RuleEntry<[]>;
|
|
5790
6129
|
/**
|
|
5791
6130
|
* Prefer `Response.json()` over `new Response(JSON.stringify())`.
|
|
5792
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6131
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-response-static-json.md
|
|
5793
6132
|
*/
|
|
5794
6133
|
'unicorn/prefer-response-static-json'?: Linter.RuleEntry<[]>;
|
|
5795
6134
|
/**
|
|
5796
6135
|
* Prefer `Set#has()` over `Array#includes()` when checking for existence or non-existence.
|
|
5797
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6136
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-set-has.md
|
|
5798
6137
|
*/
|
|
5799
6138
|
'unicorn/prefer-set-has'?: Linter.RuleEntry<[]>;
|
|
5800
6139
|
/**
|
|
5801
6140
|
* Prefer using `Set#size` instead of `Array#length`.
|
|
5802
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6141
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-set-size.md
|
|
5803
6142
|
*/
|
|
5804
6143
|
'unicorn/prefer-set-size'?: Linter.RuleEntry<[]>;
|
|
6144
|
+
/**
|
|
6145
|
+
* Prefer simple conditions first in logical expressions.
|
|
6146
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-simple-condition-first.md
|
|
6147
|
+
*/
|
|
6148
|
+
'unicorn/prefer-simple-condition-first'?: Linter.RuleEntry<[]>;
|
|
5805
6149
|
/**
|
|
5806
6150
|
* Enforce combining multiple `Array#push()`, `Element#classList.{add,remove}()`, and `importScripts()` into one call.
|
|
5807
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6151
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-single-call.md
|
|
5808
6152
|
*/
|
|
5809
6153
|
'unicorn/prefer-single-call'?: Linter.RuleEntry<UnicornPreferSingleCall>;
|
|
5810
6154
|
/**
|
|
5811
6155
|
* Prefer the spread operator over `Array.from(…)`, `Array#concat(…)`, `Array#{slice,toSpliced}()` and `String#split('')`.
|
|
5812
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6156
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-spread.md
|
|
5813
6157
|
*/
|
|
5814
6158
|
'unicorn/prefer-spread'?: Linter.RuleEntry<[]>;
|
|
5815
6159
|
/**
|
|
5816
6160
|
* Prefer using the `String.raw` tag to avoid escaping `\`.
|
|
5817
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6161
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-string-raw.md
|
|
5818
6162
|
*/
|
|
5819
6163
|
'unicorn/prefer-string-raw'?: Linter.RuleEntry<[]>;
|
|
5820
6164
|
/**
|
|
5821
6165
|
* Prefer `String#replaceAll()` over regex searches with the global flag.
|
|
5822
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6166
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-string-replace-all.md
|
|
5823
6167
|
*/
|
|
5824
6168
|
'unicorn/prefer-string-replace-all'?: Linter.RuleEntry<[]>;
|
|
5825
6169
|
/**
|
|
5826
6170
|
* Prefer `String#slice()` over `String#substr()` and `String#substring()`.
|
|
5827
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6171
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-string-slice.md
|
|
5828
6172
|
*/
|
|
5829
6173
|
'unicorn/prefer-string-slice'?: Linter.RuleEntry<[]>;
|
|
5830
6174
|
/**
|
|
5831
6175
|
* Prefer `String#startsWith()` & `String#endsWith()` over `RegExp#test()`.
|
|
5832
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6176
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-string-starts-ends-with.md
|
|
5833
6177
|
*/
|
|
5834
6178
|
'unicorn/prefer-string-starts-ends-with'?: Linter.RuleEntry<[]>;
|
|
5835
6179
|
/**
|
|
5836
6180
|
* Prefer `String#trimStart()` / `String#trimEnd()` over `String#trimLeft()` / `String#trimRight()`.
|
|
5837
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6181
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-string-trim-start-end.md
|
|
5838
6182
|
*/
|
|
5839
6183
|
'unicorn/prefer-string-trim-start-end'?: Linter.RuleEntry<[]>;
|
|
5840
6184
|
/**
|
|
5841
6185
|
* Prefer using `structuredClone` to create a deep clone.
|
|
5842
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6186
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-structured-clone.md
|
|
5843
6187
|
*/
|
|
5844
6188
|
'unicorn/prefer-structured-clone'?: Linter.RuleEntry<UnicornPreferStructuredClone>;
|
|
5845
6189
|
/**
|
|
5846
6190
|
* Prefer `switch` over multiple `else-if`.
|
|
5847
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6191
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-switch.md
|
|
5848
6192
|
*/
|
|
5849
6193
|
'unicorn/prefer-switch'?: Linter.RuleEntry<UnicornPreferSwitch>;
|
|
5850
6194
|
/**
|
|
5851
6195
|
* Prefer ternary expressions over simple `if-else` statements.
|
|
5852
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6196
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-ternary.md
|
|
5853
6197
|
*/
|
|
5854
6198
|
'unicorn/prefer-ternary'?: Linter.RuleEntry<UnicornPreferTernary>;
|
|
5855
6199
|
/**
|
|
5856
6200
|
* Prefer top-level await over top-level promises and async function calls.
|
|
5857
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6201
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-top-level-await.md
|
|
5858
6202
|
*/
|
|
5859
6203
|
'unicorn/prefer-top-level-await'?: Linter.RuleEntry<[]>;
|
|
5860
6204
|
/**
|
|
5861
6205
|
* Enforce throwing `TypeError` in type checking conditions.
|
|
5862
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6206
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-type-error.md
|
|
5863
6207
|
*/
|
|
5864
6208
|
'unicorn/prefer-type-error'?: Linter.RuleEntry<[]>;
|
|
5865
6209
|
/**
|
|
5866
6210
|
* Prevent abbreviations.
|
|
5867
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6211
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prevent-abbreviations.md
|
|
5868
6212
|
*/
|
|
5869
6213
|
'unicorn/prevent-abbreviations'?: Linter.RuleEntry<UnicornPreventAbbreviations>;
|
|
5870
6214
|
/**
|
|
5871
6215
|
* Enforce consistent relative URL style.
|
|
5872
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6216
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/relative-url-style.md
|
|
5873
6217
|
*/
|
|
5874
6218
|
'unicorn/relative-url-style'?: Linter.RuleEntry<UnicornRelativeUrlStyle>;
|
|
5875
6219
|
/**
|
|
5876
6220
|
* Enforce using the separator argument with `Array#join()`.
|
|
5877
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6221
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/require-array-join-separator.md
|
|
5878
6222
|
*/
|
|
5879
6223
|
'unicorn/require-array-join-separator'?: Linter.RuleEntry<[]>;
|
|
5880
6224
|
/**
|
|
5881
6225
|
* Require non-empty module attributes for imports and exports
|
|
5882
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6226
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/require-module-attributes.md
|
|
5883
6227
|
*/
|
|
5884
6228
|
'unicorn/require-module-attributes'?: Linter.RuleEntry<[]>;
|
|
5885
6229
|
/**
|
|
5886
6230
|
* Require non-empty specifier list in import and export statements.
|
|
5887
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6231
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/require-module-specifiers.md
|
|
5888
6232
|
*/
|
|
5889
6233
|
'unicorn/require-module-specifiers'?: Linter.RuleEntry<[]>;
|
|
5890
6234
|
/**
|
|
5891
6235
|
* Enforce using the digits argument with `Number#toFixed()`.
|
|
5892
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6236
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/require-number-to-fixed-digits-argument.md
|
|
5893
6237
|
*/
|
|
5894
6238
|
'unicorn/require-number-to-fixed-digits-argument'?: Linter.RuleEntry<[]>;
|
|
5895
6239
|
/**
|
|
5896
6240
|
* Enforce using the `targetOrigin` argument with `window.postMessage()`.
|
|
5897
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6241
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/require-post-message-target-origin.md
|
|
5898
6242
|
*/
|
|
5899
6243
|
'unicorn/require-post-message-target-origin'?: Linter.RuleEntry<[]>;
|
|
5900
6244
|
/**
|
|
5901
6245
|
* Enforce better string content.
|
|
5902
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6246
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/string-content.md
|
|
5903
6247
|
*/
|
|
5904
6248
|
'unicorn/string-content'?: Linter.RuleEntry<UnicornStringContent>;
|
|
5905
6249
|
/**
|
|
5906
6250
|
* Enforce consistent brace style for `case` clauses.
|
|
5907
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6251
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/switch-case-braces.md
|
|
5908
6252
|
*/
|
|
5909
6253
|
'unicorn/switch-case-braces'?: Linter.RuleEntry<UnicornSwitchCaseBraces>;
|
|
6254
|
+
/**
|
|
6255
|
+
* Enforce consistent `break`/`return`/`continue`/`throw` position in `case` clauses.
|
|
6256
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/switch-case-break-position.md
|
|
6257
|
+
*/
|
|
6258
|
+
'unicorn/switch-case-break-position'?: Linter.RuleEntry<[]>;
|
|
5910
6259
|
/**
|
|
5911
6260
|
* Fix whitespace-insensitive template indentation.
|
|
5912
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6261
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/template-indent.md
|
|
5913
6262
|
*/
|
|
5914
6263
|
'unicorn/template-indent'?: Linter.RuleEntry<UnicornTemplateIndent>;
|
|
5915
6264
|
/**
|
|
5916
6265
|
* Enforce consistent case for text encoding identifiers.
|
|
5917
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6266
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/text-encoding-identifier-case.md
|
|
5918
6267
|
*/
|
|
5919
6268
|
'unicorn/text-encoding-identifier-case'?: Linter.RuleEntry<UnicornTextEncodingIdentifierCase>;
|
|
5920
6269
|
/**
|
|
5921
6270
|
* Require `new` when creating an error.
|
|
5922
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6271
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/throw-new-error.md
|
|
5923
6272
|
*/
|
|
5924
6273
|
'unicorn/throw-new-error'?: Linter.RuleEntry<[]>;
|
|
5925
6274
|
/**
|
|
@@ -6328,6 +6677,11 @@ interface RuleOptions {
|
|
|
6328
6677
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/require-top-level-describe.md
|
|
6329
6678
|
*/
|
|
6330
6679
|
'vitest/require-top-level-describe'?: Linter.RuleEntry<VitestRequireTopLevelDescribe>;
|
|
6680
|
+
/**
|
|
6681
|
+
* enforce unbound methods are called with their expected scope
|
|
6682
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/unbound-method.md
|
|
6683
|
+
*/
|
|
6684
|
+
'vitest/unbound-method'?: Linter.RuleEntry<VitestUnboundMethod>;
|
|
6331
6685
|
/**
|
|
6332
6686
|
* enforce valid describe callback
|
|
6333
6687
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/valid-describe-callback.md
|
|
@@ -6853,37 +7207,47 @@ type StylisticCurlyNewline = [] | [(("always" | "never") | {
|
|
|
6853
7207
|
consistent?: boolean;
|
|
6854
7208
|
})]; // ----- @stylistic/dot-location -----
|
|
6855
7209
|
type StylisticDotLocation = [] | [("object" | "property")]; // ----- @stylistic/eol-last -----
|
|
6856
|
-
type StylisticEolLast = [] | [("always" | "never" | "unix" | "windows")]; // ----- @stylistic/exp-
|
|
7210
|
+
type StylisticEolLast = [] | [("always" | "never" | "unix" | "windows")]; // ----- @stylistic/exp-jsx-props-style -----
|
|
7211
|
+
type StylisticExpJsxPropsStyle = [] | [{
|
|
7212
|
+
singleLine?: {
|
|
7213
|
+
maxItems?: number;
|
|
7214
|
+
};
|
|
7215
|
+
multiLine?: {
|
|
7216
|
+
minItems?: number;
|
|
7217
|
+
maxItemsPerLine?: number;
|
|
7218
|
+
};
|
|
7219
|
+
}]; // ----- @stylistic/exp-list-style -----
|
|
6857
7220
|
type StylisticExpListStyle = [] | [{
|
|
6858
7221
|
singleLine?: _StylisticExpListStyle_SingleLineConfig;
|
|
6859
7222
|
multiLine?: _StylisticExpListStyle_MultiLineConfig;
|
|
6860
7223
|
overrides?: {
|
|
6861
|
-
"
|
|
6862
|
-
"
|
|
6863
|
-
"
|
|
6864
|
-
"
|
|
6865
|
-
ArrayExpression?: _StylisticExpListStyle_BaseConfig;
|
|
6866
|
-
ArrayPattern?: _StylisticExpListStyle_BaseConfig;
|
|
6867
|
-
ArrowFunctionExpression?: _StylisticExpListStyle_BaseConfig;
|
|
6868
|
-
CallExpression?: _StylisticExpListStyle_BaseConfig;
|
|
6869
|
-
ExportNamedDeclaration?: _StylisticExpListStyle_BaseConfig;
|
|
6870
|
-
FunctionDeclaration?: _StylisticExpListStyle_BaseConfig;
|
|
6871
|
-
FunctionExpression?: _StylisticExpListStyle_BaseConfig;
|
|
6872
|
-
|
|
6873
|
-
ImportAttributes?: _StylisticExpListStyle_BaseConfig;
|
|
6874
|
-
|
|
6875
|
-
|
|
6876
|
-
|
|
6877
|
-
|
|
6878
|
-
|
|
6879
|
-
|
|
6880
|
-
|
|
6881
|
-
|
|
6882
|
-
|
|
6883
|
-
|
|
6884
|
-
|
|
6885
|
-
|
|
6886
|
-
|
|
7224
|
+
"()"?: (_StylisticExpListStyle_BaseConfig | "off");
|
|
7225
|
+
"[]"?: (_StylisticExpListStyle_BaseConfig | "off");
|
|
7226
|
+
"{}"?: (_StylisticExpListStyle_BaseConfig | "off");
|
|
7227
|
+
"<>"?: (_StylisticExpListStyle_BaseConfig | "off");
|
|
7228
|
+
ArrayExpression?: (_StylisticExpListStyle_BaseConfig | "off");
|
|
7229
|
+
ArrayPattern?: (_StylisticExpListStyle_BaseConfig | "off");
|
|
7230
|
+
ArrowFunctionExpression?: (_StylisticExpListStyle_BaseConfig | "off");
|
|
7231
|
+
CallExpression?: (_StylisticExpListStyle_BaseConfig | "off");
|
|
7232
|
+
ExportNamedDeclaration?: (_StylisticExpListStyle_BaseConfig | "off");
|
|
7233
|
+
FunctionDeclaration?: (_StylisticExpListStyle_BaseConfig | "off");
|
|
7234
|
+
FunctionExpression?: (_StylisticExpListStyle_BaseConfig | "off");
|
|
7235
|
+
IfStatement?: (_StylisticExpListStyle_BaseConfig | "off");
|
|
7236
|
+
ImportAttributes?: (_StylisticExpListStyle_BaseConfig | "off");
|
|
7237
|
+
ImportDeclaration?: (_StylisticExpListStyle_BaseConfig | "off");
|
|
7238
|
+
JSONArrayExpression?: (_StylisticExpListStyle_BaseConfig | "off");
|
|
7239
|
+
JSONObjectExpression?: (_StylisticExpListStyle_BaseConfig | "off");
|
|
7240
|
+
NewExpression?: (_StylisticExpListStyle_BaseConfig | "off");
|
|
7241
|
+
ObjectExpression?: (_StylisticExpListStyle_BaseConfig | "off");
|
|
7242
|
+
ObjectPattern?: (_StylisticExpListStyle_BaseConfig | "off");
|
|
7243
|
+
TSDeclareFunction?: (_StylisticExpListStyle_BaseConfig | "off");
|
|
7244
|
+
TSEnumBody?: (_StylisticExpListStyle_BaseConfig | "off");
|
|
7245
|
+
TSFunctionType?: (_StylisticExpListStyle_BaseConfig | "off");
|
|
7246
|
+
TSInterfaceBody?: (_StylisticExpListStyle_BaseConfig | "off");
|
|
7247
|
+
TSTupleType?: (_StylisticExpListStyle_BaseConfig | "off");
|
|
7248
|
+
TSTypeLiteral?: (_StylisticExpListStyle_BaseConfig | "off");
|
|
7249
|
+
TSTypeParameterDeclaration?: (_StylisticExpListStyle_BaseConfig | "off");
|
|
7250
|
+
TSTypeParameterInstantiation?: (_StylisticExpListStyle_BaseConfig | "off");
|
|
6887
7251
|
};
|
|
6888
7252
|
}];
|
|
6889
7253
|
interface _StylisticExpListStyle_SingleLineConfig {
|
|
@@ -7744,13 +8108,18 @@ type StylisticPaddedBlocks = [] | [(("always" | "never" | "start" | "end") | {
|
|
|
7744
8108
|
allowSingleLineBlocks?: boolean;
|
|
7745
8109
|
}]; // ----- @stylistic/padding-line-between-statements -----
|
|
7746
8110
|
type _StylisticPaddingLineBetweenStatementsPaddingType = ("any" | "never" | "always");
|
|
7747
|
-
type _StylisticPaddingLineBetweenStatementsStatementOption = (
|
|
8111
|
+
type _StylisticPaddingLineBetweenStatementsStatementOption = (_StylisticPaddingLineBetweenStatementsStatementMatcher | [_StylisticPaddingLineBetweenStatementsStatementMatcher, ...(_StylisticPaddingLineBetweenStatementsStatementMatcher)[]]);
|
|
8112
|
+
type _StylisticPaddingLineBetweenStatementsStatementMatcher = (_StylisticPaddingLineBetweenStatementsStatementType | _StylisticPaddingLineBetweenStatements_SelectorOption);
|
|
7748
8113
|
type _StylisticPaddingLineBetweenStatementsStatementType = ("*" | "exports" | "require" | "directive" | "iife" | "block" | "empty" | "function" | "ts-method" | "break" | "case" | "class" | "continue" | "debugger" | "default" | "do" | "for" | "if" | "import" | "switch" | "throw" | "try" | "while" | "with" | "cjs-export" | "cjs-import" | "enum" | "interface" | "function-overload" | "block-like" | "singleline-block-like" | "multiline-block-like" | "expression" | "singleline-expression" | "multiline-expression" | "return" | "singleline-return" | "multiline-return" | "export" | "singleline-export" | "multiline-export" | "var" | "singleline-var" | "multiline-var" | "let" | "singleline-let" | "multiline-let" | "const" | "singleline-const" | "multiline-const" | "using" | "singleline-using" | "multiline-using" | "type" | "singleline-type" | "multiline-type");
|
|
7749
8114
|
type StylisticPaddingLineBetweenStatements = {
|
|
7750
8115
|
blankLine: _StylisticPaddingLineBetweenStatementsPaddingType;
|
|
7751
8116
|
prev: _StylisticPaddingLineBetweenStatementsStatementOption;
|
|
7752
8117
|
next: _StylisticPaddingLineBetweenStatementsStatementOption;
|
|
7753
|
-
}[];
|
|
8118
|
+
}[];
|
|
8119
|
+
interface _StylisticPaddingLineBetweenStatements_SelectorOption {
|
|
8120
|
+
selector: string;
|
|
8121
|
+
lineMode?: ("any" | "singleline" | "multiline");
|
|
8122
|
+
} // ----- @stylistic/quote-props -----
|
|
7754
8123
|
type StylisticQuoteProps = ([] | [("always" | "as-needed" | "consistent" | "consistent-as-needed")] | [] | [("always" | "as-needed" | "consistent" | "consistent-as-needed")] | [("always" | "as-needed" | "consistent" | "consistent-as-needed"), {
|
|
7755
8124
|
keywords?: boolean;
|
|
7756
8125
|
unnecessary?: boolean;
|
|
@@ -8524,7 +8893,10 @@ type TypescriptEslintNoUseBeforeDefine = [] | [("nofunc" | {
|
|
|
8524
8893
|
ignoreTypeReferences?: boolean;
|
|
8525
8894
|
typedefs?: boolean;
|
|
8526
8895
|
variables?: boolean;
|
|
8527
|
-
})]; // ----- @typescript-eslint/no-
|
|
8896
|
+
})]; // ----- @typescript-eslint/no-useless-default-assignment -----
|
|
8897
|
+
type TypescriptEslintNoUselessDefaultAssignment = [] | [{
|
|
8898
|
+
allowRuleToRunWithoutStrictNullChecksIKnowWhatIAmDoing?: boolean;
|
|
8899
|
+
}]; // ----- @typescript-eslint/no-var-requires -----
|
|
8528
8900
|
type TypescriptEslintNoVarRequires = [] | [{
|
|
8529
8901
|
allow?: string[];
|
|
8530
8902
|
}]; // ----- @typescript-eslint/only-throw-error -----
|
|
@@ -8605,6 +8977,18 @@ type TypescriptEslintPreferOptionalChain = [] | [{
|
|
|
8605
8977
|
requireNullish?: boolean;
|
|
8606
8978
|
}]; // ----- @typescript-eslint/prefer-promise-reject-errors -----
|
|
8607
8979
|
type TypescriptEslintPreferPromiseRejectErrors = [] | [{
|
|
8980
|
+
allow?: (string | {
|
|
8981
|
+
from: "file";
|
|
8982
|
+
name: (string | [string, ...(string)[]]);
|
|
8983
|
+
path?: string;
|
|
8984
|
+
} | {
|
|
8985
|
+
from: "lib";
|
|
8986
|
+
name: (string | [string, ...(string)[]]);
|
|
8987
|
+
} | {
|
|
8988
|
+
from: "package";
|
|
8989
|
+
name: (string | [string, ...(string)[]]);
|
|
8990
|
+
package: string;
|
|
8991
|
+
})[];
|
|
8608
8992
|
allowEmptyReject?: boolean;
|
|
8609
8993
|
allowThrowingAny?: boolean;
|
|
8610
8994
|
allowThrowingUnknown?: boolean;
|
|
@@ -8760,6 +9144,71 @@ type ArrowSpacing = [] | [{
|
|
|
8760
9144
|
after?: boolean;
|
|
8761
9145
|
}]; // ----- better-tailwindcss/enforce-canonical-classes -----
|
|
8762
9146
|
type BetterTailwindcssEnforceCanonicalClasses = [] | [{
|
|
9147
|
+
selectors?: ({
|
|
9148
|
+
kind: "attribute";
|
|
9149
|
+
match?: ({
|
|
9150
|
+
type: "strings";
|
|
9151
|
+
} | {
|
|
9152
|
+
path?: string;
|
|
9153
|
+
type: "objectKeys";
|
|
9154
|
+
} | {
|
|
9155
|
+
path?: string;
|
|
9156
|
+
type: "objectValues";
|
|
9157
|
+
})[];
|
|
9158
|
+
name: string;
|
|
9159
|
+
} | ({
|
|
9160
|
+
callTarget?: ("all" | "first" | "last" | number);
|
|
9161
|
+
kind: "callee";
|
|
9162
|
+
match?: ({
|
|
9163
|
+
type: "strings";
|
|
9164
|
+
} | {
|
|
9165
|
+
path?: string;
|
|
9166
|
+
type: "objectKeys";
|
|
9167
|
+
} | {
|
|
9168
|
+
path?: string;
|
|
9169
|
+
type: "objectValues";
|
|
9170
|
+
})[];
|
|
9171
|
+
name: string;
|
|
9172
|
+
path?: string;
|
|
9173
|
+
} | {
|
|
9174
|
+
callTarget?: ("all" | "first" | "last" | number);
|
|
9175
|
+
kind: "callee";
|
|
9176
|
+
match?: ({
|
|
9177
|
+
type: "strings";
|
|
9178
|
+
} | {
|
|
9179
|
+
path?: string;
|
|
9180
|
+
type: "objectKeys";
|
|
9181
|
+
} | {
|
|
9182
|
+
path?: string;
|
|
9183
|
+
type: "objectValues";
|
|
9184
|
+
})[];
|
|
9185
|
+
name?: string;
|
|
9186
|
+
path: string;
|
|
9187
|
+
}) | {
|
|
9188
|
+
kind: "tag";
|
|
9189
|
+
match?: ({
|
|
9190
|
+
type: "strings";
|
|
9191
|
+
} | {
|
|
9192
|
+
path?: string;
|
|
9193
|
+
type: "objectKeys";
|
|
9194
|
+
} | {
|
|
9195
|
+
path?: string;
|
|
9196
|
+
type: "objectValues";
|
|
9197
|
+
})[];
|
|
9198
|
+
name: string;
|
|
9199
|
+
} | {
|
|
9200
|
+
kind: "variable";
|
|
9201
|
+
match?: ({
|
|
9202
|
+
type: "strings";
|
|
9203
|
+
} | {
|
|
9204
|
+
path?: string;
|
|
9205
|
+
type: "objectKeys";
|
|
9206
|
+
} | {
|
|
9207
|
+
path?: string;
|
|
9208
|
+
type: "objectValues";
|
|
9209
|
+
})[];
|
|
9210
|
+
name: string;
|
|
9211
|
+
})[];
|
|
8763
9212
|
callees?: ([string, ({
|
|
8764
9213
|
match: "strings";
|
|
8765
9214
|
} | {
|
|
@@ -8806,6 +9255,71 @@ type BetterTailwindcssEnforceCanonicalClasses = [] | [{
|
|
|
8806
9255
|
logical?: boolean;
|
|
8807
9256
|
}]; // ----- better-tailwindcss/enforce-consistent-class-order -----
|
|
8808
9257
|
type BetterTailwindcssEnforceConsistentClassOrder = [] | [{
|
|
9258
|
+
selectors?: ({
|
|
9259
|
+
kind: "attribute";
|
|
9260
|
+
match?: ({
|
|
9261
|
+
type: "strings";
|
|
9262
|
+
} | {
|
|
9263
|
+
path?: string;
|
|
9264
|
+
type: "objectKeys";
|
|
9265
|
+
} | {
|
|
9266
|
+
path?: string;
|
|
9267
|
+
type: "objectValues";
|
|
9268
|
+
})[];
|
|
9269
|
+
name: string;
|
|
9270
|
+
} | ({
|
|
9271
|
+
callTarget?: ("all" | "first" | "last" | number);
|
|
9272
|
+
kind: "callee";
|
|
9273
|
+
match?: ({
|
|
9274
|
+
type: "strings";
|
|
9275
|
+
} | {
|
|
9276
|
+
path?: string;
|
|
9277
|
+
type: "objectKeys";
|
|
9278
|
+
} | {
|
|
9279
|
+
path?: string;
|
|
9280
|
+
type: "objectValues";
|
|
9281
|
+
})[];
|
|
9282
|
+
name: string;
|
|
9283
|
+
path?: string;
|
|
9284
|
+
} | {
|
|
9285
|
+
callTarget?: ("all" | "first" | "last" | number);
|
|
9286
|
+
kind: "callee";
|
|
9287
|
+
match?: ({
|
|
9288
|
+
type: "strings";
|
|
9289
|
+
} | {
|
|
9290
|
+
path?: string;
|
|
9291
|
+
type: "objectKeys";
|
|
9292
|
+
} | {
|
|
9293
|
+
path?: string;
|
|
9294
|
+
type: "objectValues";
|
|
9295
|
+
})[];
|
|
9296
|
+
name?: string;
|
|
9297
|
+
path: string;
|
|
9298
|
+
}) | {
|
|
9299
|
+
kind: "tag";
|
|
9300
|
+
match?: ({
|
|
9301
|
+
type: "strings";
|
|
9302
|
+
} | {
|
|
9303
|
+
path?: string;
|
|
9304
|
+
type: "objectKeys";
|
|
9305
|
+
} | {
|
|
9306
|
+
path?: string;
|
|
9307
|
+
type: "objectValues";
|
|
9308
|
+
})[];
|
|
9309
|
+
name: string;
|
|
9310
|
+
} | {
|
|
9311
|
+
kind: "variable";
|
|
9312
|
+
match?: ({
|
|
9313
|
+
type: "strings";
|
|
9314
|
+
} | {
|
|
9315
|
+
path?: string;
|
|
9316
|
+
type: "objectKeys";
|
|
9317
|
+
} | {
|
|
9318
|
+
path?: string;
|
|
9319
|
+
type: "objectValues";
|
|
9320
|
+
})[];
|
|
9321
|
+
name: string;
|
|
9322
|
+
})[];
|
|
8809
9323
|
callees?: ([string, ({
|
|
8810
9324
|
match: "strings";
|
|
8811
9325
|
} | {
|
|
@@ -8855,6 +9369,71 @@ type BetterTailwindcssEnforceConsistentClassOrder = [] | [{
|
|
|
8855
9369
|
unknownClassPosition?: ("start" | "end");
|
|
8856
9370
|
}]; // ----- better-tailwindcss/enforce-consistent-important-position -----
|
|
8857
9371
|
type BetterTailwindcssEnforceConsistentImportantPosition = [] | [{
|
|
9372
|
+
selectors?: ({
|
|
9373
|
+
kind: "attribute";
|
|
9374
|
+
match?: ({
|
|
9375
|
+
type: "strings";
|
|
9376
|
+
} | {
|
|
9377
|
+
path?: string;
|
|
9378
|
+
type: "objectKeys";
|
|
9379
|
+
} | {
|
|
9380
|
+
path?: string;
|
|
9381
|
+
type: "objectValues";
|
|
9382
|
+
})[];
|
|
9383
|
+
name: string;
|
|
9384
|
+
} | ({
|
|
9385
|
+
callTarget?: ("all" | "first" | "last" | number);
|
|
9386
|
+
kind: "callee";
|
|
9387
|
+
match?: ({
|
|
9388
|
+
type: "strings";
|
|
9389
|
+
} | {
|
|
9390
|
+
path?: string;
|
|
9391
|
+
type: "objectKeys";
|
|
9392
|
+
} | {
|
|
9393
|
+
path?: string;
|
|
9394
|
+
type: "objectValues";
|
|
9395
|
+
})[];
|
|
9396
|
+
name: string;
|
|
9397
|
+
path?: string;
|
|
9398
|
+
} | {
|
|
9399
|
+
callTarget?: ("all" | "first" | "last" | number);
|
|
9400
|
+
kind: "callee";
|
|
9401
|
+
match?: ({
|
|
9402
|
+
type: "strings";
|
|
9403
|
+
} | {
|
|
9404
|
+
path?: string;
|
|
9405
|
+
type: "objectKeys";
|
|
9406
|
+
} | {
|
|
9407
|
+
path?: string;
|
|
9408
|
+
type: "objectValues";
|
|
9409
|
+
})[];
|
|
9410
|
+
name?: string;
|
|
9411
|
+
path: string;
|
|
9412
|
+
}) | {
|
|
9413
|
+
kind: "tag";
|
|
9414
|
+
match?: ({
|
|
9415
|
+
type: "strings";
|
|
9416
|
+
} | {
|
|
9417
|
+
path?: string;
|
|
9418
|
+
type: "objectKeys";
|
|
9419
|
+
} | {
|
|
9420
|
+
path?: string;
|
|
9421
|
+
type: "objectValues";
|
|
9422
|
+
})[];
|
|
9423
|
+
name: string;
|
|
9424
|
+
} | {
|
|
9425
|
+
kind: "variable";
|
|
9426
|
+
match?: ({
|
|
9427
|
+
type: "strings";
|
|
9428
|
+
} | {
|
|
9429
|
+
path?: string;
|
|
9430
|
+
type: "objectKeys";
|
|
9431
|
+
} | {
|
|
9432
|
+
path?: string;
|
|
9433
|
+
type: "objectValues";
|
|
9434
|
+
})[];
|
|
9435
|
+
name: string;
|
|
9436
|
+
})[];
|
|
8858
9437
|
callees?: ([string, ({
|
|
8859
9438
|
match: "strings";
|
|
8860
9439
|
} | {
|
|
@@ -8900,6 +9479,71 @@ type BetterTailwindcssEnforceConsistentImportantPosition = [] | [{
|
|
|
8900
9479
|
position?: ("legacy" | "recommended");
|
|
8901
9480
|
}]; // ----- better-tailwindcss/enforce-consistent-line-wrapping -----
|
|
8902
9481
|
type BetterTailwindcssEnforceConsistentLineWrapping = [] | [{
|
|
9482
|
+
selectors?: ({
|
|
9483
|
+
kind: "attribute";
|
|
9484
|
+
match?: ({
|
|
9485
|
+
type: "strings";
|
|
9486
|
+
} | {
|
|
9487
|
+
path?: string;
|
|
9488
|
+
type: "objectKeys";
|
|
9489
|
+
} | {
|
|
9490
|
+
path?: string;
|
|
9491
|
+
type: "objectValues";
|
|
9492
|
+
})[];
|
|
9493
|
+
name: string;
|
|
9494
|
+
} | ({
|
|
9495
|
+
callTarget?: ("all" | "first" | "last" | number);
|
|
9496
|
+
kind: "callee";
|
|
9497
|
+
match?: ({
|
|
9498
|
+
type: "strings";
|
|
9499
|
+
} | {
|
|
9500
|
+
path?: string;
|
|
9501
|
+
type: "objectKeys";
|
|
9502
|
+
} | {
|
|
9503
|
+
path?: string;
|
|
9504
|
+
type: "objectValues";
|
|
9505
|
+
})[];
|
|
9506
|
+
name: string;
|
|
9507
|
+
path?: string;
|
|
9508
|
+
} | {
|
|
9509
|
+
callTarget?: ("all" | "first" | "last" | number);
|
|
9510
|
+
kind: "callee";
|
|
9511
|
+
match?: ({
|
|
9512
|
+
type: "strings";
|
|
9513
|
+
} | {
|
|
9514
|
+
path?: string;
|
|
9515
|
+
type: "objectKeys";
|
|
9516
|
+
} | {
|
|
9517
|
+
path?: string;
|
|
9518
|
+
type: "objectValues";
|
|
9519
|
+
})[];
|
|
9520
|
+
name?: string;
|
|
9521
|
+
path: string;
|
|
9522
|
+
}) | {
|
|
9523
|
+
kind: "tag";
|
|
9524
|
+
match?: ({
|
|
9525
|
+
type: "strings";
|
|
9526
|
+
} | {
|
|
9527
|
+
path?: string;
|
|
9528
|
+
type: "objectKeys";
|
|
9529
|
+
} | {
|
|
9530
|
+
path?: string;
|
|
9531
|
+
type: "objectValues";
|
|
9532
|
+
})[];
|
|
9533
|
+
name: string;
|
|
9534
|
+
} | {
|
|
9535
|
+
kind: "variable";
|
|
9536
|
+
match?: ({
|
|
9537
|
+
type: "strings";
|
|
9538
|
+
} | {
|
|
9539
|
+
path?: string;
|
|
9540
|
+
type: "objectKeys";
|
|
9541
|
+
} | {
|
|
9542
|
+
path?: string;
|
|
9543
|
+
type: "objectValues";
|
|
9544
|
+
})[];
|
|
9545
|
+
name: string;
|
|
9546
|
+
})[];
|
|
8903
9547
|
callees?: ([string, ({
|
|
8904
9548
|
match: "strings";
|
|
8905
9549
|
} | {
|
|
@@ -8951,6 +9595,71 @@ type BetterTailwindcssEnforceConsistentLineWrapping = [] | [{
|
|
|
8951
9595
|
strictness?: ("strict" | "loose");
|
|
8952
9596
|
}]; // ----- better-tailwindcss/enforce-consistent-variable-syntax -----
|
|
8953
9597
|
type BetterTailwindcssEnforceConsistentVariableSyntax = [] | [{
|
|
9598
|
+
selectors?: ({
|
|
9599
|
+
kind: "attribute";
|
|
9600
|
+
match?: ({
|
|
9601
|
+
type: "strings";
|
|
9602
|
+
} | {
|
|
9603
|
+
path?: string;
|
|
9604
|
+
type: "objectKeys";
|
|
9605
|
+
} | {
|
|
9606
|
+
path?: string;
|
|
9607
|
+
type: "objectValues";
|
|
9608
|
+
})[];
|
|
9609
|
+
name: string;
|
|
9610
|
+
} | ({
|
|
9611
|
+
callTarget?: ("all" | "first" | "last" | number);
|
|
9612
|
+
kind: "callee";
|
|
9613
|
+
match?: ({
|
|
9614
|
+
type: "strings";
|
|
9615
|
+
} | {
|
|
9616
|
+
path?: string;
|
|
9617
|
+
type: "objectKeys";
|
|
9618
|
+
} | {
|
|
9619
|
+
path?: string;
|
|
9620
|
+
type: "objectValues";
|
|
9621
|
+
})[];
|
|
9622
|
+
name: string;
|
|
9623
|
+
path?: string;
|
|
9624
|
+
} | {
|
|
9625
|
+
callTarget?: ("all" | "first" | "last" | number);
|
|
9626
|
+
kind: "callee";
|
|
9627
|
+
match?: ({
|
|
9628
|
+
type: "strings";
|
|
9629
|
+
} | {
|
|
9630
|
+
path?: string;
|
|
9631
|
+
type: "objectKeys";
|
|
9632
|
+
} | {
|
|
9633
|
+
path?: string;
|
|
9634
|
+
type: "objectValues";
|
|
9635
|
+
})[];
|
|
9636
|
+
name?: string;
|
|
9637
|
+
path: string;
|
|
9638
|
+
}) | {
|
|
9639
|
+
kind: "tag";
|
|
9640
|
+
match?: ({
|
|
9641
|
+
type: "strings";
|
|
9642
|
+
} | {
|
|
9643
|
+
path?: string;
|
|
9644
|
+
type: "objectKeys";
|
|
9645
|
+
} | {
|
|
9646
|
+
path?: string;
|
|
9647
|
+
type: "objectValues";
|
|
9648
|
+
})[];
|
|
9649
|
+
name: string;
|
|
9650
|
+
} | {
|
|
9651
|
+
kind: "variable";
|
|
9652
|
+
match?: ({
|
|
9653
|
+
type: "strings";
|
|
9654
|
+
} | {
|
|
9655
|
+
path?: string;
|
|
9656
|
+
type: "objectKeys";
|
|
9657
|
+
} | {
|
|
9658
|
+
path?: string;
|
|
9659
|
+
type: "objectValues";
|
|
9660
|
+
})[];
|
|
9661
|
+
name: string;
|
|
9662
|
+
})[];
|
|
8954
9663
|
callees?: ([string, ({
|
|
8955
9664
|
match: "strings";
|
|
8956
9665
|
} | {
|
|
@@ -8996,6 +9705,71 @@ type BetterTailwindcssEnforceConsistentVariableSyntax = [] | [{
|
|
|
8996
9705
|
syntax?: ("shorthand" | "variable");
|
|
8997
9706
|
}]; // ----- better-tailwindcss/enforce-shorthand-classes -----
|
|
8998
9707
|
type BetterTailwindcssEnforceShorthandClasses = [] | [{
|
|
9708
|
+
selectors?: ({
|
|
9709
|
+
kind: "attribute";
|
|
9710
|
+
match?: ({
|
|
9711
|
+
type: "strings";
|
|
9712
|
+
} | {
|
|
9713
|
+
path?: string;
|
|
9714
|
+
type: "objectKeys";
|
|
9715
|
+
} | {
|
|
9716
|
+
path?: string;
|
|
9717
|
+
type: "objectValues";
|
|
9718
|
+
})[];
|
|
9719
|
+
name: string;
|
|
9720
|
+
} | ({
|
|
9721
|
+
callTarget?: ("all" | "first" | "last" | number);
|
|
9722
|
+
kind: "callee";
|
|
9723
|
+
match?: ({
|
|
9724
|
+
type: "strings";
|
|
9725
|
+
} | {
|
|
9726
|
+
path?: string;
|
|
9727
|
+
type: "objectKeys";
|
|
9728
|
+
} | {
|
|
9729
|
+
path?: string;
|
|
9730
|
+
type: "objectValues";
|
|
9731
|
+
})[];
|
|
9732
|
+
name: string;
|
|
9733
|
+
path?: string;
|
|
9734
|
+
} | {
|
|
9735
|
+
callTarget?: ("all" | "first" | "last" | number);
|
|
9736
|
+
kind: "callee";
|
|
9737
|
+
match?: ({
|
|
9738
|
+
type: "strings";
|
|
9739
|
+
} | {
|
|
9740
|
+
path?: string;
|
|
9741
|
+
type: "objectKeys";
|
|
9742
|
+
} | {
|
|
9743
|
+
path?: string;
|
|
9744
|
+
type: "objectValues";
|
|
9745
|
+
})[];
|
|
9746
|
+
name?: string;
|
|
9747
|
+
path: string;
|
|
9748
|
+
}) | {
|
|
9749
|
+
kind: "tag";
|
|
9750
|
+
match?: ({
|
|
9751
|
+
type: "strings";
|
|
9752
|
+
} | {
|
|
9753
|
+
path?: string;
|
|
9754
|
+
type: "objectKeys";
|
|
9755
|
+
} | {
|
|
9756
|
+
path?: string;
|
|
9757
|
+
type: "objectValues";
|
|
9758
|
+
})[];
|
|
9759
|
+
name: string;
|
|
9760
|
+
} | {
|
|
9761
|
+
kind: "variable";
|
|
9762
|
+
match?: ({
|
|
9763
|
+
type: "strings";
|
|
9764
|
+
} | {
|
|
9765
|
+
path?: string;
|
|
9766
|
+
type: "objectKeys";
|
|
9767
|
+
} | {
|
|
9768
|
+
path?: string;
|
|
9769
|
+
type: "objectValues";
|
|
9770
|
+
})[];
|
|
9771
|
+
name: string;
|
|
9772
|
+
})[];
|
|
8999
9773
|
callees?: ([string, ({
|
|
9000
9774
|
match: "strings";
|
|
9001
9775
|
} | {
|
|
@@ -9040,6 +9814,71 @@ type BetterTailwindcssEnforceShorthandClasses = [] | [{
|
|
|
9040
9814
|
rootFontSize?: number;
|
|
9041
9815
|
}]; // ----- better-tailwindcss/no-conflicting-classes -----
|
|
9042
9816
|
type BetterTailwindcssNoConflictingClasses = [] | [{
|
|
9817
|
+
selectors?: ({
|
|
9818
|
+
kind: "attribute";
|
|
9819
|
+
match?: ({
|
|
9820
|
+
type: "strings";
|
|
9821
|
+
} | {
|
|
9822
|
+
path?: string;
|
|
9823
|
+
type: "objectKeys";
|
|
9824
|
+
} | {
|
|
9825
|
+
path?: string;
|
|
9826
|
+
type: "objectValues";
|
|
9827
|
+
})[];
|
|
9828
|
+
name: string;
|
|
9829
|
+
} | ({
|
|
9830
|
+
callTarget?: ("all" | "first" | "last" | number);
|
|
9831
|
+
kind: "callee";
|
|
9832
|
+
match?: ({
|
|
9833
|
+
type: "strings";
|
|
9834
|
+
} | {
|
|
9835
|
+
path?: string;
|
|
9836
|
+
type: "objectKeys";
|
|
9837
|
+
} | {
|
|
9838
|
+
path?: string;
|
|
9839
|
+
type: "objectValues";
|
|
9840
|
+
})[];
|
|
9841
|
+
name: string;
|
|
9842
|
+
path?: string;
|
|
9843
|
+
} | {
|
|
9844
|
+
callTarget?: ("all" | "first" | "last" | number);
|
|
9845
|
+
kind: "callee";
|
|
9846
|
+
match?: ({
|
|
9847
|
+
type: "strings";
|
|
9848
|
+
} | {
|
|
9849
|
+
path?: string;
|
|
9850
|
+
type: "objectKeys";
|
|
9851
|
+
} | {
|
|
9852
|
+
path?: string;
|
|
9853
|
+
type: "objectValues";
|
|
9854
|
+
})[];
|
|
9855
|
+
name?: string;
|
|
9856
|
+
path: string;
|
|
9857
|
+
}) | {
|
|
9858
|
+
kind: "tag";
|
|
9859
|
+
match?: ({
|
|
9860
|
+
type: "strings";
|
|
9861
|
+
} | {
|
|
9862
|
+
path?: string;
|
|
9863
|
+
type: "objectKeys";
|
|
9864
|
+
} | {
|
|
9865
|
+
path?: string;
|
|
9866
|
+
type: "objectValues";
|
|
9867
|
+
})[];
|
|
9868
|
+
name: string;
|
|
9869
|
+
} | {
|
|
9870
|
+
kind: "variable";
|
|
9871
|
+
match?: ({
|
|
9872
|
+
type: "strings";
|
|
9873
|
+
} | {
|
|
9874
|
+
path?: string;
|
|
9875
|
+
type: "objectKeys";
|
|
9876
|
+
} | {
|
|
9877
|
+
path?: string;
|
|
9878
|
+
type: "objectValues";
|
|
9879
|
+
})[];
|
|
9880
|
+
name: string;
|
|
9881
|
+
})[];
|
|
9043
9882
|
callees?: ([string, ({
|
|
9044
9883
|
match: "strings";
|
|
9045
9884
|
} | {
|
|
@@ -9084,6 +9923,71 @@ type BetterTailwindcssNoConflictingClasses = [] | [{
|
|
|
9084
9923
|
rootFontSize?: number;
|
|
9085
9924
|
}]; // ----- better-tailwindcss/no-deprecated-classes -----
|
|
9086
9925
|
type BetterTailwindcssNoDeprecatedClasses = [] | [{
|
|
9926
|
+
selectors?: ({
|
|
9927
|
+
kind: "attribute";
|
|
9928
|
+
match?: ({
|
|
9929
|
+
type: "strings";
|
|
9930
|
+
} | {
|
|
9931
|
+
path?: string;
|
|
9932
|
+
type: "objectKeys";
|
|
9933
|
+
} | {
|
|
9934
|
+
path?: string;
|
|
9935
|
+
type: "objectValues";
|
|
9936
|
+
})[];
|
|
9937
|
+
name: string;
|
|
9938
|
+
} | ({
|
|
9939
|
+
callTarget?: ("all" | "first" | "last" | number);
|
|
9940
|
+
kind: "callee";
|
|
9941
|
+
match?: ({
|
|
9942
|
+
type: "strings";
|
|
9943
|
+
} | {
|
|
9944
|
+
path?: string;
|
|
9945
|
+
type: "objectKeys";
|
|
9946
|
+
} | {
|
|
9947
|
+
path?: string;
|
|
9948
|
+
type: "objectValues";
|
|
9949
|
+
})[];
|
|
9950
|
+
name: string;
|
|
9951
|
+
path?: string;
|
|
9952
|
+
} | {
|
|
9953
|
+
callTarget?: ("all" | "first" | "last" | number);
|
|
9954
|
+
kind: "callee";
|
|
9955
|
+
match?: ({
|
|
9956
|
+
type: "strings";
|
|
9957
|
+
} | {
|
|
9958
|
+
path?: string;
|
|
9959
|
+
type: "objectKeys";
|
|
9960
|
+
} | {
|
|
9961
|
+
path?: string;
|
|
9962
|
+
type: "objectValues";
|
|
9963
|
+
})[];
|
|
9964
|
+
name?: string;
|
|
9965
|
+
path: string;
|
|
9966
|
+
}) | {
|
|
9967
|
+
kind: "tag";
|
|
9968
|
+
match?: ({
|
|
9969
|
+
type: "strings";
|
|
9970
|
+
} | {
|
|
9971
|
+
path?: string;
|
|
9972
|
+
type: "objectKeys";
|
|
9973
|
+
} | {
|
|
9974
|
+
path?: string;
|
|
9975
|
+
type: "objectValues";
|
|
9976
|
+
})[];
|
|
9977
|
+
name: string;
|
|
9978
|
+
} | {
|
|
9979
|
+
kind: "variable";
|
|
9980
|
+
match?: ({
|
|
9981
|
+
type: "strings";
|
|
9982
|
+
} | {
|
|
9983
|
+
path?: string;
|
|
9984
|
+
type: "objectKeys";
|
|
9985
|
+
} | {
|
|
9986
|
+
path?: string;
|
|
9987
|
+
type: "objectValues";
|
|
9988
|
+
})[];
|
|
9989
|
+
name: string;
|
|
9990
|
+
})[];
|
|
9087
9991
|
callees?: ([string, ({
|
|
9088
9992
|
match: "strings";
|
|
9089
9993
|
} | {
|
|
@@ -9128,6 +10032,71 @@ type BetterTailwindcssNoDeprecatedClasses = [] | [{
|
|
|
9128
10032
|
rootFontSize?: number;
|
|
9129
10033
|
}]; // ----- better-tailwindcss/no-duplicate-classes -----
|
|
9130
10034
|
type BetterTailwindcssNoDuplicateClasses = [] | [{
|
|
10035
|
+
selectors?: ({
|
|
10036
|
+
kind: "attribute";
|
|
10037
|
+
match?: ({
|
|
10038
|
+
type: "strings";
|
|
10039
|
+
} | {
|
|
10040
|
+
path?: string;
|
|
10041
|
+
type: "objectKeys";
|
|
10042
|
+
} | {
|
|
10043
|
+
path?: string;
|
|
10044
|
+
type: "objectValues";
|
|
10045
|
+
})[];
|
|
10046
|
+
name: string;
|
|
10047
|
+
} | ({
|
|
10048
|
+
callTarget?: ("all" | "first" | "last" | number);
|
|
10049
|
+
kind: "callee";
|
|
10050
|
+
match?: ({
|
|
10051
|
+
type: "strings";
|
|
10052
|
+
} | {
|
|
10053
|
+
path?: string;
|
|
10054
|
+
type: "objectKeys";
|
|
10055
|
+
} | {
|
|
10056
|
+
path?: string;
|
|
10057
|
+
type: "objectValues";
|
|
10058
|
+
})[];
|
|
10059
|
+
name: string;
|
|
10060
|
+
path?: string;
|
|
10061
|
+
} | {
|
|
10062
|
+
callTarget?: ("all" | "first" | "last" | number);
|
|
10063
|
+
kind: "callee";
|
|
10064
|
+
match?: ({
|
|
10065
|
+
type: "strings";
|
|
10066
|
+
} | {
|
|
10067
|
+
path?: string;
|
|
10068
|
+
type: "objectKeys";
|
|
10069
|
+
} | {
|
|
10070
|
+
path?: string;
|
|
10071
|
+
type: "objectValues";
|
|
10072
|
+
})[];
|
|
10073
|
+
name?: string;
|
|
10074
|
+
path: string;
|
|
10075
|
+
}) | {
|
|
10076
|
+
kind: "tag";
|
|
10077
|
+
match?: ({
|
|
10078
|
+
type: "strings";
|
|
10079
|
+
} | {
|
|
10080
|
+
path?: string;
|
|
10081
|
+
type: "objectKeys";
|
|
10082
|
+
} | {
|
|
10083
|
+
path?: string;
|
|
10084
|
+
type: "objectValues";
|
|
10085
|
+
})[];
|
|
10086
|
+
name: string;
|
|
10087
|
+
} | {
|
|
10088
|
+
kind: "variable";
|
|
10089
|
+
match?: ({
|
|
10090
|
+
type: "strings";
|
|
10091
|
+
} | {
|
|
10092
|
+
path?: string;
|
|
10093
|
+
type: "objectKeys";
|
|
10094
|
+
} | {
|
|
10095
|
+
path?: string;
|
|
10096
|
+
type: "objectValues";
|
|
10097
|
+
})[];
|
|
10098
|
+
name: string;
|
|
10099
|
+
})[];
|
|
9131
10100
|
callees?: ([string, ({
|
|
9132
10101
|
match: "strings";
|
|
9133
10102
|
} | {
|
|
@@ -9172,6 +10141,71 @@ type BetterTailwindcssNoDuplicateClasses = [] | [{
|
|
|
9172
10141
|
rootFontSize?: number;
|
|
9173
10142
|
}]; // ----- better-tailwindcss/no-restricted-classes -----
|
|
9174
10143
|
type BetterTailwindcssNoRestrictedClasses = [] | [{
|
|
10144
|
+
selectors?: ({
|
|
10145
|
+
kind: "attribute";
|
|
10146
|
+
match?: ({
|
|
10147
|
+
type: "strings";
|
|
10148
|
+
} | {
|
|
10149
|
+
path?: string;
|
|
10150
|
+
type: "objectKeys";
|
|
10151
|
+
} | {
|
|
10152
|
+
path?: string;
|
|
10153
|
+
type: "objectValues";
|
|
10154
|
+
})[];
|
|
10155
|
+
name: string;
|
|
10156
|
+
} | ({
|
|
10157
|
+
callTarget?: ("all" | "first" | "last" | number);
|
|
10158
|
+
kind: "callee";
|
|
10159
|
+
match?: ({
|
|
10160
|
+
type: "strings";
|
|
10161
|
+
} | {
|
|
10162
|
+
path?: string;
|
|
10163
|
+
type: "objectKeys";
|
|
10164
|
+
} | {
|
|
10165
|
+
path?: string;
|
|
10166
|
+
type: "objectValues";
|
|
10167
|
+
})[];
|
|
10168
|
+
name: string;
|
|
10169
|
+
path?: string;
|
|
10170
|
+
} | {
|
|
10171
|
+
callTarget?: ("all" | "first" | "last" | number);
|
|
10172
|
+
kind: "callee";
|
|
10173
|
+
match?: ({
|
|
10174
|
+
type: "strings";
|
|
10175
|
+
} | {
|
|
10176
|
+
path?: string;
|
|
10177
|
+
type: "objectKeys";
|
|
10178
|
+
} | {
|
|
10179
|
+
path?: string;
|
|
10180
|
+
type: "objectValues";
|
|
10181
|
+
})[];
|
|
10182
|
+
name?: string;
|
|
10183
|
+
path: string;
|
|
10184
|
+
}) | {
|
|
10185
|
+
kind: "tag";
|
|
10186
|
+
match?: ({
|
|
10187
|
+
type: "strings";
|
|
10188
|
+
} | {
|
|
10189
|
+
path?: string;
|
|
10190
|
+
type: "objectKeys";
|
|
10191
|
+
} | {
|
|
10192
|
+
path?: string;
|
|
10193
|
+
type: "objectValues";
|
|
10194
|
+
})[];
|
|
10195
|
+
name: string;
|
|
10196
|
+
} | {
|
|
10197
|
+
kind: "variable";
|
|
10198
|
+
match?: ({
|
|
10199
|
+
type: "strings";
|
|
10200
|
+
} | {
|
|
10201
|
+
path?: string;
|
|
10202
|
+
type: "objectKeys";
|
|
10203
|
+
} | {
|
|
10204
|
+
path?: string;
|
|
10205
|
+
type: "objectValues";
|
|
10206
|
+
})[];
|
|
10207
|
+
name: string;
|
|
10208
|
+
})[];
|
|
9175
10209
|
callees?: ([string, ({
|
|
9176
10210
|
match: "strings";
|
|
9177
10211
|
} | {
|
|
@@ -9221,11 +10255,76 @@ type BetterTailwindcssNoRestrictedClasses = [] | [{
|
|
|
9221
10255
|
} | string)[];
|
|
9222
10256
|
}]; // ----- better-tailwindcss/no-unknown-classes -----
|
|
9223
10257
|
type BetterTailwindcssNoUnknownClasses = [] | [{
|
|
9224
|
-
|
|
9225
|
-
|
|
10258
|
+
selectors?: ({
|
|
10259
|
+
kind: "attribute";
|
|
10260
|
+
match?: ({
|
|
10261
|
+
type: "strings";
|
|
10262
|
+
} | {
|
|
10263
|
+
path?: string;
|
|
10264
|
+
type: "objectKeys";
|
|
10265
|
+
} | {
|
|
10266
|
+
path?: string;
|
|
10267
|
+
type: "objectValues";
|
|
10268
|
+
})[];
|
|
10269
|
+
name: string;
|
|
10270
|
+
} | ({
|
|
10271
|
+
callTarget?: ("all" | "first" | "last" | number);
|
|
10272
|
+
kind: "callee";
|
|
10273
|
+
match?: ({
|
|
10274
|
+
type: "strings";
|
|
10275
|
+
} | {
|
|
10276
|
+
path?: string;
|
|
10277
|
+
type: "objectKeys";
|
|
10278
|
+
} | {
|
|
10279
|
+
path?: string;
|
|
10280
|
+
type: "objectValues";
|
|
10281
|
+
})[];
|
|
10282
|
+
name: string;
|
|
10283
|
+
path?: string;
|
|
9226
10284
|
} | {
|
|
9227
|
-
|
|
9228
|
-
|
|
10285
|
+
callTarget?: ("all" | "first" | "last" | number);
|
|
10286
|
+
kind: "callee";
|
|
10287
|
+
match?: ({
|
|
10288
|
+
type: "strings";
|
|
10289
|
+
} | {
|
|
10290
|
+
path?: string;
|
|
10291
|
+
type: "objectKeys";
|
|
10292
|
+
} | {
|
|
10293
|
+
path?: string;
|
|
10294
|
+
type: "objectValues";
|
|
10295
|
+
})[];
|
|
10296
|
+
name?: string;
|
|
10297
|
+
path: string;
|
|
10298
|
+
}) | {
|
|
10299
|
+
kind: "tag";
|
|
10300
|
+
match?: ({
|
|
10301
|
+
type: "strings";
|
|
10302
|
+
} | {
|
|
10303
|
+
path?: string;
|
|
10304
|
+
type: "objectKeys";
|
|
10305
|
+
} | {
|
|
10306
|
+
path?: string;
|
|
10307
|
+
type: "objectValues";
|
|
10308
|
+
})[];
|
|
10309
|
+
name: string;
|
|
10310
|
+
} | {
|
|
10311
|
+
kind: "variable";
|
|
10312
|
+
match?: ({
|
|
10313
|
+
type: "strings";
|
|
10314
|
+
} | {
|
|
10315
|
+
path?: string;
|
|
10316
|
+
type: "objectKeys";
|
|
10317
|
+
} | {
|
|
10318
|
+
path?: string;
|
|
10319
|
+
type: "objectValues";
|
|
10320
|
+
})[];
|
|
10321
|
+
name: string;
|
|
10322
|
+
})[];
|
|
10323
|
+
callees?: ([string, ({
|
|
10324
|
+
match: "strings";
|
|
10325
|
+
} | {
|
|
10326
|
+
match: "objectKeys";
|
|
10327
|
+
pathPattern?: string;
|
|
9229
10328
|
} | {
|
|
9230
10329
|
match: "objectValues";
|
|
9231
10330
|
pathPattern?: string;
|
|
@@ -9266,6 +10365,71 @@ type BetterTailwindcssNoUnknownClasses = [] | [{
|
|
|
9266
10365
|
ignore?: string[];
|
|
9267
10366
|
}]; // ----- better-tailwindcss/no-unnecessary-whitespace -----
|
|
9268
10367
|
type BetterTailwindcssNoUnnecessaryWhitespace = [] | [{
|
|
10368
|
+
selectors?: ({
|
|
10369
|
+
kind: "attribute";
|
|
10370
|
+
match?: ({
|
|
10371
|
+
type: "strings";
|
|
10372
|
+
} | {
|
|
10373
|
+
path?: string;
|
|
10374
|
+
type: "objectKeys";
|
|
10375
|
+
} | {
|
|
10376
|
+
path?: string;
|
|
10377
|
+
type: "objectValues";
|
|
10378
|
+
})[];
|
|
10379
|
+
name: string;
|
|
10380
|
+
} | ({
|
|
10381
|
+
callTarget?: ("all" | "first" | "last" | number);
|
|
10382
|
+
kind: "callee";
|
|
10383
|
+
match?: ({
|
|
10384
|
+
type: "strings";
|
|
10385
|
+
} | {
|
|
10386
|
+
path?: string;
|
|
10387
|
+
type: "objectKeys";
|
|
10388
|
+
} | {
|
|
10389
|
+
path?: string;
|
|
10390
|
+
type: "objectValues";
|
|
10391
|
+
})[];
|
|
10392
|
+
name: string;
|
|
10393
|
+
path?: string;
|
|
10394
|
+
} | {
|
|
10395
|
+
callTarget?: ("all" | "first" | "last" | number);
|
|
10396
|
+
kind: "callee";
|
|
10397
|
+
match?: ({
|
|
10398
|
+
type: "strings";
|
|
10399
|
+
} | {
|
|
10400
|
+
path?: string;
|
|
10401
|
+
type: "objectKeys";
|
|
10402
|
+
} | {
|
|
10403
|
+
path?: string;
|
|
10404
|
+
type: "objectValues";
|
|
10405
|
+
})[];
|
|
10406
|
+
name?: string;
|
|
10407
|
+
path: string;
|
|
10408
|
+
}) | {
|
|
10409
|
+
kind: "tag";
|
|
10410
|
+
match?: ({
|
|
10411
|
+
type: "strings";
|
|
10412
|
+
} | {
|
|
10413
|
+
path?: string;
|
|
10414
|
+
type: "objectKeys";
|
|
10415
|
+
} | {
|
|
10416
|
+
path?: string;
|
|
10417
|
+
type: "objectValues";
|
|
10418
|
+
})[];
|
|
10419
|
+
name: string;
|
|
10420
|
+
} | {
|
|
10421
|
+
kind: "variable";
|
|
10422
|
+
match?: ({
|
|
10423
|
+
type: "strings";
|
|
10424
|
+
} | {
|
|
10425
|
+
path?: string;
|
|
10426
|
+
type: "objectKeys";
|
|
10427
|
+
} | {
|
|
10428
|
+
path?: string;
|
|
10429
|
+
type: "objectValues";
|
|
10430
|
+
})[];
|
|
10431
|
+
name: string;
|
|
10432
|
+
})[];
|
|
9269
10433
|
callees?: ([string, ({
|
|
9270
10434
|
match: "strings";
|
|
9271
10435
|
} | {
|
|
@@ -9386,19 +10550,7 @@ type DotNotation = [] | [{
|
|
|
9386
10550
|
type EolLast = [] | [("always" | "never" | "unix" | "windows")]; // ----- eqeqeq -----
|
|
9387
10551
|
type Eqeqeq = ([] | ["always"] | ["always", {
|
|
9388
10552
|
null?: ("always" | "never" | "ignore");
|
|
9389
|
-
}] | [] | [("smart" | "allow-null")]); // -----
|
|
9390
|
-
type FormatDprint = [] | [{
|
|
9391
|
-
language?: string;
|
|
9392
|
-
languageOptions?: {
|
|
9393
|
-
[k: string]: unknown | undefined;
|
|
9394
|
-
};
|
|
9395
|
-
plugins?: unknown[];
|
|
9396
|
-
[k: string]: unknown | undefined;
|
|
9397
|
-
}]; // ----- format/prettier -----
|
|
9398
|
-
type FormatPrettier = [] | [{
|
|
9399
|
-
parser?: string;
|
|
9400
|
-
[k: string]: unknown | undefined;
|
|
9401
|
-
}]; // ----- func-call-spacing -----
|
|
10553
|
+
}] | [] | [("smart" | "allow-null")]); // ----- func-call-spacing -----
|
|
9402
10554
|
type FuncCallSpacing = ([] | ["never"] | [] | ["always"] | ["always", {
|
|
9403
10555
|
allowNewlines?: boolean;
|
|
9404
10556
|
}]); // ----- func-name-matching -----
|
|
@@ -10176,6 +11328,7 @@ type JsdocTagLines = [] | [("always" | "any" | "never")] | [("always" | "any" |
|
|
|
10176
11328
|
endLines?: (number | null);
|
|
10177
11329
|
maxBlockLines?: (number | null);
|
|
10178
11330
|
startLines?: (number | null);
|
|
11331
|
+
startLinesWithNoTags?: number;
|
|
10179
11332
|
tags?: {
|
|
10180
11333
|
[k: string]: {
|
|
10181
11334
|
count?: number;
|
|
@@ -10386,6 +11539,7 @@ type JsoncObjectCurlyNewline = [] | [((("always" | "never") | {
|
|
|
10386
11539
|
type JsoncObjectCurlySpacing = [] | [("always" | "never")] | [("always" | "never"), {
|
|
10387
11540
|
arraysInObjects?: boolean;
|
|
10388
11541
|
objectsInObjects?: boolean;
|
|
11542
|
+
emptyObjects?: ("ignore" | "always" | "never");
|
|
10389
11543
|
}]; // ----- jsonc/object-property-newline -----
|
|
10390
11544
|
type JsoncObjectPropertyNewline = [] | [{
|
|
10391
11545
|
allowAllPropertiesOnSameLine?: boolean;
|
|
@@ -10858,13 +12012,15 @@ type LogicalAssignmentOperators = (([] | ["always"] | ["always", {
|
|
|
10858
12012
|
}] | ["never"]) & unknown[]); // ----- markdown/fenced-code-language -----
|
|
10859
12013
|
type MarkdownFencedCodeLanguage = [] | [{
|
|
10860
12014
|
required?: string[];
|
|
10861
|
-
}]; // ----- markdown/
|
|
12015
|
+
}]; // ----- markdown/fenced-code-meta -----
|
|
12016
|
+
type MarkdownFencedCodeMeta = [] | [("always" | "never")]; // ----- markdown/heading-increment -----
|
|
10862
12017
|
type MarkdownHeadingIncrement = [] | [{
|
|
10863
12018
|
frontmatterTitle?: string;
|
|
10864
12019
|
}]; // ----- markdown/no-duplicate-definitions -----
|
|
10865
12020
|
type MarkdownNoDuplicateDefinitions = [] | [{
|
|
10866
12021
|
allowDefinitions?: string[];
|
|
10867
12022
|
allowFootnoteDefinitions?: string[];
|
|
12023
|
+
checkFootnoteDefinitions?: boolean;
|
|
10868
12024
|
}]; // ----- markdown/no-duplicate-headings -----
|
|
10869
12025
|
type MarkdownNoDuplicateHeadings = [] | [{
|
|
10870
12026
|
checkSiblingsOnly?: boolean;
|
|
@@ -10897,6 +12053,7 @@ type MarkdownNoSpaceInEmphasis = [] | [{
|
|
|
10897
12053
|
type MarkdownNoUnusedDefinitions = [] | [{
|
|
10898
12054
|
allowDefinitions?: string[];
|
|
10899
12055
|
allowFootnoteDefinitions?: string[];
|
|
12056
|
+
checkFootnoteDefinitions?: boolean;
|
|
10900
12057
|
}]; // ----- markdown/table-column-count -----
|
|
10901
12058
|
type MarkdownTableColumnCount = [] | [{
|
|
10902
12059
|
checkMissingCells?: boolean;
|
|
@@ -10995,6 +12152,7 @@ type MaxParams = [] | [(number | {
|
|
|
10995
12152
|
maximum?: number;
|
|
10996
12153
|
max?: number;
|
|
10997
12154
|
countVoidThis?: boolean;
|
|
12155
|
+
countThis?: ("never" | "except-void" | "always");
|
|
10998
12156
|
})]; // ----- max-statements -----
|
|
10999
12157
|
type MaxStatements = [] | [(number | {
|
|
11000
12158
|
maximum?: number;
|
|
@@ -11220,10 +12378,12 @@ type NNoUnsupportedFeaturesNodeBuiltins = [] | [{
|
|
|
11220
12378
|
ignores?: ("__filename" | "__dirname" | "require" | "require.cache" | "require.extensions" | "require.main" | "require.resolve" | "require.resolve.paths" | "module" | "module.children" | "module.exports" | "module.filename" | "module.id" | "module.isPreloading" | "module.loaded" | "module.parent" | "module.path" | "module.paths" | "module.require" | "exports" | "AbortController" | "AbortSignal" | "AbortSignal.abort" | "AbortSignal.timeout" | "AbortSignal.any" | "DOMException" | "FormData" | "Headers" | "MessageEvent" | "Navigator" | "Request" | "Response" | "WebAssembly" | "WebSocket" | "fetch" | "global" | "queueMicrotask" | "navigator" | "navigator.hardwareConcurrency" | "navigator.language" | "navigator.languages" | "navigator.platform" | "navigator.userAgent" | "structuredClone" | "localStorage" | "sessionStorage" | "Storage" | "Blob" | "new Buffer()" | "Buffer" | "Buffer.alloc" | "Buffer.allocUnsafe" | "Buffer.allocUnsafeSlow" | "Buffer.byteLength" | "Buffer.compare" | "Buffer.concat" | "Buffer.copyBytesFrom" | "Buffer.from" | "Buffer.isBuffer" | "Buffer.isEncoding" | "File" | "atob" | "btoa" | "console" | "console.profile" | "console.profileEnd" | "console.timeStamp" | "console.Console" | "console.assert" | "console.clear" | "console.count" | "console.countReset" | "console.debug" | "console.dir" | "console.dirxml" | "console.error" | "console.group" | "console.groupCollapsed" | "console.groupEnd" | "console.info" | "console.log" | "console.table" | "console.time" | "console.timeEnd" | "console.timeLog" | "console.trace" | "console.warn" | "crypto" | "crypto.subtle" | "crypto.subtle.decrypt" | "crypto.subtle.deriveBits" | "crypto.subtle.deriveKey" | "crypto.subtle.digest" | "crypto.subtle.encrypt" | "crypto.subtle.exportKey" | "crypto.subtle.generateKey" | "crypto.subtle.importKey" | "crypto.subtle.sign" | "crypto.subtle.unwrapKey" | "crypto.subtle.verify" | "crypto.subtle.wrapKey" | "crypto.getRandomValues" | "crypto.randomUUID" | "Crypto" | "CryptoKey" | "SubtleCrypto" | "CloseEvent" | "CustomEvent" | "Event" | "EventSource" | "EventTarget" | "PerformanceEntry" | "PerformanceMark" | "PerformanceMeasure" | "PerformanceObserver" | "PerformanceObserverEntryList" | "PerformanceResourceTiming" | "performance" | "performance.clearMarks" | "performance.clearMeasures" | "performance.clearResourceTimings" | "performance.eventLoopUtilization" | "performance.getEntries" | "performance.getEntriesByName" | "performance.getEntriesByType" | "performance.mark" | "performance.markResourceTiming" | "performance.measure" | "performance.nodeTiming" | "performance.nodeTiming.bootstrapComplete" | "performance.nodeTiming.environment" | "performance.nodeTiming.idleTime" | "performance.nodeTiming.loopExit" | "performance.nodeTiming.loopStart" | "performance.nodeTiming.nodeStart" | "performance.nodeTiming.uvMetricsInfo" | "performance.nodeTiming.v8Start" | "performance.now" | "performance.onresourcetimingbufferfull" | "performance.setResourceTimingBufferSize" | "performance.timeOrigin" | "performance.timerify" | "performance.toJSON" | "process" | "process.allowedNodeEnvironmentFlags" | "process.availableMemory" | "process.arch" | "process.argv" | "process.argv0" | "process.channel" | "process.config" | "process.connected" | "process.debugPort" | "process.env" | "process.execArgv" | "process.execPath" | "process.execve" | "process.exitCode" | "process.features.cached_builtins" | "process.features.debug" | "process.features.inspector" | "process.features.ipv6" | "process.features.require_module" | "process.features.tls" | "process.features.tls_alpn" | "process.features.tls_ocsp" | "process.features.tls_sni" | "process.features.typescript" | "process.features.uv" | "process.finalization.register" | "process.finalization.registerBeforeExit" | "process.finalization.unregister" | "process.getBuiltinModule" | "process.mainModule" | "process.noDeprecation" | "process.permission" | "process.pid" | "process.platform" | "process.ppid" | "process.ref" | "process.release" | "process.report" | "process.report.excludeEnv" | "process.sourceMapsEnabled" | "process.stdin" | "process.stdin.isRaw" | "process.stdin.isTTY" | "process.stdin.setRawMode" | "process.stdout" | "process.stdout.clearLine" | "process.stdout.clearScreenDown" | "process.stdout.columns" | "process.stdout.cursorTo" | "process.stdout.getColorDepth" | "process.stdout.getWindowSize" | "process.stdout.hasColors" | "process.stdout.isTTY" | "process.stdout.moveCursor" | "process.stdout.rows" | "process.stderr" | "process.stderr.clearLine" | "process.stderr.clearScreenDown" | "process.stderr.columns" | "process.stderr.cursorTo" | "process.stderr.getColorDepth" | "process.stderr.getWindowSize" | "process.stderr.hasColors" | "process.stderr.isTTY" | "process.stderr.moveCursor" | "process.stderr.rows" | "process.threadCpuUsage" | "process.throwDeprecation" | "process.title" | "process.traceDeprecation" | "process.version" | "process.versions" | "process.abort" | "process.chdir" | "process.constrainedMemory" | "process.cpuUsage" | "process.cwd" | "process.disconnect" | "process.dlopen" | "process.emitWarning" | "process.exit" | "process.getActiveResourcesInfo" | "process.getegid" | "process.geteuid" | "process.getgid" | "process.getgroups" | "process.getuid" | "process.hasUncaughtExceptionCaptureCallback" | "process.hrtime" | "process.hrtime.bigint" | "process.initgroups" | "process.kill" | "process.loadEnvFile" | "process.memoryUsage" | "process.rss" | "process.nextTick" | "process.resourceUsage" | "process.send" | "process.setegid" | "process.seteuid" | "process.setgid" | "process.setgroups" | "process.setuid" | "process.setSourceMapsEnabled" | "process.setUncaughtExceptionCaptureCallback" | "process.umask" | "process.unref" | "process.uptime" | "ReadableStream" | "ReadableStream.from" | "ReadableStreamDefaultReader" | "ReadableStreamBYOBReader" | "ReadableStreamDefaultController" | "ReadableByteStreamController" | "ReadableStreamBYOBRequest" | "WritableStream" | "WritableStreamDefaultWriter" | "WritableStreamDefaultController" | "TransformStream" | "TransformStreamDefaultController" | "ByteLengthQueuingStrategy" | "CountQueuingStrategy" | "TextEncoderStream" | "TextDecoderStream" | "CompressionStream" | "DecompressionStream" | "setInterval" | "clearInterval" | "setTimeout" | "clearTimeout" | "setImmediate" | "clearImmediate" | "URL" | "URL.canParse" | "URL.createObjectURL" | "URL.revokeObjectURL" | "URLSearchParams" | "TextDecoder" | "TextEncoder" | "BroadcastChannel" | "MessageChannel" | "MessagePort" | "assert" | "assert.Assert" | "assert.assert" | "assert.deepEqual" | "assert.deepStrictEqual" | "assert.doesNotMatch" | "assert.doesNotReject" | "assert.doesNotThrow" | "assert.equal" | "assert.fail" | "assert.ifError" | "assert.match" | "assert.notDeepEqual" | "assert.notDeepStrictEqual" | "assert.notEqual" | "assert.notStrictEqual" | "assert.ok" | "assert.partialDeepStrictEqual" | "assert.rejects" | "assert.strictEqual" | "assert.throws" | "assert.CallTracker" | "assert.strict" | "assert.strict.Assert" | "assert.strict.assert" | "assert.strict.deepEqual" | "assert.strict.deepStrictEqual" | "assert.strict.doesNotMatch" | "assert.strict.doesNotReject" | "assert.strict.doesNotThrow" | "assert.strict.equal" | "assert.strict.fail" | "assert.strict.ifError" | "assert.strict.match" | "assert.strict.notDeepEqual" | "assert.strict.notDeepStrictEqual" | "assert.strict.notEqual" | "assert.strict.notStrictEqual" | "assert.strict.ok" | "assert.strict.partialDeepStrictEqual" | "assert.strict.rejects" | "assert.strict.strictEqual" | "assert.strict.throws" | "assert.strict.CallTracker" | "assert/strict" | "assert/strict.Assert" | "assert/strict.assert" | "assert/strict.deepEqual" | "assert/strict.deepStrictEqual" | "assert/strict.doesNotMatch" | "assert/strict.doesNotReject" | "assert/strict.doesNotThrow" | "assert/strict.equal" | "assert/strict.fail" | "assert/strict.ifError" | "assert/strict.match" | "assert/strict.notDeepEqual" | "assert/strict.notDeepStrictEqual" | "assert/strict.notEqual" | "assert/strict.notStrictEqual" | "assert/strict.ok" | "assert/strict.partialDeepStrictEqual" | "assert/strict.rejects" | "assert/strict.strictEqual" | "assert/strict.throws" | "assert/strict.CallTracker" | "async_hooks" | "async_hooks.createHook" | "async_hooks.executionAsyncResource" | "async_hooks.executionAsyncId" | "async_hooks.triggerAsyncId" | "async_hooks.AsyncLocalStorage" | "async_hooks.AsyncLocalStorage.bind" | "async_hooks.AsyncLocalStorage.snapshot" | "async_hooks.AsyncResource" | "async_hooks.AsyncResource.bind" | "buffer" | "buffer.constants" | "buffer.INSPECT_MAX_BYTES" | "buffer.kMaxLength" | "buffer.kStringMaxLength" | "buffer.atob" | "buffer.btoa" | "buffer.isAscii" | "buffer.isUtf8" | "buffer.resolveObjectURL" | "buffer.transcode" | "buffer.SlowBuffer" | "buffer.Blob" | "new buffer.Buffer()" | "buffer.Buffer" | "buffer.Buffer.alloc" | "buffer.Buffer.allocUnsafe" | "buffer.Buffer.allocUnsafeSlow" | "buffer.Buffer.byteLength" | "buffer.Buffer.compare" | "buffer.Buffer.concat" | "buffer.Buffer.copyBytesFrom" | "buffer.Buffer.from" | "buffer.Buffer.isBuffer" | "buffer.Buffer.isEncoding" | "buffer.File" | "child_process" | "child_process.exec" | "child_process.execFile" | "child_process.fork" | "child_process.spawn" | "child_process.execFileSync" | "child_process.execSync" | "child_process.spawnSync" | "child_process.ChildProcess" | "cluster" | "cluster.isMaster" | "cluster.isPrimary" | "cluster.isWorker" | "cluster.schedulingPolicy" | "cluster.settings" | "cluster.worker" | "cluster.workers" | "cluster.disconnect" | "cluster.fork" | "cluster.setupMaster" | "cluster.setupPrimary" | "cluster.Worker" | "crypto.constants" | "crypto.fips" | "crypto.webcrypto" | "crypto.webcrypto.subtle" | "crypto.webcrypto.subtle.decrypt" | "crypto.webcrypto.subtle.deriveBits" | "crypto.webcrypto.subtle.deriveKey" | "crypto.webcrypto.subtle.digest" | "crypto.webcrypto.subtle.encrypt" | "crypto.webcrypto.subtle.exportKey" | "crypto.webcrypto.subtle.generateKey" | "crypto.webcrypto.subtle.importKey" | "crypto.webcrypto.subtle.sign" | "crypto.webcrypto.subtle.unwrapKey" | "crypto.webcrypto.subtle.verify" | "crypto.webcrypto.subtle.wrapKey" | "crypto.webcrypto.getRandomValues" | "crypto.webcrypto.randomUUID" | "crypto.checkPrime" | "crypto.checkPrimeSync" | "crypto.createCipher" | "crypto.createCipheriv" | "crypto.createDecipher" | "crypto.createDecipheriv" | "crypto.createDiffieHellman" | "crypto.createDiffieHellmanGroup" | "crypto.createECDH" | "crypto.createHash" | "crypto.createHmac" | "crypto.createPrivateKey" | "crypto.createPublicKey" | "crypto.createSecretKey" | "crypto.createSign" | "crypto.createVerify" | "crypto.diffieHellman" | "crypto.generateKey" | "crypto.generateKeyPair" | "crypto.generateKeyPairSync" | "crypto.generateKeySync" | "crypto.generatePrime" | "crypto.generatePrimeSync" | "crypto.getCipherInfo" | "crypto.getCiphers" | "crypto.getCurves" | "crypto.getDiffieHellman" | "crypto.getFips" | "crypto.getHashes" | "crypto.hash" | "crypto.hkdf" | "crypto.hkdfSync" | "crypto.pbkdf2" | "crypto.pbkdf2Sync" | "crypto.privateDecrypt" | "crypto.privateEncrypt" | "crypto.publicDecrypt" | "crypto.publicEncrypt" | "crypto.randomBytes" | "crypto.randomFillSync" | "crypto.randomFill" | "crypto.randomInt" | "crypto.scrypt" | "crypto.scryptSync" | "crypto.secureHeapUsed" | "crypto.setEngine" | "crypto.setFips" | "crypto.sign" | "crypto.timingSafeEqual" | "crypto.verify" | "crypto.Certificate" | "crypto.Certificate.exportChallenge" | "crypto.Certificate.exportPublicKey" | "crypto.Certificate.verifySpkac" | "crypto.Cipher" | "crypto.Decipher" | "crypto.DiffieHellman" | "crypto.DiffieHellmanGroup" | "crypto.ECDH" | "crypto.ECDH.convertKey" | "crypto.Hash()" | "new crypto.Hash()" | "crypto.Hash" | "crypto.Hmac()" | "new crypto.Hmac()" | "crypto.Hmac" | "crypto.KeyObject" | "crypto.KeyObject.from" | "crypto.Sign" | "crypto.Verify" | "crypto.X509Certificate" | "dgram" | "dgram.createSocket" | "dgram.Socket" | "diagnostics_channel" | "diagnostics_channel.hasSubscribers" | "diagnostics_channel.channel" | "diagnostics_channel.subscribe" | "diagnostics_channel.unsubscribe" | "diagnostics_channel.tracingChannel" | "diagnostics_channel.Channel" | "diagnostics_channel.TracingChannel" | "dns" | "dns.Resolver" | "dns.getServers" | "dns.lookup" | "dns.lookupService" | "dns.resolve" | "dns.resolve4" | "dns.resolve6" | "dns.resolveAny" | "dns.resolveCname" | "dns.resolveCaa" | "dns.resolveMx" | "dns.resolveNaptr" | "dns.resolveNs" | "dns.resolvePtr" | "dns.resolveSoa" | "dns.resolveSrv" | "dns.resolveTlsa" | "dns.resolveTxt" | "dns.reverse" | "dns.setDefaultResultOrder" | "dns.getDefaultResultOrder" | "dns.setServers" | "dns.promises" | "dns.promises.Resolver" | "dns.promises.cancel" | "dns.promises.getServers" | "dns.promises.lookup" | "dns.promises.lookupService" | "dns.promises.resolve" | "dns.promises.resolve4" | "dns.promises.resolve6" | "dns.promises.resolveAny" | "dns.promises.resolveCaa" | "dns.promises.resolveCname" | "dns.promises.resolveMx" | "dns.promises.resolveNaptr" | "dns.promises.resolveNs" | "dns.promises.resolvePtr" | "dns.promises.resolveSoa" | "dns.promises.resolveSrv" | "dns.promises.resolveTlsa" | "dns.promises.resolveTxt" | "dns.promises.reverse" | "dns.promises.setDefaultResultOrder" | "dns.promises.getDefaultResultOrder" | "dns.promises.setServers" | "dns/promises" | "dns/promises.Resolver" | "dns/promises.cancel" | "dns/promises.getServers" | "dns/promises.lookup" | "dns/promises.lookupService" | "dns/promises.resolve" | "dns/promises.resolve4" | "dns/promises.resolve6" | "dns/promises.resolveAny" | "dns/promises.resolveCaa" | "dns/promises.resolveCname" | "dns/promises.resolveMx" | "dns/promises.resolveNaptr" | "dns/promises.resolveNs" | "dns/promises.resolvePtr" | "dns/promises.resolveSoa" | "dns/promises.resolveSrv" | "dns/promises.resolveTlsa" | "dns/promises.resolveTxt" | "dns/promises.reverse" | "dns/promises.setDefaultResultOrder" | "dns/promises.getDefaultResultOrder" | "dns/promises.setServers" | "domain" | "domain.create" | "domain.Domain" | "events" | "events.Event" | "events.EventTarget" | "events.CustomEvent" | "events.NodeEventTarget" | "events.EventEmitter" | "events.EventEmitter.defaultMaxListeners" | "events.EventEmitter.errorMonitor" | "events.EventEmitter.captureRejections" | "events.EventEmitter.captureRejectionSymbol" | "events.EventEmitter.getEventListeners" | "events.EventEmitter.getMaxListeners" | "events.EventEmitter.once" | "events.EventEmitter.listenerCount" | "events.EventEmitter.on" | "events.EventEmitter.setMaxListeners" | "events.EventEmitter.addAbortListener" | "events.EventEmitterAsyncResource" | "events.EventEmitterAsyncResource.defaultMaxListeners" | "events.EventEmitterAsyncResource.errorMonitor" | "events.EventEmitterAsyncResource.captureRejections" | "events.EventEmitterAsyncResource.captureRejectionSymbol" | "events.EventEmitterAsyncResource.getEventListeners" | "events.EventEmitterAsyncResource.getMaxListeners" | "events.EventEmitterAsyncResource.once" | "events.EventEmitterAsyncResource.listenerCount" | "events.EventEmitterAsyncResource.on" | "events.EventEmitterAsyncResource.setMaxListeners" | "events.EventEmitterAsyncResource.addAbortListener" | "events.defaultMaxListeners" | "events.errorMonitor" | "events.captureRejections" | "events.captureRejectionSymbol" | "events.getEventListeners" | "events.getMaxListeners" | "events.once" | "events.listenerCount" | "events.on" | "events.setMaxListeners" | "events.addAbortListener" | "fs" | "fs.promises" | "fs.promises.FileHandle" | "fs.promises.access" | "fs.promises.appendFile" | "fs.promises.chmod" | "fs.promises.chown" | "fs.promises.constants" | "fs.promises.copyFile" | "fs.promises.cp" | "fs.promises.glob" | "fs.promises.lchmod" | "fs.promises.lchown" | "fs.promises.link" | "fs.promises.lstat" | "fs.promises.lutimes" | "fs.promises.mkdir" | "fs.promises.mkdtemp" | "fs.promises.open" | "fs.promises.opendir" | "fs.promises.readFile" | "fs.promises.readdir" | "fs.promises.readlink" | "fs.promises.realpath" | "fs.promises.rename" | "fs.promises.rm" | "fs.promises.rmdir" | "fs.promises.stat" | "fs.promises.statfs" | "fs.promises.symlink" | "fs.promises.truncate" | "fs.promises.unlink" | "fs.promises.utimes" | "fs.promises.watch" | "fs.promises.writeFile" | "fs.access" | "fs.appendFile" | "fs.chmod" | "fs.chown" | "fs.close" | "fs.copyFile" | "fs.cp" | "fs.createReadStream" | "fs.createWriteStream" | "fs.exists" | "fs.fchmod" | "fs.fchown" | "fs.fdatasync" | "fs.fstat" | "fs.fsync" | "fs.ftruncate" | "fs.futimes" | "fs.glob" | "fs.lchmod" | "fs.lchown" | "fs.link" | "fs.lstat" | "fs.lutimes" | "fs.mkdir" | "fs.mkdtemp" | "fs.native" | "fs.open" | "fs.openAsBlob" | "fs.opendir" | "fs.read" | "fs.readdir" | "fs.readFile" | "fs.readlink" | "fs.readv" | "fs.realpath" | "fs.realpath.native" | "fs.rename" | "fs.rm" | "fs.rmdir" | "fs.stat" | "fs.statfs" | "fs.symlink" | "fs.truncate" | "fs.unlink" | "fs.unwatchFile" | "fs.utimes" | "fs.watch" | "fs.watchFile" | "fs.write" | "fs.writeFile" | "fs.writev" | "fs.accessSync" | "fs.appendFileSync" | "fs.chmodSync" | "fs.chownSync" | "fs.closeSync" | "fs.copyFileSync" | "fs.cpSync" | "fs.existsSync" | "fs.fchmodSync" | "fs.fchownSync" | "fs.fdatasyncSync" | "fs.fstatSync" | "fs.fsyncSync" | "fs.ftruncateSync" | "fs.futimesSync" | "fs.globSync" | "fs.lchmodSync" | "fs.lchownSync" | "fs.linkSync" | "fs.lstatSync" | "fs.lutimesSync" | "fs.mkdirSync" | "fs.mkdtempSync" | "fs.opendirSync" | "fs.openSync" | "fs.readdirSync" | "fs.readFileSync" | "fs.readlinkSync" | "fs.readSync" | "fs.readvSync" | "fs.realpathSync" | "fs.realpathSync.native" | "fs.renameSync" | "fs.rmdirSync" | "fs.rmSync" | "fs.statfsSync" | "fs.statSync" | "fs.symlinkSync" | "fs.truncateSync" | "fs.unlinkSync" | "fs.utimesSync" | "fs.writeFileSync" | "fs.writeSync" | "fs.writevSync" | "fs.constants" | "fs.Dir" | "fs.Dirent" | "fs.FSWatcher" | "fs.StatWatcher" | "fs.ReadStream" | "fs.Stats()" | "new fs.Stats()" | "fs.Stats" | "fs.StatFs" | "fs.WriteStream" | "fs.common_objects" | "fs/promises" | "fs/promises.FileHandle" | "fs/promises.access" | "fs/promises.appendFile" | "fs/promises.chmod" | "fs/promises.chown" | "fs/promises.constants" | "fs/promises.copyFile" | "fs/promises.cp" | "fs/promises.glob" | "fs/promises.lchmod" | "fs/promises.lchown" | "fs/promises.link" | "fs/promises.lstat" | "fs/promises.lutimes" | "fs/promises.mkdir" | "fs/promises.mkdtemp" | "fs/promises.open" | "fs/promises.opendir" | "fs/promises.readFile" | "fs/promises.readdir" | "fs/promises.readlink" | "fs/promises.realpath" | "fs/promises.rename" | "fs/promises.rm" | "fs/promises.rmdir" | "fs/promises.stat" | "fs/promises.statfs" | "fs/promises.symlink" | "fs/promises.truncate" | "fs/promises.unlink" | "fs/promises.utimes" | "fs/promises.watch" | "fs/promises.writeFile" | "http2" | "http2.constants" | "http2.sensitiveHeaders" | "http2.createServer" | "http2.createSecureServer" | "http2.connect" | "http2.getDefaultSettings" | "http2.getPackedSettings" | "http2.getUnpackedSettings" | "http2.performServerHandshake" | "http2.Http2Session" | "http2.ServerHttp2Session" | "http2.ClientHttp2Session" | "http2.Http2Stream" | "http2.ClientHttp2Stream" | "http2.ServerHttp2Stream" | "http2.Http2Server" | "http2.Http2SecureServer" | "http2.Http2ServerRequest" | "http2.Http2ServerResponse" | "http" | "http.METHODS" | "http.STATUS_CODES" | "http.globalAgent" | "http.maxHeaderSize" | "http.createServer" | "http.get" | "http.request" | "http.validateHeaderName" | "http.validateHeaderValue" | "http.setMaxIdleHTTPParsers" | "http.Agent" | "http.ClientRequest" | "http.Server" | "http.ServerResponse" | "http.IncomingMessage" | "http.OutgoingMessage" | "http.WebSocket" | "_http_agent" | "_http_client" | "_http_common" | "_http_incoming" | "_http_outgoing" | "_http_server" | "https" | "https.globalAgent" | "https.createServer" | "https.get" | "https.request" | "https.Agent" | "https.Server" | "inspector" | "inspector.Session" | "inspector.Network.dataReceived" | "inspector.Network.dataSent" | "inspector.Network.loadingFailed" | "inspector.Network.loadingFinished" | "inspector.Network.requestWillBeSent" | "inspector.Network.responseReceived" | "inspector.NetworkResources.put" | "inspector.console" | "inspector.close" | "inspector.open" | "inspector.url" | "inspector.waitForDebugger" | "inspector/promises" | "inspector/promises.Session" | "inspector/promises.Network.dataReceived" | "inspector/promises.Network.dataSent" | "inspector/promises.Network.loadingFailed" | "inspector/promises.Network.loadingFinished" | "inspector/promises.Network.requestWillBeSent" | "inspector/promises.Network.responseReceived" | "inspector/promises.NetworkResources.put" | "inspector/promises.console" | "inspector/promises.close" | "inspector/promises.open" | "inspector/promises.url" | "inspector/promises.waitForDebugger" | "module.builtinModules" | "module.constants.compileCacheStatus" | "module.createRequire" | "module.createRequireFromPath" | "module.enableCompileCache" | "module.findPackageJSON" | "module.flushCompileCache" | "module.getCompileCacheDir" | "module.getSourceMapsSupport" | "module.isBuiltin" | "module.registerHooks" | "module.register" | "module.setSourceMapsSupport" | "module.stripTypeScriptTypes" | "module.syncBuiltinESMExports" | "module.findSourceMap" | "module.SourceMap" | "module.Module.builtinModules" | "module.Module.createRequire" | "module.Module.createRequireFromPath" | "module.Module.enableCompileCache" | "module.Module.findPackageJSON" | "module.Module.flushCompileCache" | "module.Module.getCompileCacheDir" | "module.Module.getSourceMapsSupport" | "module.Module.isBuiltin" | "module.Module.registerHooks" | "module.Module.register" | "module.Module.setSourceMapsSupport" | "module.Module.stripTypeScriptTypes" | "module.Module.syncBuiltinESMExports" | "module.Module.findSourceMap" | "module.Module.SourceMap" | "net" | "net.connect" | "net.createConnection" | "net.createServer" | "net.getDefaultAutoSelectFamily" | "net.setDefaultAutoSelectFamily" | "net.getDefaultAutoSelectFamilyAttemptTimeout" | "net.setDefaultAutoSelectFamilyAttemptTimeout" | "net.isIP" | "net.isIPv4" | "net.isIPv6" | "net.BlockList" | "net.BlockList.isBlockList" | "net.SocketAddress" | "net.SocketAddress.parse" | "net.Server" | "net.Socket" | "os" | "os.EOL" | "os.constants" | "os.constants.priority" | "os.devNull" | "os.availableParallelism" | "os.arch" | "os.cpus" | "os.endianness" | "os.freemem" | "os.getPriority" | "os.homedir" | "os.hostname" | "os.loadavg" | "os.machine" | "os.networkInterfaces" | "os.platform" | "os.release" | "os.setPriority" | "os.tmpdir" | "os.totalmem" | "os.type" | "os.uptime" | "os.userInfo" | "os.version" | "path" | "path.posix" | "path.posix.delimiter" | "path.posix.sep" | "path.posix.basename" | "path.posix.dirname" | "path.posix.extname" | "path.posix.format" | "path.posix.matchesGlob" | "path.posix.isAbsolute" | "path.posix.join" | "path.posix.normalize" | "path.posix.parse" | "path.posix.relative" | "path.posix.resolve" | "path.posix.toNamespacedPath" | "path.win32" | "path.win32.delimiter" | "path.win32.sep" | "path.win32.basename" | "path.win32.dirname" | "path.win32.extname" | "path.win32.format" | "path.win32.matchesGlob" | "path.win32.isAbsolute" | "path.win32.join" | "path.win32.normalize" | "path.win32.parse" | "path.win32.relative" | "path.win32.resolve" | "path.win32.toNamespacedPath" | "path.delimiter" | "path.sep" | "path.basename" | "path.dirname" | "path.extname" | "path.format" | "path.matchesGlob" | "path.isAbsolute" | "path.join" | "path.normalize" | "path.parse" | "path.relative" | "path.resolve" | "path.toNamespacedPath" | "path/posix" | "path/posix.delimiter" | "path/posix.sep" | "path/posix.basename" | "path/posix.dirname" | "path/posix.extname" | "path/posix.format" | "path/posix.matchesGlob" | "path/posix.isAbsolute" | "path/posix.join" | "path/posix.normalize" | "path/posix.parse" | "path/posix.relative" | "path/posix.resolve" | "path/posix.toNamespacedPath" | "path/win32" | "path/win32.delimiter" | "path/win32.sep" | "path/win32.basename" | "path/win32.dirname" | "path/win32.extname" | "path/win32.format" | "path/win32.matchesGlob" | "path/win32.isAbsolute" | "path/win32.join" | "path/win32.normalize" | "path/win32.parse" | "path/win32.relative" | "path/win32.resolve" | "path/win32.toNamespacedPath" | "perf_hooks" | "perf_hooks.performance" | "perf_hooks.performance.clearMarks" | "perf_hooks.performance.clearMeasures" | "perf_hooks.performance.clearResourceTimings" | "perf_hooks.performance.eventLoopUtilization" | "perf_hooks.performance.getEntries" | "perf_hooks.performance.getEntriesByName" | "perf_hooks.performance.getEntriesByType" | "perf_hooks.performance.mark" | "perf_hooks.performance.markResourceTiming" | "perf_hooks.performance.measure" | "perf_hooks.performance.nodeTiming" | "perf_hooks.performance.nodeTiming.bootstrapComplete" | "perf_hooks.performance.nodeTiming.environment" | "perf_hooks.performance.nodeTiming.idleTime" | "perf_hooks.performance.nodeTiming.loopExit" | "perf_hooks.performance.nodeTiming.loopStart" | "perf_hooks.performance.nodeTiming.nodeStart" | "perf_hooks.performance.nodeTiming.uvMetricsInfo" | "perf_hooks.performance.nodeTiming.v8Start" | "perf_hooks.performance.now" | "perf_hooks.performance.onresourcetimingbufferfull" | "perf_hooks.performance.setResourceTimingBufferSize" | "perf_hooks.performance.timeOrigin" | "perf_hooks.performance.timerify" | "perf_hooks.performance.toJSON" | "perf_hooks.createHistogram" | "perf_hooks.monitorEventLoopDelay" | "perf_hooks.PerformanceEntry" | "perf_hooks.PerformanceMark" | "perf_hooks.PerformanceMeasure" | "perf_hooks.PerformanceNodeEntry" | "perf_hooks.PerformanceNodeTiming" | "perf_hooks.PerformanceResourceTiming" | "perf_hooks.PerformanceObserver" | "perf_hooks.PerformanceObserverEntryList" | "perf_hooks.Histogram" | "perf_hooks.IntervalHistogram" | "perf_hooks.RecordableHistogram" | "punycode" | "punycode.ucs2" | "punycode.version" | "punycode.decode" | "punycode.encode" | "punycode.toASCII" | "punycode.toUnicode" | "querystring" | "querystring.decode" | "querystring.encode" | "querystring.escape" | "querystring.parse" | "querystring.stringify" | "querystring.unescape" | "readline" | "readline.promises" | "readline.promises.createInterface" | "readline.promises.Interface" | "readline.promises.Readline" | "readline.clearLine" | "readline.clearScreenDown" | "readline.createInterface" | "readline.cursorTo" | "readline.moveCursor" | "readline.Interface" | "readline.emitKeypressEvents" | "readline.InterfaceConstructor" | "readline/promises" | "readline/promises.createInterface" | "readline/promises.Interface" | "readline/promises.Readline" | "repl" | "repl.start" | "repl.writer" | "repl.REPLServer()" | "repl.REPLServer" | "repl.REPL_MODE_MAGIC" | "repl.REPL_MODE_SLOPPY" | "repl.REPL_MODE_STRICT" | "repl.Recoverable()" | "repl.Recoverable" | "repl.builtinModules" | "sea" | "sea.isSea" | "sea.getAsset" | "sea.getAssetAsBlob" | "sea.getRawAsset" | "sea.sea.isSea" | "sea.sea.getAsset" | "sea.sea.getAssetAsBlob" | "sea.sea.getRawAsset" | "stream" | "stream.promises" | "stream.promises.pipeline" | "stream.promises.finished" | "stream.finished" | "stream.pipeline" | "stream.compose" | "stream.duplexPair" | "stream.Readable" | "stream.Readable.from" | "stream.Readable.isDisturbed" | "stream.Readable.fromWeb" | "stream.Readable.toWeb" | "stream.Writable" | "stream.Writable.fromWeb" | "stream.Writable.toWeb" | "stream.Duplex" | "stream.Duplex.from" | "stream.Duplex.fromWeb" | "stream.Duplex.toWeb" | "stream.Transform" | "stream.isErrored" | "stream.isReadable" | "stream.addAbortSignal" | "stream.getDefaultHighWaterMark" | "stream.setDefaultHighWaterMark" | "stream/promises.pipeline" | "stream/promises.finished" | "stream/web" | "stream/web.ReadableStream" | "stream/web.ReadableStream.from" | "stream/web.ReadableStreamDefaultReader" | "stream/web.ReadableStreamBYOBReader" | "stream/web.ReadableStreamDefaultController" | "stream/web.ReadableByteStreamController" | "stream/web.ReadableStreamBYOBRequest" | "stream/web.WritableStream" | "stream/web.WritableStreamDefaultWriter" | "stream/web.WritableStreamDefaultController" | "stream/web.TransformStream" | "stream/web.TransformStreamDefaultController" | "stream/web.ByteLengthQueuingStrategy" | "stream/web.CountQueuingStrategy" | "stream/web.TextEncoderStream" | "stream/web.TextDecoderStream" | "stream/web.CompressionStream" | "stream/web.DecompressionStream" | "stream/consumers" | "stream/consumers.arrayBuffer" | "stream/consumers.blob" | "stream/consumers.buffer" | "stream/consumers.json" | "stream/consumers.text" | "string_decoder" | "string_decoder.StringDecoder" | "sqlite" | "sqlite.constants" | "sqlite.constants.SQLITE_CHANGESET_OMIT" | "sqlite.constants.SQLITE_CHANGESET_REPLACE" | "sqlite.constants.SQLITE_CHANGESET_ABORT" | "sqlite.backup" | "sqlite.DatabaseSync" | "sqlite.StatementSync" | "sqlite.SQLITE_CHANGESET_OMIT" | "sqlite.SQLITE_CHANGESET_REPLACE" | "sqlite.SQLITE_CHANGESET_ABORT" | "test" | "test.after" | "test.afterEach" | "test.assert" | "test.assert.register" | "test.before" | "test.beforeEach" | "test.describe" | "test.describe.only" | "test.describe.skip" | "test.describe.todo" | "test.it" | "test.it.only" | "test.it.skip" | "test.it.todo" | "test.mock" | "test.mock.fn" | "test.mock.getter" | "test.mock.method" | "test.mock.module" | "test.mock.reset" | "test.mock.restoreAll" | "test.mock.setter" | "test.mock.timers" | "test.mock.timers.enable" | "test.mock.timers.reset" | "test.mock.timers.tick" | "test.only" | "test.run" | "test.snapshot" | "test.snapshot.setDefaultSnapshotSerializers" | "test.snapshot.setResolveSnapshotPath" | "test.skip" | "test.suite" | "test.test" | "test.test.only" | "test.test.skip" | "test.test.todo" | "test.todo" | "timers" | "timers.Immediate" | "timers.Timeout" | "timers.setImmediate" | "timers.clearImmediate" | "timers.setInterval" | "timers.clearInterval" | "timers.setTimeout" | "timers.clearTimeout" | "timers.promises" | "timers.promises.setTimeout" | "timers.promises.setImmediate" | "timers.promises.setInterval" | "timers.promises.scheduler.wait" | "timers.promises.scheduler.yield" | "timers/promises" | "timers/promises.setTimeout" | "timers/promises.setImmediate" | "timers/promises.setInterval" | "timers/promises.scheduler.wait" | "timers/promises.scheduler.yield" | "tls" | "tls.checkServerIdentity" | "tls.connect" | "tls.createSecureContext" | "tls.createSecurePair" | "tls.createServer" | "tls.CryptoStream" | "tls.DEFAULT_CIPHERS" | "tls.DEFAULT_ECDH_CURVE" | "tls.DEFAULT_MAX_VERSION" | "tls.DEFAULT_MIN_VERSION" | "tls.getCACertificates" | "tls.getCiphers" | "tls.rootCertificates" | "tls.SecureContext" | "tls.SecurePair" | "tls.Server" | "tls.setDefaultCACertificates" | "tls.TLSSocket" | "trace_events" | "trace_events.createTracing" | "trace_events.getEnabledCategories" | "tty" | "tty.isatty" | "tty.ReadStream" | "tty.WriteStream" | "url" | "url.domainToASCII" | "url.domainToUnicode" | "url.fileURLToPath" | "url.format" | "url.pathToFileURL" | "url.urlToHttpOptions" | "url.URL" | "url.URL.canParse" | "url.URL.createObjectURL" | "url.URL.revokeObjectURL" | "url.URLPattern" | "url.URLSearchParams" | "url.Url" | "util.promisify" | "util.promisify.custom" | "util.callbackify" | "util.debuglog" | "util.debug" | "util.deprecate" | "util.diff" | "util.format" | "util.formatWithOptions" | "util.getCallSite" | "util.getCallSites" | "util.getSystemErrorName" | "util.getSystemErrorMap" | "util.getSystemErrorMessage" | "util.inherits" | "util.inspect" | "util.inspect.custom" | "util.inspect.defaultOptions" | "util.inspect.replDefaults" | "util.isDeepStrictEqual" | "util.parseArgs" | "util.parseEnv" | "util.setTraceSigInt" | "util.stripVTControlCharacters" | "util.styleText" | "util.toUSVString" | "util.transferableAbortController" | "util.transferableAbortSignal" | "util.aborted" | "util.MIMEType" | "util.MIMEParams" | "util.TextDecoder" | "util.TextEncoder" | "util.types" | "util.types.isExternal" | "util.types.isDate" | "util.types.isArgumentsObject" | "util.types.isBigIntObject" | "util.types.isBooleanObject" | "util.types.isNumberObject" | "util.types.isStringObject" | "util.types.isSymbolObject" | "util.types.isNativeError" | "util.types.isRegExp" | "util.types.isAsyncFunction" | "util.types.isGeneratorFunction" | "util.types.isGeneratorObject" | "util.types.isPromise" | "util.types.isMap" | "util.types.isSet" | "util.types.isMapIterator" | "util.types.isSetIterator" | "util.types.isWeakMap" | "util.types.isWeakSet" | "util.types.isArrayBuffer" | "util.types.isDataView" | "util.types.isSharedArrayBuffer" | "util.types.isProxy" | "util.types.isModuleNamespaceObject" | "util.types.isAnyArrayBuffer" | "util.types.isBoxedPrimitive" | "util.types.isArrayBufferView" | "util.types.isTypedArray" | "util.types.isUint8Array" | "util.types.isUint8ClampedArray" | "util.types.isUint16Array" | "util.types.isUint32Array" | "util.types.isInt8Array" | "util.types.isInt16Array" | "util.types.isInt32Array" | "util.types.isFloat16Array" | "util.types.isFloat32Array" | "util.types.isFloat64Array" | "util.types.isBigInt64Array" | "util.types.isBigUint64Array" | "util.types.isKeyObject" | "util.types.isCryptoKey" | "util.types.isWebAssemblyCompiledModule" | "util._extend" | "util.isArray" | "util.isBoolean" | "util.isBuffer" | "util.isDate" | "util.isError" | "util.isFunction" | "util.isNull" | "util.isNullOrUndefined" | "util.isNumber" | "util.isObject" | "util.isPrimitive" | "util.isRegExp" | "util.isString" | "util.isSymbol" | "util.isUndefined" | "util.log" | "util" | "util/types" | "util/types.isExternal" | "util/types.isDate" | "util/types.isArgumentsObject" | "util/types.isBigIntObject" | "util/types.isBooleanObject" | "util/types.isNumberObject" | "util/types.isStringObject" | "util/types.isSymbolObject" | "util/types.isNativeError" | "util/types.isRegExp" | "util/types.isAsyncFunction" | "util/types.isGeneratorFunction" | "util/types.isGeneratorObject" | "util/types.isPromise" | "util/types.isMap" | "util/types.isSet" | "util/types.isMapIterator" | "util/types.isSetIterator" | "util/types.isWeakMap" | "util/types.isWeakSet" | "util/types.isArrayBuffer" | "util/types.isDataView" | "util/types.isSharedArrayBuffer" | "util/types.isProxy" | "util/types.isModuleNamespaceObject" | "util/types.isAnyArrayBuffer" | "util/types.isBoxedPrimitive" | "util/types.isArrayBufferView" | "util/types.isTypedArray" | "util/types.isUint8Array" | "util/types.isUint8ClampedArray" | "util/types.isUint16Array" | "util/types.isUint32Array" | "util/types.isInt8Array" | "util/types.isInt16Array" | "util/types.isInt32Array" | "util/types.isFloat16Array" | "util/types.isFloat32Array" | "util/types.isFloat64Array" | "util/types.isBigInt64Array" | "util/types.isBigUint64Array" | "util/types.isKeyObject" | "util/types.isCryptoKey" | "util/types.isWebAssemblyCompiledModule" | "v8" | "v8.serialize" | "v8.deserialize" | "v8.Serializer" | "v8.Deserializer" | "v8.DefaultSerializer" | "v8.DefaultDeserializer" | "v8.promiseHooks" | "v8.promiseHooks.onInit" | "v8.promiseHooks.onSettled" | "v8.promiseHooks.onBefore" | "v8.promiseHooks.onAfter" | "v8.promiseHooks.createHook" | "v8.startupSnapshot" | "v8.startupSnapshot.addSerializeCallback" | "v8.startupSnapshot.addDeserializeCallback" | "v8.startupSnapshot.setDeserializeMainFunction" | "v8.startupSnapshot.isBuildingSnapshot" | "v8.cachedDataVersionTag" | "v8.getHeapCodeStatistics" | "v8.getHeapSnapshot" | "v8.getHeapSpaceStatistics" | "v8.getHeapStatistics" | "v8.isStringOneByteRepresentation" | "v8.queryObjects" | "v8.setFlagsFromString" | "v8.stopCoverage" | "v8.takeCoverage" | "v8.writeHeapSnapshot" | "v8.setHeapSnapshotNearHeapLimit" | "v8.GCProfiler" | "vm.constants" | "vm.compileFunction" | "vm.createContext" | "vm.isContext" | "vm.measureMemory" | "vm.runInContext" | "vm.runInNewContext" | "vm.runInThisContext" | "vm.Script" | "vm.Module" | "vm.SourceTextModule" | "vm.SyntheticModule" | "vm" | "wasi.WASI" | "wasi" | "worker_threads" | "worker_threads.parentPort" | "worker_threads.resourceLimits" | "worker_threads.SHARE_ENV" | "worker_threads.threadId" | "worker_threads.workerData" | "worker_threads.getEnvironmentData" | "worker_threads.getHeapStatistics" | "worker_threads.markAsUncloneable" | "worker_threads.markAsUntransferable" | "worker_threads.isInternalThread" | "worker_threads.isMainThread" | "worker_threads.isMarkedAsUntransferable" | "worker_threads.moveMessagePortToContext" | "worker_threads.postMessageToThread" | "worker_threads.receiveMessageOnPort" | "worker_threads.setEnvironmentData" | "worker_threads.BroadcastChannel" | "worker_threads.MessageChannel" | "worker_threads.MessagePort" | "worker_threads.Worker" | "zlib.brotliCompress" | "zlib.brotliCompressSync" | "zlib.brotliDecompress" | "zlib.brotliDecompressSync" | "zlib.constants" | "zlib.constants.ZSTD_e_continue" | "zlib.constants.ZSTD_e_flush" | "zlib.constants.ZSTD_e_end" | "zlib.constants.ZSTD_fast" | "zlib.constants.ZSTD_dfast" | "zlib.constants.ZSTD_greedy" | "zlib.constants.ZSTD_lazy" | "zlib.constants.ZSTD_lazy2" | "zlib.constants.ZSTD_btlazy2" | "zlib.constants.ZSTD_btopt" | "zlib.constants.ZSTD_btultra" | "zlib.constants.ZSTD_btultra2" | "zlib.constants.ZSTD_c_compressionLevel" | "zlib.constants.ZSTD_c_windowLog" | "zlib.constants.ZSTD_c_hashLog" | "zlib.constants.ZSTD_c_chainLog" | "zlib.constants.ZSTD_c_searchLog" | "zlib.constants.ZSTD_c_minMatch" | "zlib.constants.ZSTD_c_targetLength" | "zlib.constants.ZSTD_c_strategy" | "zlib.constants.ZSTD_c_enableLongDistanceMatching" | "zlib.constants.ZSTD_c_ldmHashLog" | "zlib.constants.ZSTD_c_ldmMinMatch" | "zlib.constants.ZSTD_c_ldmBucketSizeLog" | "zlib.constants.ZSTD_c_ldmHashRateLog" | "zlib.constants.ZSTD_c_contentSizeFlag" | "zlib.constants.ZSTD_c_checksumFlag" | "zlib.constants.ZSTD_c_dictIDFlag" | "zlib.constants.ZSTD_c_nbWorkers" | "zlib.constants.ZSTD_c_jobSize" | "zlib.constants.ZSTD_c_overlapLog" | "zlib.constants.ZSTD_d_windowLogMax" | "zlib.constants.ZSTD_CLEVEL_DEFAULT" | "zlib.constants.ZSTD_error_no_error" | "zlib.constants.ZSTD_error_GENERIC" | "zlib.constants.ZSTD_error_prefix_unknown" | "zlib.constants.ZSTD_error_version_unsupported" | "zlib.constants.ZSTD_error_frameParameter_unsupported" | "zlib.constants.ZSTD_error_frameParameter_windowTooLarge" | "zlib.constants.ZSTD_error_corruption_detected" | "zlib.constants.ZSTD_error_checksum_wrong" | "zlib.constants.ZSTD_error_literals_headerWrong" | "zlib.constants.ZSTD_error_dictionary_corrupted" | "zlib.constants.ZSTD_error_dictionary_wrong" | "zlib.constants.ZSTD_error_dictionaryCreation_failed" | "zlib.constants.ZSTD_error_parameter_unsupported" | "zlib.constants.ZSTD_error_parameter_combination_unsupported" | "zlib.constants.ZSTD_error_parameter_outOfBound" | "zlib.constants.ZSTD_error_tableLog_tooLarge" | "zlib.constants.ZSTD_error_maxSymbolValue_tooLarge" | "zlib.constants.ZSTD_error_maxSymbolValue_tooSmall" | "zlib.constants.ZSTD_error_stabilityCondition_notRespected" | "zlib.constants.ZSTD_error_stage_wrong" | "zlib.constants.ZSTD_error_init_missing" | "zlib.constants.ZSTD_error_memory_allocation" | "zlib.constants.ZSTD_error_workSpace_tooSmall" | "zlib.constants.ZSTD_error_dstSize_tooSmall" | "zlib.constants.ZSTD_error_srcSize_wrong" | "zlib.constants.ZSTD_error_dstBuffer_null" | "zlib.constants.ZSTD_error_noForwardProgress_destFull" | "zlib.constants.ZSTD_error_noForwardProgress_inputEmpty" | "zlib.crc32" | "zlib.createBrotliCompress" | "zlib.createBrotliDecompress" | "zlib.createDeflate" | "zlib.createDeflateRaw" | "zlib.createGunzip" | "zlib.createGzip" | "zlib.createInflate" | "zlib.createInflateRaw" | "zlib.createUnzip" | "zlib.createZstdCompress" | "zlib.createZstdDecompress" | "zlib.deflate" | "zlib.deflateRaw" | "zlib.deflateRawSync" | "zlib.deflateSync" | "zlib.gunzip" | "zlib.gunzipSync" | "zlib.gzip" | "zlib.gzipSync" | "zlib.inflate" | "zlib.inflateRaw" | "zlib.inflateRawSync" | "zlib.inflateSync" | "zlib.unzip" | "zlib.unzipSync" | "zlib.zstdCompress" | "zlib.zstdCompressSync" | "zlib.zstdDecompress" | "zlib.zstdDecompressSync" | "zlib.BrotliCompress()" | "zlib.BrotliCompress" | "zlib.BrotliDecompress()" | "zlib.BrotliDecompress" | "zlib.Deflate()" | "zlib.Deflate" | "zlib.DeflateRaw()" | "zlib.DeflateRaw" | "zlib.Gunzip()" | "zlib.Gunzip" | "zlib.Gzip()" | "zlib.Gzip" | "zlib.Inflate()" | "zlib.Inflate" | "zlib.InflateRaw()" | "zlib.InflateRaw" | "zlib.Unzip()" | "zlib.Unzip" | "zlib.ZstdCompress" | "zlib.ZstdDecompress" | "zlib.ZstdOptions" | "zlib" | "import.meta.resolve" | "import.meta.dirname" | "import.meta.filename" | "import.meta.main")[];
|
|
11221
12379
|
}]; // ----- n/prefer-global/buffer -----
|
|
11222
12380
|
type NPreferGlobalBuffer = [] | [("always" | "never")]; // ----- n/prefer-global/console -----
|
|
11223
|
-
type NPreferGlobalConsole = [] | [("always" | "never")]; // ----- n/prefer-global/
|
|
12381
|
+
type NPreferGlobalConsole = [] | [("always" | "never")]; // ----- n/prefer-global/crypto -----
|
|
12382
|
+
type NPreferGlobalCrypto = [] | [("always" | "never")]; // ----- n/prefer-global/process -----
|
|
11224
12383
|
type NPreferGlobalProcess = [] | [("always" | "never")]; // ----- n/prefer-global/text-decoder -----
|
|
11225
12384
|
type NPreferGlobalTextDecoder = [] | [("always" | "never")]; // ----- n/prefer-global/text-encoder -----
|
|
11226
|
-
type NPreferGlobalTextEncoder = [] | [("always" | "never")]; // ----- n/prefer-global/
|
|
12385
|
+
type NPreferGlobalTextEncoder = [] | [("always" | "never")]; // ----- n/prefer-global/timers -----
|
|
12386
|
+
type NPreferGlobalTimers = [] | [("always" | "never")]; // ----- n/prefer-global/url -----
|
|
11227
12387
|
type NPreferGlobalUrl = [] | [("always" | "never")]; // ----- n/prefer-global/url-search-params -----
|
|
11228
12388
|
type NPreferGlobalUrlSearchParams = [] | [("always" | "never")]; // ----- n/prefer-node-protocol -----
|
|
11229
12389
|
type NPreferNodeProtocol = [] | [{
|
|
@@ -11694,7 +12854,7 @@ type PerfectionistSortArrayIncludes = {
|
|
|
11694
12854
|
pattern: string;
|
|
11695
12855
|
flags?: string;
|
|
11696
12856
|
} | string));
|
|
11697
|
-
selector?:
|
|
12857
|
+
selector?: "literal";
|
|
11698
12858
|
}, ...({
|
|
11699
12859
|
elementNamePattern?: (({
|
|
11700
12860
|
pattern: string;
|
|
@@ -11703,7 +12863,7 @@ type PerfectionistSortArrayIncludes = {
|
|
|
11703
12863
|
pattern: string;
|
|
11704
12864
|
flags?: string;
|
|
11705
12865
|
} | string));
|
|
11706
|
-
selector?:
|
|
12866
|
+
selector?: "literal";
|
|
11707
12867
|
})[]];
|
|
11708
12868
|
} | {
|
|
11709
12869
|
fallbackSort?: {
|
|
@@ -11721,7 +12881,7 @@ type PerfectionistSortArrayIncludes = {
|
|
|
11721
12881
|
pattern: string;
|
|
11722
12882
|
flags?: string;
|
|
11723
12883
|
} | string));
|
|
11724
|
-
selector?:
|
|
12884
|
+
selector?: "literal";
|
|
11725
12885
|
})[];
|
|
11726
12886
|
newlinesInside?: (("ignore" | number) | "newlinesBetween");
|
|
11727
12887
|
groups?: (string | [string, ...(string)[]] | {
|
|
@@ -11746,6 +12906,7 @@ type PerfectionistSortArrayIncludes = {
|
|
|
11746
12906
|
pattern: string;
|
|
11747
12907
|
flags?: string;
|
|
11748
12908
|
} | string));
|
|
12909
|
+
matchesAstSelector?: string;
|
|
11749
12910
|
};
|
|
11750
12911
|
partitionByComment?: (boolean | (({
|
|
11751
12912
|
pattern: string;
|
|
@@ -11771,7 +12932,7 @@ type PerfectionistSortArrayIncludes = {
|
|
|
11771
12932
|
});
|
|
11772
12933
|
partitionByNewLine?: boolean;
|
|
11773
12934
|
}[]; // ----- perfectionist/sort-classes -----
|
|
11774
|
-
type PerfectionistSortClasses =
|
|
12935
|
+
type PerfectionistSortClasses = {
|
|
11775
12936
|
fallbackSort?: {
|
|
11776
12937
|
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
11777
12938
|
order?: ("asc" | "desc");
|
|
@@ -11888,6 +13049,17 @@ type PerfectionistSortClasses = [] | [{
|
|
|
11888
13049
|
order?: ("asc" | "desc");
|
|
11889
13050
|
})[];
|
|
11890
13051
|
newlinesBetween?: ("ignore" | number);
|
|
13052
|
+
useConfigurationIf?: {
|
|
13053
|
+
allNamesMatchPattern?: (({
|
|
13054
|
+
pattern: string;
|
|
13055
|
+
flags?: string;
|
|
13056
|
+
} | string)[] | ({
|
|
13057
|
+
pattern: string;
|
|
13058
|
+
flags?: string;
|
|
13059
|
+
} | string));
|
|
13060
|
+
matchesAstSelector?: string;
|
|
13061
|
+
};
|
|
13062
|
+
useExperimentalDependencyDetection?: boolean;
|
|
11891
13063
|
ignoreCallbackDependenciesPatterns?: (({
|
|
11892
13064
|
pattern: string;
|
|
11893
13065
|
flags?: string;
|
|
@@ -11918,7 +13090,7 @@ type PerfectionistSortClasses = [] | [{
|
|
|
11918
13090
|
} | string)));
|
|
11919
13091
|
});
|
|
11920
13092
|
partitionByNewLine?: boolean;
|
|
11921
|
-
}]; // ----- perfectionist/sort-decorators -----
|
|
13093
|
+
}[]; // ----- perfectionist/sort-decorators -----
|
|
11922
13094
|
type PerfectionistSortDecorators = {
|
|
11923
13095
|
fallbackSort?: {
|
|
11924
13096
|
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
@@ -12017,7 +13189,7 @@ type PerfectionistSortDecorators = {
|
|
|
12017
13189
|
});
|
|
12018
13190
|
partitionByNewLine?: boolean;
|
|
12019
13191
|
}[]; // ----- perfectionist/sort-enums -----
|
|
12020
|
-
type PerfectionistSortEnums =
|
|
13192
|
+
type PerfectionistSortEnums = {
|
|
12021
13193
|
fallbackSort?: {
|
|
12022
13194
|
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
12023
13195
|
order?: ("asc" | "desc");
|
|
@@ -12107,6 +13279,16 @@ type PerfectionistSortEnums = [] | [{
|
|
|
12107
13279
|
order?: ("asc" | "desc");
|
|
12108
13280
|
})[];
|
|
12109
13281
|
newlinesBetween?: ("ignore" | number);
|
|
13282
|
+
useConfigurationIf?: {
|
|
13283
|
+
allNamesMatchPattern?: (({
|
|
13284
|
+
pattern: string;
|
|
13285
|
+
flags?: string;
|
|
13286
|
+
} | string)[] | ({
|
|
13287
|
+
pattern: string;
|
|
13288
|
+
flags?: string;
|
|
13289
|
+
} | string));
|
|
13290
|
+
matchesAstSelector?: string;
|
|
13291
|
+
};
|
|
12110
13292
|
sortByValue?: ("always" | "ifNumericEnum" | "never");
|
|
12111
13293
|
useExperimentalDependencyDetection?: boolean;
|
|
12112
13294
|
partitionByComment?: (boolean | (({
|
|
@@ -12132,7 +13314,7 @@ type PerfectionistSortEnums = [] | [{
|
|
|
12132
13314
|
} | string)));
|
|
12133
13315
|
});
|
|
12134
13316
|
partitionByNewLine?: boolean;
|
|
12135
|
-
}]; // ----- perfectionist/sort-export-attributes -----
|
|
13317
|
+
}[]; // ----- perfectionist/sort-export-attributes -----
|
|
12136
13318
|
type PerfectionistSortExportAttributes = {
|
|
12137
13319
|
fallbackSort?: {
|
|
12138
13320
|
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
@@ -12202,6 +13384,16 @@ type PerfectionistSortExportAttributes = {
|
|
|
12202
13384
|
order?: ("asc" | "desc");
|
|
12203
13385
|
})[];
|
|
12204
13386
|
newlinesBetween?: ("ignore" | number);
|
|
13387
|
+
useConfigurationIf?: {
|
|
13388
|
+
allNamesMatchPattern?: (({
|
|
13389
|
+
pattern: string;
|
|
13390
|
+
flags?: string;
|
|
13391
|
+
} | string)[] | ({
|
|
13392
|
+
pattern: string;
|
|
13393
|
+
flags?: string;
|
|
13394
|
+
} | string));
|
|
13395
|
+
matchesAstSelector?: string;
|
|
13396
|
+
};
|
|
12205
13397
|
partitionByComment?: (boolean | (({
|
|
12206
13398
|
pattern: string;
|
|
12207
13399
|
flags?: string;
|
|
@@ -12394,6 +13586,16 @@ type PerfectionistSortHeritageClauses = {
|
|
|
12394
13586
|
order?: ("asc" | "desc");
|
|
12395
13587
|
})[];
|
|
12396
13588
|
newlinesBetween?: ("ignore" | number);
|
|
13589
|
+
useConfigurationIf?: {
|
|
13590
|
+
allNamesMatchPattern?: (({
|
|
13591
|
+
pattern: string;
|
|
13592
|
+
flags?: string;
|
|
13593
|
+
} | string)[] | ({
|
|
13594
|
+
pattern: string;
|
|
13595
|
+
flags?: string;
|
|
13596
|
+
} | string));
|
|
13597
|
+
matchesAstSelector?: string;
|
|
13598
|
+
};
|
|
12397
13599
|
partitionByNewLine?: boolean;
|
|
12398
13600
|
partitionByComment?: (boolean | (({
|
|
12399
13601
|
pattern: string;
|
|
@@ -12487,6 +13689,16 @@ type PerfectionistSortImportAttributes = {
|
|
|
12487
13689
|
order?: ("asc" | "desc");
|
|
12488
13690
|
})[];
|
|
12489
13691
|
newlinesBetween?: ("ignore" | number);
|
|
13692
|
+
useConfigurationIf?: {
|
|
13693
|
+
allNamesMatchPattern?: (({
|
|
13694
|
+
pattern: string;
|
|
13695
|
+
flags?: string;
|
|
13696
|
+
} | string)[] | ({
|
|
13697
|
+
pattern: string;
|
|
13698
|
+
flags?: string;
|
|
13699
|
+
} | string));
|
|
13700
|
+
matchesAstSelector?: string;
|
|
13701
|
+
};
|
|
12490
13702
|
partitionByComment?: (boolean | (({
|
|
12491
13703
|
pattern: string;
|
|
12492
13704
|
flags?: string;
|
|
@@ -12755,6 +13967,7 @@ type PerfectionistSortInterfaces = {
|
|
|
12755
13967
|
pattern: string;
|
|
12756
13968
|
flags?: string;
|
|
12757
13969
|
} | string));
|
|
13970
|
+
matchesAstSelector?: string;
|
|
12758
13971
|
declarationMatchesPattern?: (({
|
|
12759
13972
|
scope?: ("shallow" | "deep");
|
|
12760
13973
|
pattern: string;
|
|
@@ -12861,6 +14074,16 @@ type PerfectionistSortIntersectionTypes = {
|
|
|
12861
14074
|
order?: ("asc" | "desc");
|
|
12862
14075
|
})[];
|
|
12863
14076
|
newlinesBetween?: ("ignore" | number);
|
|
14077
|
+
useConfigurationIf?: {
|
|
14078
|
+
allNamesMatchPattern?: (({
|
|
14079
|
+
pattern: string;
|
|
14080
|
+
flags?: string;
|
|
14081
|
+
} | string)[] | ({
|
|
14082
|
+
pattern: string;
|
|
14083
|
+
flags?: string;
|
|
14084
|
+
} | string));
|
|
14085
|
+
matchesAstSelector?: string;
|
|
14086
|
+
};
|
|
12864
14087
|
partitionByComment?: (boolean | (({
|
|
12865
14088
|
pattern: string;
|
|
12866
14089
|
flags?: string;
|
|
@@ -12989,6 +14212,7 @@ type PerfectionistSortJsxProps = {
|
|
|
12989
14212
|
pattern: string;
|
|
12990
14213
|
flags?: string;
|
|
12991
14214
|
} | string));
|
|
14215
|
+
matchesAstSelector?: string;
|
|
12992
14216
|
tagMatchesPattern?: (({
|
|
12993
14217
|
pattern: string;
|
|
12994
14218
|
flags?: string;
|
|
@@ -13076,6 +14300,7 @@ type PerfectionistSortMaps = {
|
|
|
13076
14300
|
pattern: string;
|
|
13077
14301
|
flags?: string;
|
|
13078
14302
|
} | string));
|
|
14303
|
+
matchesAstSelector?: string;
|
|
13079
14304
|
};
|
|
13080
14305
|
partitionByComment?: (boolean | (({
|
|
13081
14306
|
pattern: string;
|
|
@@ -13297,6 +14522,16 @@ type PerfectionistSortNamedExports = {
|
|
|
13297
14522
|
order?: ("asc" | "desc");
|
|
13298
14523
|
})[];
|
|
13299
14524
|
newlinesBetween?: ("ignore" | number);
|
|
14525
|
+
useConfigurationIf?: {
|
|
14526
|
+
allNamesMatchPattern?: (({
|
|
14527
|
+
pattern: string;
|
|
14528
|
+
flags?: string;
|
|
14529
|
+
} | string)[] | ({
|
|
14530
|
+
pattern: string;
|
|
14531
|
+
flags?: string;
|
|
14532
|
+
} | string));
|
|
14533
|
+
matchesAstSelector?: string;
|
|
14534
|
+
};
|
|
13300
14535
|
ignoreAlias?: boolean;
|
|
13301
14536
|
partitionByComment?: (boolean | (({
|
|
13302
14537
|
pattern: string;
|
|
@@ -13397,6 +14632,16 @@ type PerfectionistSortNamedImports = {
|
|
|
13397
14632
|
order?: ("asc" | "desc");
|
|
13398
14633
|
})[];
|
|
13399
14634
|
newlinesBetween?: ("ignore" | number);
|
|
14635
|
+
useConfigurationIf?: {
|
|
14636
|
+
allNamesMatchPattern?: (({
|
|
14637
|
+
pattern: string;
|
|
14638
|
+
flags?: string;
|
|
14639
|
+
} | string)[] | ({
|
|
14640
|
+
pattern: string;
|
|
14641
|
+
flags?: string;
|
|
14642
|
+
} | string));
|
|
14643
|
+
matchesAstSelector?: string;
|
|
14644
|
+
};
|
|
13400
14645
|
ignoreAlias?: boolean;
|
|
13401
14646
|
partitionByComment?: (boolean | (({
|
|
13402
14647
|
pattern: string;
|
|
@@ -13544,6 +14789,7 @@ type PerfectionistSortObjectTypes = {
|
|
|
13544
14789
|
pattern: string;
|
|
13545
14790
|
flags?: string;
|
|
13546
14791
|
} | string));
|
|
14792
|
+
matchesAstSelector?: string;
|
|
13547
14793
|
declarationMatchesPattern?: (({
|
|
13548
14794
|
scope?: ("shallow" | "deep");
|
|
13549
14795
|
pattern: string;
|
|
@@ -13710,6 +14956,7 @@ type PerfectionistSortObjects = {
|
|
|
13710
14956
|
pattern: string;
|
|
13711
14957
|
flags?: string;
|
|
13712
14958
|
} | string));
|
|
14959
|
+
matchesAstSelector?: string;
|
|
13713
14960
|
declarationMatchesPattern?: (({
|
|
13714
14961
|
scope?: ("shallow" | "deep");
|
|
13715
14962
|
pattern: string;
|
|
@@ -13720,6 +14967,7 @@ type PerfectionistSortObjects = {
|
|
|
13720
14967
|
flags?: string;
|
|
13721
14968
|
} | string));
|
|
13722
14969
|
};
|
|
14970
|
+
partitionByComputedKey?: boolean;
|
|
13723
14971
|
styledComponents?: boolean;
|
|
13724
14972
|
useExperimentalDependencyDetection?: boolean;
|
|
13725
14973
|
partitionByComment?: (boolean | (({
|
|
@@ -13774,7 +15022,7 @@ type PerfectionistSortSets = {
|
|
|
13774
15022
|
pattern: string;
|
|
13775
15023
|
flags?: string;
|
|
13776
15024
|
} | string));
|
|
13777
|
-
selector?:
|
|
15025
|
+
selector?: "literal";
|
|
13778
15026
|
}, ...({
|
|
13779
15027
|
elementNamePattern?: (({
|
|
13780
15028
|
pattern: string;
|
|
@@ -13783,7 +15031,7 @@ type PerfectionistSortSets = {
|
|
|
13783
15031
|
pattern: string;
|
|
13784
15032
|
flags?: string;
|
|
13785
15033
|
} | string));
|
|
13786
|
-
selector?:
|
|
15034
|
+
selector?: "literal";
|
|
13787
15035
|
})[]];
|
|
13788
15036
|
} | {
|
|
13789
15037
|
fallbackSort?: {
|
|
@@ -13801,7 +15049,7 @@ type PerfectionistSortSets = {
|
|
|
13801
15049
|
pattern: string;
|
|
13802
15050
|
flags?: string;
|
|
13803
15051
|
} | string));
|
|
13804
|
-
selector?:
|
|
15052
|
+
selector?: "literal";
|
|
13805
15053
|
})[];
|
|
13806
15054
|
newlinesInside?: (("ignore" | number) | "newlinesBetween");
|
|
13807
15055
|
groups?: (string | [string, ...(string)[]] | {
|
|
@@ -13826,6 +15074,7 @@ type PerfectionistSortSets = {
|
|
|
13826
15074
|
pattern: string;
|
|
13827
15075
|
flags?: string;
|
|
13828
15076
|
} | string));
|
|
15077
|
+
matchesAstSelector?: string;
|
|
13829
15078
|
};
|
|
13830
15079
|
partitionByComment?: (boolean | (({
|
|
13831
15080
|
pattern: string;
|
|
@@ -13935,6 +15184,16 @@ type PerfectionistSortUnionTypes = {
|
|
|
13935
15184
|
order?: ("asc" | "desc");
|
|
13936
15185
|
})[];
|
|
13937
15186
|
newlinesBetween?: ("ignore" | number);
|
|
15187
|
+
useConfigurationIf?: {
|
|
15188
|
+
allNamesMatchPattern?: (({
|
|
15189
|
+
pattern: string;
|
|
15190
|
+
flags?: string;
|
|
15191
|
+
} | string)[] | ({
|
|
15192
|
+
pattern: string;
|
|
15193
|
+
flags?: string;
|
|
15194
|
+
} | string));
|
|
15195
|
+
matchesAstSelector?: string;
|
|
15196
|
+
};
|
|
13938
15197
|
partitionByComment?: (boolean | (({
|
|
13939
15198
|
pattern: string;
|
|
13940
15199
|
flags?: string;
|
|
@@ -13959,7 +15218,7 @@ type PerfectionistSortUnionTypes = {
|
|
|
13959
15218
|
});
|
|
13960
15219
|
partitionByNewLine?: boolean;
|
|
13961
15220
|
}[]; // ----- perfectionist/sort-variable-declarations -----
|
|
13962
|
-
type PerfectionistSortVariableDeclarations =
|
|
15221
|
+
type PerfectionistSortVariableDeclarations = {
|
|
13963
15222
|
fallbackSort?: {
|
|
13964
15223
|
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
13965
15224
|
order?: ("asc" | "desc");
|
|
@@ -14031,6 +15290,16 @@ type PerfectionistSortVariableDeclarations = [] | [{
|
|
|
14031
15290
|
order?: ("asc" | "desc");
|
|
14032
15291
|
})[];
|
|
14033
15292
|
newlinesBetween?: ("ignore" | number);
|
|
15293
|
+
useConfigurationIf?: {
|
|
15294
|
+
allNamesMatchPattern?: (({
|
|
15295
|
+
pattern: string;
|
|
15296
|
+
flags?: string;
|
|
15297
|
+
} | string)[] | ({
|
|
15298
|
+
pattern: string;
|
|
15299
|
+
flags?: string;
|
|
15300
|
+
} | string));
|
|
15301
|
+
matchesAstSelector?: string;
|
|
15302
|
+
};
|
|
14034
15303
|
useExperimentalDependencyDetection?: boolean;
|
|
14035
15304
|
partitionByComment?: (boolean | (({
|
|
14036
15305
|
pattern: string;
|
|
@@ -14055,6 +15324,80 @@ type PerfectionistSortVariableDeclarations = [] | [{
|
|
|
14055
15324
|
} | string)));
|
|
14056
15325
|
});
|
|
14057
15326
|
partitionByNewLine?: boolean;
|
|
15327
|
+
}[]; // ----- playwright/expect-expect -----
|
|
15328
|
+
type PlaywrightExpectExpect = [] | [{
|
|
15329
|
+
assertFunctionNames?: [] | [string];
|
|
15330
|
+
assertFunctionPatterns?: [] | [string];
|
|
15331
|
+
}]; // ----- playwright/max-expects -----
|
|
15332
|
+
type PlaywrightMaxExpects = [] | [{
|
|
15333
|
+
max?: number;
|
|
15334
|
+
}]; // ----- playwright/max-nested-describe -----
|
|
15335
|
+
type PlaywrightMaxNestedDescribe = [] | [{
|
|
15336
|
+
max?: number;
|
|
15337
|
+
}]; // ----- playwright/missing-playwright-await -----
|
|
15338
|
+
type PlaywrightMissingPlaywrightAwait = [] | [{
|
|
15339
|
+
customMatchers?: string[];
|
|
15340
|
+
includePageLocatorMethods?: boolean;
|
|
15341
|
+
}]; // ----- playwright/no-hooks -----
|
|
15342
|
+
type PlaywrightNoHooks = [] | [{
|
|
15343
|
+
allow?: unknown[];
|
|
15344
|
+
}]; // ----- playwright/no-raw-locators -----
|
|
15345
|
+
type PlaywrightNoRawLocators = [] | [{
|
|
15346
|
+
allowed?: string[];
|
|
15347
|
+
}]; // ----- playwright/no-restricted-locators -----
|
|
15348
|
+
type PlaywrightNoRestrictedLocators = [] | [(string | {
|
|
15349
|
+
message?: string;
|
|
15350
|
+
type: string;
|
|
15351
|
+
})[]]; // ----- playwright/no-restricted-matchers -----
|
|
15352
|
+
type PlaywrightNoRestrictedMatchers = [] | [{
|
|
15353
|
+
[k: string]: (string | null) | undefined;
|
|
15354
|
+
}]; // ----- playwright/no-restricted-roles -----
|
|
15355
|
+
type PlaywrightNoRestrictedRoles = [] | [(string | {
|
|
15356
|
+
message?: string;
|
|
15357
|
+
role: string;
|
|
15358
|
+
})[]]; // ----- playwright/no-skipped-test -----
|
|
15359
|
+
type PlaywrightNoSkippedTest = [] | [{
|
|
15360
|
+
allowConditional?: boolean;
|
|
15361
|
+
disallowFixme?: boolean;
|
|
15362
|
+
}]; // ----- playwright/no-slowed-test -----
|
|
15363
|
+
type PlaywrightNoSlowedTest = [] | [{
|
|
15364
|
+
allowConditional?: boolean;
|
|
15365
|
+
}]; // ----- playwright/prefer-lowercase-title -----
|
|
15366
|
+
type PlaywrightPreferLowercaseTitle = [] | [{
|
|
15367
|
+
allowedPrefixes?: string[];
|
|
15368
|
+
ignore?: ("test.describe" | "test")[];
|
|
15369
|
+
ignoreTopLevelDescribe?: boolean;
|
|
15370
|
+
}]; // ----- playwright/prefer-native-locators -----
|
|
15371
|
+
type PlaywrightPreferNativeLocators = [] | [{
|
|
15372
|
+
testIdAttribute?: string;
|
|
15373
|
+
}]; // ----- playwright/require-hook -----
|
|
15374
|
+
type PlaywrightRequireHook = [] | [{
|
|
15375
|
+
allowedFunctionCalls?: string[];
|
|
15376
|
+
}]; // ----- playwright/require-top-level-describe -----
|
|
15377
|
+
type PlaywrightRequireTopLevelDescribe = [] | [{
|
|
15378
|
+
maxTopLevelDescribes?: number;
|
|
15379
|
+
}]; // ----- playwright/valid-expect -----
|
|
15380
|
+
type PlaywrightValidExpect = [] | [{
|
|
15381
|
+
maxArgs?: number;
|
|
15382
|
+
minArgs?: number;
|
|
15383
|
+
}]; // ----- playwright/valid-test-tags -----
|
|
15384
|
+
type PlaywrightValidTestTags = [] | [{
|
|
15385
|
+
allowedTags?: (string | {
|
|
15386
|
+
source?: string;
|
|
15387
|
+
})[];
|
|
15388
|
+
disallowedTags?: (string | {
|
|
15389
|
+
source?: string;
|
|
15390
|
+
})[];
|
|
15391
|
+
}]; // ----- playwright/valid-title -----
|
|
15392
|
+
type PlaywrightValidTitle = [] | [{
|
|
15393
|
+
disallowedWords?: string[];
|
|
15394
|
+
ignoreSpaces?: boolean;
|
|
15395
|
+
ignoreTypeOfDescribeName?: boolean;
|
|
15396
|
+
ignoreTypeOfStepName?: boolean;
|
|
15397
|
+
ignoreTypeOfTestName?: boolean;
|
|
15398
|
+
[k: string]: (string | [string] | [string, string] | {
|
|
15399
|
+
[k: string]: (string | [string] | [string, string]) | undefined;
|
|
15400
|
+
});
|
|
14058
15401
|
}]; // ----- prefer-arrow-callback -----
|
|
14059
15402
|
type PreferArrowCallback = [] | [{
|
|
14060
15403
|
allowNamedFunctions?: boolean;
|
|
@@ -14368,10 +15711,19 @@ type TomlCommaStyle = [] | [("first" | "last")] | [("first" | "last"), {
|
|
|
14368
15711
|
type TomlIndent = [] | [("tab" | number)] | [("tab" | number), {
|
|
14369
15712
|
subTables?: number;
|
|
14370
15713
|
keyValuePairs?: number;
|
|
14371
|
-
}]; // ----- toml/inline-table-curly-
|
|
15714
|
+
}]; // ----- toml/inline-table-curly-newline -----
|
|
15715
|
+
type TomlInlineTableCurlyNewline = [] | [(("always" | "never") | {
|
|
15716
|
+
multiline?: boolean;
|
|
15717
|
+
minProperties?: number;
|
|
15718
|
+
consistent?: boolean;
|
|
15719
|
+
})]; // ----- toml/inline-table-curly-spacing -----
|
|
14372
15720
|
type TomlInlineTableCurlySpacing = [] | [("always" | "never")] | [("always" | "never"), {
|
|
14373
15721
|
arraysInObjects?: boolean;
|
|
14374
15722
|
objectsInObjects?: boolean;
|
|
15723
|
+
emptyObjects?: ("ignore" | "always" | "never");
|
|
15724
|
+
}]; // ----- toml/inline-table-key-value-newline -----
|
|
15725
|
+
type TomlInlineTableKeyValueNewline = [] | [{
|
|
15726
|
+
allowAllPropertiesOnSameLine?: boolean;
|
|
14375
15727
|
}]; // ----- toml/key-spacing -----
|
|
14376
15728
|
type TomlKeySpacing = [] | [({
|
|
14377
15729
|
align?: (("equal" | "value") | {
|
|
@@ -14467,6 +15819,7 @@ type UnicornEscapeCase = [] | [("uppercase" | "lowercase")]; // ----- unicorn/ex
|
|
|
14467
15819
|
type UnicornExpiringTodoComments = [] | [{
|
|
14468
15820
|
terms?: string[];
|
|
14469
15821
|
ignore?: unknown[];
|
|
15822
|
+
ignoreDates?: boolean;
|
|
14470
15823
|
ignoreDatesOnPullRequests?: boolean;
|
|
14471
15824
|
allowWarningComments?: boolean;
|
|
14472
15825
|
date?: string;
|
|
@@ -14502,7 +15855,15 @@ interface _UnicornImportStyle_ModuleStyles {
|
|
|
14502
15855
|
}
|
|
14503
15856
|
interface _UnicornImportStyle_BooleanObject {
|
|
14504
15857
|
[k: string]: boolean | undefined;
|
|
14505
|
-
} // ----- unicorn/
|
|
15858
|
+
} // ----- unicorn/isolated-functions -----
|
|
15859
|
+
type UnicornIsolatedFunctions = [] | [{
|
|
15860
|
+
overrideGlobals?: {
|
|
15861
|
+
[k: string]: (boolean | ("readonly" | "writable" | "writeable" | "off")) | undefined;
|
|
15862
|
+
};
|
|
15863
|
+
functions?: string[];
|
|
15864
|
+
selectors?: string[];
|
|
15865
|
+
comments?: string[];
|
|
15866
|
+
}]; // ----- unicorn/no-array-reduce -----
|
|
14506
15867
|
type UnicornNoArrayReduce = [] | [{
|
|
14507
15868
|
allowSimpleOperations?: boolean;
|
|
14508
15869
|
}]; // ----- unicorn/no-array-reverse -----
|
|
@@ -14615,6 +15976,9 @@ type _UnicornPreventAbbreviationsReplacements = (false | _UnicornPreventAbbrevia
|
|
|
14615
15976
|
interface _UnicornPreventAbbreviations_Abbreviations {
|
|
14616
15977
|
[k: string]: _UnicornPreventAbbreviationsReplacements | undefined;
|
|
14617
15978
|
}
|
|
15979
|
+
interface _UnicornPreventAbbreviations_BooleanObject {
|
|
15980
|
+
[k: string]: boolean | undefined;
|
|
15981
|
+
}
|
|
14618
15982
|
interface _UnicornPreventAbbreviations_BooleanObject {
|
|
14619
15983
|
[k: string]: boolean | undefined;
|
|
14620
15984
|
} // ----- unicorn/relative-url-style -----
|
|
@@ -14753,6 +16117,9 @@ type VitestRequireMockTypeParameters = [] | [{
|
|
|
14753
16117
|
}]; // ----- vitest/require-top-level-describe -----
|
|
14754
16118
|
type VitestRequireTopLevelDescribe = [] | [{
|
|
14755
16119
|
maxNumberOfTopLevelDescribes?: number;
|
|
16120
|
+
}]; // ----- vitest/unbound-method -----
|
|
16121
|
+
type VitestUnboundMethod = [] | [{
|
|
16122
|
+
ignoreStatic?: boolean;
|
|
14756
16123
|
}]; // ----- vitest/valid-expect -----
|
|
14757
16124
|
type VitestValidExpect = [] | [{
|
|
14758
16125
|
alwaysAwait?: boolean;
|
|
@@ -14797,6 +16164,7 @@ type YamlFlowMappingCurlyNewline = [] | [(("always" | "never") | {
|
|
|
14797
16164
|
type YamlFlowMappingCurlySpacing = [] | [("always" | "never")] | [("always" | "never"), {
|
|
14798
16165
|
arraysInObjects?: boolean;
|
|
14799
16166
|
objectsInObjects?: boolean;
|
|
16167
|
+
emptyObjects?: ("ignore" | "always" | "never");
|
|
14800
16168
|
}]; // ----- yaml/flow-sequence-bracket-newline -----
|
|
14801
16169
|
type YamlFlowSequenceBracketNewline = [] | [(("always" | "never" | "consistent") | {
|
|
14802
16170
|
multiline?: boolean;
|
|
@@ -14967,141 +16335,7 @@ type Yoda = [] | [("always" | "never")] | [("always" | "never"), {
|
|
|
14967
16335
|
exceptRange?: boolean;
|
|
14968
16336
|
onlyEquality?: boolean;
|
|
14969
16337
|
}]; // Names of all the configs
|
|
14970
|
-
type ConfigNames = 'fabdeh/angular/rules' | 'fabdeh/angular-template/rules' | 'fabdeh/comments/rules' | 'fabdeh/
|
|
14971
|
-
//#endregion
|
|
14972
|
-
//#region src/vendor/prettier-types.d.ts
|
|
14973
|
-
/**
|
|
14974
|
-
* Vendor types from Prettier so we don't rely on the dependency.
|
|
14975
|
-
*/
|
|
14976
|
-
type VendoredPrettierOptions = Partial<VendoredPrettierOptionsRequired>;
|
|
14977
|
-
interface VendoredPrettierOptionsRequired {
|
|
14978
|
-
/**
|
|
14979
|
-
* Specify the line length that the printer will wrap on.
|
|
14980
|
-
*
|
|
14981
|
-
* @default 120
|
|
14982
|
-
*/
|
|
14983
|
-
printWidth: number;
|
|
14984
|
-
/**
|
|
14985
|
-
* Specify the number of spaces per indentation-level.
|
|
14986
|
-
*/
|
|
14987
|
-
tabWidth: number;
|
|
14988
|
-
/**
|
|
14989
|
-
* Indent lines with tabs instead of spaces
|
|
14990
|
-
*/
|
|
14991
|
-
useTabs?: boolean;
|
|
14992
|
-
/**
|
|
14993
|
-
* Print semicolons at the ends of statements.
|
|
14994
|
-
*/
|
|
14995
|
-
semi: boolean;
|
|
14996
|
-
/**
|
|
14997
|
-
* Use single quotes instead of double quotes.
|
|
14998
|
-
*/
|
|
14999
|
-
singleQuote: boolean;
|
|
15000
|
-
/**
|
|
15001
|
-
* Use single quotes in JSX.
|
|
15002
|
-
*/
|
|
15003
|
-
jsxSingleQuote: boolean;
|
|
15004
|
-
/**
|
|
15005
|
-
* Print trailing commas wherever possible.
|
|
15006
|
-
*/
|
|
15007
|
-
trailingComma: "all" | "es5" | "none";
|
|
15008
|
-
/**
|
|
15009
|
-
* Print spaces between brackets in object literals.
|
|
15010
|
-
*/
|
|
15011
|
-
bracketSpacing: boolean;
|
|
15012
|
-
/**
|
|
15013
|
-
* Put the `>` of a multi-line HTML (HTML, XML, JSX, Vue, Angular) element at the end of the last line instead of being
|
|
15014
|
-
* alone on the next line (does not apply to self closing elements).
|
|
15015
|
-
*/
|
|
15016
|
-
bracketSameLine: boolean;
|
|
15017
|
-
/**
|
|
15018
|
-
* Put the `>` of a multi-line JSX element at the end of the last line instead of being alone on the next line.
|
|
15019
|
-
*
|
|
15020
|
-
* @deprecated use bracketSameLine instead
|
|
15021
|
-
*/
|
|
15022
|
-
jsxBracketSameLine: boolean;
|
|
15023
|
-
/**
|
|
15024
|
-
* Format only a segment of a file.
|
|
15025
|
-
*/
|
|
15026
|
-
rangeStart: number;
|
|
15027
|
-
/**
|
|
15028
|
-
* Format only a segment of a file.
|
|
15029
|
-
*
|
|
15030
|
-
* @default Number.POSITIVE_INFINITY
|
|
15031
|
-
*/
|
|
15032
|
-
rangeEnd: number;
|
|
15033
|
-
/**
|
|
15034
|
-
* By default, Prettier will wrap markdown text as-is since some services use a linebreak-sensitive renderer.
|
|
15035
|
-
* In some cases you may want to rely on editor/viewer soft wrapping instead, so this option allows you to opt out.
|
|
15036
|
-
*
|
|
15037
|
-
* @default "preserve"
|
|
15038
|
-
*/
|
|
15039
|
-
proseWrap: "always" | "never" | "preserve";
|
|
15040
|
-
/**
|
|
15041
|
-
* Include parentheses around a sole arrow function parameter.
|
|
15042
|
-
*
|
|
15043
|
-
* @default "always"
|
|
15044
|
-
*/
|
|
15045
|
-
arrowParens: "always" | "avoid";
|
|
15046
|
-
/**
|
|
15047
|
-
* Provide ability to support new languages to prettier.
|
|
15048
|
-
*/
|
|
15049
|
-
plugins: (any | string)[];
|
|
15050
|
-
/**
|
|
15051
|
-
* How to handle whitespaces in HTML.
|
|
15052
|
-
*
|
|
15053
|
-
* @default "css"
|
|
15054
|
-
*/
|
|
15055
|
-
htmlWhitespaceSensitivity: "css" | "ignore" | "strict";
|
|
15056
|
-
/**
|
|
15057
|
-
* Which end of line characters to apply.
|
|
15058
|
-
*
|
|
15059
|
-
* @default "lf"
|
|
15060
|
-
*/
|
|
15061
|
-
endOfLine: "auto" | "cr" | "crlf" | "lf";
|
|
15062
|
-
/**
|
|
15063
|
-
* Change when properties in objects are quoted.
|
|
15064
|
-
*
|
|
15065
|
-
* @default "as-needed"
|
|
15066
|
-
*/
|
|
15067
|
-
quoteProps: "as-needed" | "consistent" | "preserve";
|
|
15068
|
-
/**
|
|
15069
|
-
* Whether or not to indent the code inside <script> and <style> tags in Vue files.
|
|
15070
|
-
*
|
|
15071
|
-
* @default false
|
|
15072
|
-
*/
|
|
15073
|
-
vueIndentScriptAndStyle: boolean;
|
|
15074
|
-
/**
|
|
15075
|
-
* Enforce single attribute per line in HTML, XML, Vue and JSX.
|
|
15076
|
-
*
|
|
15077
|
-
* @default false
|
|
15078
|
-
*/
|
|
15079
|
-
singleAttributePerLine: boolean;
|
|
15080
|
-
/**
|
|
15081
|
-
* How to handle whitespaces in XML.
|
|
15082
|
-
*
|
|
15083
|
-
* @default "preserve"
|
|
15084
|
-
*/
|
|
15085
|
-
xmlQuoteAttributes: "double" | "preserve" | "single";
|
|
15086
|
-
/**
|
|
15087
|
-
* Whether to put a space inside the brackets of self-closing XML elements.
|
|
15088
|
-
*
|
|
15089
|
-
* @default true
|
|
15090
|
-
*/
|
|
15091
|
-
xmlSelfClosingSpace: boolean;
|
|
15092
|
-
/**
|
|
15093
|
-
* Whether to sort attributes by key in XML elements.
|
|
15094
|
-
*
|
|
15095
|
-
* @default false
|
|
15096
|
-
*/
|
|
15097
|
-
xmlSortAttributesByKey: boolean;
|
|
15098
|
-
/**
|
|
15099
|
-
* How to handle whitespaces in XML.
|
|
15100
|
-
*
|
|
15101
|
-
* @default "ignore"
|
|
15102
|
-
*/
|
|
15103
|
-
xmlWhitespaceSensitivity: "ignore" | "preserve" | "strict";
|
|
15104
|
-
}
|
|
16338
|
+
type ConfigNames = 'fabdeh/angular/rules' | 'fabdeh/angular-template/rules' | 'fabdeh/comments/rules' | 'fabdeh/imports/rules' | 'fabdeh/imports/ts-disables' | 'fabdeh/javascript/setup' | 'fabdeh/javascript/rules' | 'fabdeh/jsdoc/rules' | 'fabdeh/jsdoc/ts-only/rules' | 'fabdeh/jsonc/setup' | 'fabdeh/jsonc/rules' | 'fabdeh/markdown/setup' | 'fabdeh/markdown/processor' | 'fabdeh/markdown/parser' | 'fabdeh/markdown/disables' | 'fabdeh/markdown/rules' | 'fabdeh/ngrx-store/rules' | 'fabdeh/ngrx-effects/rules' | 'fabdeh/ngrx-signals/rules' | 'fabdeh/ngrx-operators/rules' | 'fabdeh/node/rules' | 'fabdeh/perfectionist/rules' | 'fabdeh/playwright/rules' | 'fabdeh/regexp/rules' | 'fabdeh/sort/package-json' | 'fabdeh/stylistic/rules' | '@fabdeh/tailwindcss/rules' | 'fabdeh/toml/setup' | 'fabdeh/toml/rules' | 'fabdeh/app/typescript/setup' | 'fabdeh/app/typescript/rules' | 'fabdeh/unicorn/rules' | 'fabdeh/vitest/rules' | 'fabdeh/yaml/setup' | 'fabdeh/yaml/rules';
|
|
15105
16339
|
//#endregion
|
|
15106
16340
|
//#region src/shared/constants.d.ts
|
|
15107
16341
|
declare const OPTIONS_SYMBOL: unique symbol;
|
|
@@ -15341,6 +16575,12 @@ interface NgrxOptions {
|
|
|
15341
16575
|
* Options for configuring testing utilities.
|
|
15342
16576
|
*/
|
|
15343
16577
|
interface UnitTestingOptions {
|
|
16578
|
+
/**
|
|
16579
|
+
* Indicates whether to enable the `vitest` globals.
|
|
16580
|
+
*
|
|
16581
|
+
* @default true
|
|
16582
|
+
*/
|
|
16583
|
+
enableVitestGlobals?: boolean;
|
|
15344
16584
|
/**
|
|
15345
16585
|
* Indicates whether to include Jest DOM matchers.
|
|
15346
16586
|
*
|
|
@@ -15354,17 +16594,13 @@ interface UnitTestingOptions {
|
|
|
15354
16594
|
*/
|
|
15355
16595
|
useTestingLibrary?: boolean;
|
|
15356
16596
|
}
|
|
15357
|
-
interface
|
|
15358
|
-
|
|
15359
|
-
|
|
15360
|
-
|
|
15361
|
-
|
|
15362
|
-
|
|
15363
|
-
|
|
15364
|
-
options?: VendoredPrettierOptions;
|
|
15365
|
-
slidev?: boolean | {
|
|
15366
|
-
files?: string[];
|
|
15367
|
-
};
|
|
16597
|
+
interface PlaywrightOptions {
|
|
16598
|
+
/**
|
|
16599
|
+
* Location of the e2e test folder.
|
|
16600
|
+
*
|
|
16601
|
+
* @default 'e2e'
|
|
16602
|
+
*/
|
|
16603
|
+
e2eFolderPath?: string;
|
|
15368
16604
|
}
|
|
15369
16605
|
interface RegExpOptions {
|
|
15370
16606
|
/**
|
|
@@ -15457,7 +16693,7 @@ interface IgnoresOptions {
|
|
|
15457
16693
|
*
|
|
15458
16694
|
* @see defineWorkspaceConfig function
|
|
15459
16695
|
*/
|
|
15460
|
-
interface
|
|
16696
|
+
interface DefineWorkspaceConfigOptions extends IgnoresOptions {
|
|
15461
16697
|
/**
|
|
15462
16698
|
* Enable gitignore support.
|
|
15463
16699
|
*
|
|
@@ -15518,23 +16754,10 @@ interface CreateWorkspaceConfigOptions extends IgnoresOptions {
|
|
|
15518
16754
|
/**
|
|
15519
16755
|
* Enable linting for **code snippets** in Markdown.
|
|
15520
16756
|
*
|
|
15521
|
-
* For formatting Markdown content, enable also `formatters.markdown`.
|
|
15522
|
-
*
|
|
15523
16757
|
* @default true
|
|
15524
16758
|
*/
|
|
15525
16759
|
markdown?: OverridesOptions | boolean;
|
|
15526
16760
|
/**
|
|
15527
|
-
* Use external formatters to format files.
|
|
15528
|
-
*
|
|
15529
|
-
* Requires installing:
|
|
15530
|
-
* - `eslint-plugin-format`
|
|
15531
|
-
*
|
|
15532
|
-
* When set to `true`, it will enable all formatters.
|
|
15533
|
-
*
|
|
15534
|
-
* @default false
|
|
15535
|
-
*/
|
|
15536
|
-
formatters?: FormattersOptions | boolean;
|
|
15537
|
-
/**
|
|
15538
16761
|
* Enable pnpm (workspace/catalogs) support.
|
|
15539
16762
|
*
|
|
15540
16763
|
* Currently, it's disabled by default, as it's still experimental.
|
|
@@ -15552,7 +16775,7 @@ interface CreateWorkspaceConfigOptions extends IgnoresOptions {
|
|
|
15552
16775
|
*
|
|
15553
16776
|
* @see defineProjectConfig function
|
|
15554
16777
|
*/
|
|
15555
|
-
interface
|
|
16778
|
+
interface DefineProjectConfigOptions extends IgnoresOptions, ProjectTypeOptions {
|
|
15556
16779
|
/**
|
|
15557
16780
|
* Enable or disable JSDoc rules.
|
|
15558
16781
|
*
|
|
@@ -15577,7 +16800,7 @@ interface CreateProjectConfigOptions extends IgnoresOptions, ProjectTypeOptions
|
|
|
15577
16800
|
*
|
|
15578
16801
|
* @default auto-detect based on dependencies.
|
|
15579
16802
|
*/
|
|
15580
|
-
vitest?: boolean | (OverridesOptions & UnitTestingOptions);
|
|
16803
|
+
vitest?: boolean | (FilesOptions & OverridesOptions & UnitTestingOptions);
|
|
15581
16804
|
/**
|
|
15582
16805
|
* Options for the TailwindCSS linting rules.
|
|
15583
16806
|
*
|
|
@@ -15590,18 +16813,26 @@ interface CreateProjectConfigOptions extends IgnoresOptions, ProjectTypeOptions
|
|
|
15590
16813
|
*/
|
|
15591
16814
|
typescript?: OverridesOptions & ProjectTypeScriptOptions;
|
|
15592
16815
|
}
|
|
16816
|
+
type DefinePlaywrightConfigOptions = FilesOptions & IgnoresOptions & OverridesOptions;
|
|
15593
16817
|
/**
|
|
15594
16818
|
* Options for creating an ESLint configuration.
|
|
15595
16819
|
* Combines workspace and project options for standalone usage.
|
|
15596
16820
|
*
|
|
15597
16821
|
* @see defineConfig function
|
|
15598
16822
|
*/
|
|
15599
|
-
type
|
|
16823
|
+
type DefineConfigOptions = DefineWorkspaceConfigOptions & Omit<DefineProjectConfigOptions, "ignores" | "typescript"> & {
|
|
16824
|
+
/**
|
|
16825
|
+
* Options for the Playwright linting rules
|
|
16826
|
+
*
|
|
16827
|
+
* @default auto-detect based on dependencies.
|
|
16828
|
+
*/
|
|
16829
|
+
playwright?: boolean | (FilesOptions & OverridesOptions & PlaywrightOptions);
|
|
16830
|
+
};
|
|
15600
16831
|
/**
|
|
15601
16832
|
* Return-type of the `defineWorkspaceConfig` function.
|
|
15602
16833
|
*/
|
|
15603
16834
|
type TypedConfigArrayWithOptions = TypedConfigArray & {
|
|
15604
|
-
[OPTIONS_SYMBOL]:
|
|
16835
|
+
[OPTIONS_SYMBOL]: DefineWorkspaceConfigOptions;
|
|
15605
16836
|
};
|
|
15606
16837
|
//#endregion
|
|
15607
16838
|
//#region src/configs/angular.d.ts
|
|
@@ -15629,17 +16860,6 @@ declare function angular(options?: AngularOptions): Promise<TypedConfigArray>;
|
|
|
15629
16860
|
*/
|
|
15630
16861
|
declare function comments(): TypedConfigArray;
|
|
15631
16862
|
//#endregion
|
|
15632
|
-
//#region src/configs/formatters.d.ts
|
|
15633
|
-
/**
|
|
15634
|
-
* Configures and returns an array of formatters based on the provided options.
|
|
15635
|
-
*
|
|
15636
|
-
* @param options - The options for configuring the formatters. If set to `true`, default options will be used.
|
|
15637
|
-
* @param stylistic - The stylistic options for the formatters.
|
|
15638
|
-
* @param hasAngularTemplateParser - Optional argument which indicates whether angular rules already registered the template parser or not.
|
|
15639
|
-
* @returns A promise that resolves to a `TypedConfigArray` containing the configured formatters.
|
|
15640
|
-
*/
|
|
15641
|
-
declare function formatters(options?: FormattersOptions | true, stylistic?: StylisticConfig, hasAngularTemplateParser?: boolean): Promise<TypedConfigArray>;
|
|
15642
|
-
//#endregion
|
|
15643
16863
|
//#region src/configs/ignore.d.ts
|
|
15644
16864
|
/**
|
|
15645
16865
|
* Generates a configuration array for ESLint with default and user-defined ignore patterns.
|
|
@@ -15778,6 +16998,26 @@ declare function node(): TypedConfigArray;
|
|
|
15778
16998
|
*/
|
|
15779
16999
|
declare function perfectionist(): TypedConfigArray;
|
|
15780
17000
|
//#endregion
|
|
17001
|
+
//#region src/configs/playwright.d.ts
|
|
17002
|
+
/**
|
|
17003
|
+
* Configures and returns an ESLint flat config for Playwright test files.
|
|
17004
|
+
*
|
|
17005
|
+
* @param [options] - Options used to customize the Playwright config.
|
|
17006
|
+
* @param [options.e2eFolderPath] - The path to the e2e folder to prepend to each `options.files` glob pattern (defaults to `e2e`).
|
|
17007
|
+
* @param [options.files] - File globs to target (defaults to `GLOB_TESTS`).
|
|
17008
|
+
* @param [options.overrides] - Custom ESLint rule overrides merged last.
|
|
17009
|
+
* @returns A promise that resolves to a single-entry ESLint config array.
|
|
17010
|
+
* @example
|
|
17011
|
+
* const config = await playwright({
|
|
17012
|
+
* e2eFolderPath: 'tests/e2e',
|
|
17013
|
+
* files: ['**\/*.test.ts'], // will become 'tests\/e2e\/**\/*.test.ts' because of the e2eFolderPath option
|
|
17014
|
+
* overrides: {
|
|
17015
|
+
* 'playwright/no-page-pause': 'off',
|
|
17016
|
+
* },
|
|
17017
|
+
* });
|
|
17018
|
+
*/
|
|
17019
|
+
declare function playwright(options?: FilesOptions & OverridesOptions & PlaywrightOptions): Promise<TypedConfigArray>;
|
|
17020
|
+
//#endregion
|
|
15781
17021
|
//#region src/configs/pnpm.d.ts
|
|
15782
17022
|
/**
|
|
15783
17023
|
* Generates an array containing configuration settings for PNPM workspace-specific rules and plugins.
|
|
@@ -15880,20 +17120,23 @@ declare function unicorn(options?: UnicornOptions): TypedConfigArray;
|
|
|
15880
17120
|
* Configures and returns an ESLint configuration array for Vitest.
|
|
15881
17121
|
*
|
|
15882
17122
|
* @param [options] - The options to customize the configuration.
|
|
17123
|
+
* @param [options.files] - File globs to target (defaults to `GLOB_VITEST`).
|
|
15883
17124
|
* @param [options.overrides] - Custom rule overrides.
|
|
15884
17125
|
* @param [options.useJestDom] - Whether to use the `@testing-library/jest-dom` plugin.
|
|
15885
17126
|
* @param [options.useTestingLibrary] - Whether to use the `@testing-library/angular` plugin.
|
|
17127
|
+
* @param [options.e2eFolderPath] - The path to the e2e folder to ignore (this is only used internally by the `defineConfig` function, not by the user).
|
|
15886
17128
|
* @returns A promise that resolves to the ESLint configuration array.
|
|
15887
17129
|
* @example
|
|
15888
17130
|
* const config = await vitest({
|
|
17131
|
+
* files: ['**\/*.spec.ts'],
|
|
15889
17132
|
* overrides: {
|
|
15890
|
-
* '
|
|
17133
|
+
* 'vitest/prefer-lowercase-title': 'warn',
|
|
15891
17134
|
* },
|
|
15892
17135
|
* useJestDom: true,
|
|
15893
17136
|
* useTestingLibrary: false,
|
|
15894
17137
|
* });
|
|
15895
17138
|
*/
|
|
15896
|
-
declare function vitest(options?: OverridesOptions & UnitTestingOptions): Promise<TypedConfigArray>;
|
|
17139
|
+
declare function vitest(options?: FilesOptions & OverridesOptions & PlaywrightOptions & UnitTestingOptions): Promise<TypedConfigArray>;
|
|
15897
17140
|
//#endregion
|
|
15898
17141
|
//#region src/configs/yaml.d.ts
|
|
15899
17142
|
/**
|
|
@@ -15926,7 +17169,7 @@ declare function yaml(options?: FilesOptions & OverridesOptions & StylisticOptio
|
|
|
15926
17169
|
* const config = await defineProjectConfig(baseConfig, { vitest: true, typescript: { parserOptions: { project: './tsconfig.json' } } });
|
|
15927
17170
|
* ```
|
|
15928
17171
|
*/
|
|
15929
|
-
declare function defineProjectConfig(baseConfig: Awaitable<TypedConfigArrayWithOptions>, options?:
|
|
17172
|
+
declare function defineProjectConfig(baseConfig: Awaitable<TypedConfigArrayWithOptions>, options?: DefineProjectConfigOptions, ...userConfigs: Awaitable<TypedConfigWithExtends | TypedConfigWithExtends[]>[]): Promise<TypedConfigArray>;
|
|
15930
17173
|
//#endregion
|
|
15931
17174
|
//#region src/factories/standard-config.d.ts
|
|
15932
17175
|
/**
|
|
@@ -15941,7 +17184,7 @@ declare function defineProjectConfig(baseConfig: Awaitable<TypedConfigArrayWithO
|
|
|
15941
17184
|
* const config = await defineConfig({ vitest: true, typescript: { parserOptions: { project: './tsconfig.json' } } });
|
|
15942
17185
|
* ```
|
|
15943
17186
|
*/
|
|
15944
|
-
declare function defineConfig(options?:
|
|
17187
|
+
declare function defineConfig(options?: DefineConfigOptions, ...userConfigs: Awaitable<TypedConfigWithExtends | TypedConfigWithExtends[]>[]): Promise<TypedConfigArray>;
|
|
15945
17188
|
//#endregion
|
|
15946
17189
|
//#region src/factories/workspace-config.d.ts
|
|
15947
17190
|
/**
|
|
@@ -15957,7 +17200,7 @@ declare function defineConfig(options?: CreateConfigOptions, ...userConfigs: Awa
|
|
|
15957
17200
|
* const config = await defineWorkspaceConfig({ vitest: true, typescript: { parserOptions: { project: './tsconfig.json' } } });
|
|
15958
17201
|
* ```
|
|
15959
17202
|
*/
|
|
15960
|
-
declare function defineWorkspaceConfig(options?:
|
|
17203
|
+
declare function defineWorkspaceConfig(options?: DefineWorkspaceConfigOptions, ...userConfigs: Awaitable<TypedConfigWithExtends | TypedConfigWithExtends[]>[]): Promise<TypedConfigArrayWithOptions>;
|
|
15961
17204
|
//#endregion
|
|
15962
17205
|
//#region src/shared/globs.d.ts
|
|
15963
17206
|
/**
|
|
@@ -15996,6 +17239,13 @@ declare function interopDefault<T>(m: Awaitable<T>): Promise<T extends {
|
|
|
15996
17239
|
default: infer U;
|
|
15997
17240
|
} ? U : T>;
|
|
15998
17241
|
/**
|
|
17242
|
+
* Checks whether the given path points to an existing directory.
|
|
17243
|
+
*
|
|
17244
|
+
* @param path - Filesystem path to validate.
|
|
17245
|
+
* @returns `true` when the path exists and is a directory; otherwise `false`.
|
|
17246
|
+
*/
|
|
17247
|
+
declare function isDirectory(path: PathLike): boolean;
|
|
17248
|
+
/**
|
|
15999
17249
|
* Retrieves the root directory of the workspace.
|
|
16000
17250
|
*
|
|
16001
17251
|
* This function determines the root directory of the workspace by checking for specific files
|
|
@@ -16039,10 +17289,59 @@ type ResolvedOptions<T> = T extends boolean ? never : NonNullable<T>;
|
|
|
16039
17289
|
/**
|
|
16040
17290
|
* Returns the object representation of the configuration or an empty object if it is a boolean.
|
|
16041
17291
|
*
|
|
16042
|
-
* @param options - The {@link
|
|
17292
|
+
* @param options - The {@link DefineConfigOptions} object to extract the sub-options from.
|
|
16043
17293
|
* @param key - The property name.
|
|
16044
17294
|
* @returns An object representing the required options.
|
|
16045
17295
|
*/
|
|
16046
|
-
declare function resolveSubOptions<K extends keyof
|
|
17296
|
+
declare function resolveSubOptions<K extends keyof DefineConfigOptions>(options: DefineConfigOptions, key: K): ResolvedOptions<DefineConfigOptions[K]>;
|
|
17297
|
+
/**
|
|
17298
|
+
* Replace Windows with posix style paths
|
|
17299
|
+
*
|
|
17300
|
+
* @param filePath - Path to convert
|
|
17301
|
+
* @returns Converted filepath
|
|
17302
|
+
*/
|
|
17303
|
+
declare function convertPathToPosix(filePath: string): string;
|
|
17304
|
+
interface PathToGlobPatternOptions {
|
|
17305
|
+
/**
|
|
17306
|
+
* An array of accepted extensions
|
|
17307
|
+
*/
|
|
17308
|
+
extensions?: string[];
|
|
17309
|
+
/**
|
|
17310
|
+
* cwd to use to resolve relative pathnames
|
|
17311
|
+
*/
|
|
17312
|
+
cwd?: string;
|
|
17313
|
+
}
|
|
17314
|
+
/**
|
|
17315
|
+
* Checks if a provided path is a directory and returns a glob string matching
|
|
17316
|
+
* all files under that directory if so, the path itself otherwise.
|
|
17317
|
+
*
|
|
17318
|
+
* Reason for this is that `glob` needs `/**` to collect all the files under a
|
|
17319
|
+
* directory where as our previous implementation without `glob` simply walked
|
|
17320
|
+
* a directory that is passed. So this is to maintain backwards compatibility.
|
|
17321
|
+
*
|
|
17322
|
+
* Also makes sure all path separators are POSIX style for `glob` compatibility.
|
|
17323
|
+
*
|
|
17324
|
+
* @param [options] - An options object
|
|
17325
|
+
* @param [options.extensions] - An array of accepted extensions
|
|
17326
|
+
* @param [options.cwd] - The cwd to use to resolve relative pathnames
|
|
17327
|
+
* @returns A function that takes a pathname and returns a glob that
|
|
17328
|
+
* matches all files with the provided extensions if
|
|
17329
|
+
* pathname is a directory.
|
|
17330
|
+
*/
|
|
17331
|
+
declare function pathToGlobPattern(options?: PathToGlobPatternOptions): (path: string) => string;
|
|
17332
|
+
/**
|
|
17333
|
+
* Finds the first valid Playwright test directory declared via `testDir` in any
|
|
17334
|
+
* `playwright.config.ts` file under the current workspace.
|
|
17335
|
+
*
|
|
17336
|
+
* The function:
|
|
17337
|
+
* - Locates Playwright config files, excluding `node_modules`.
|
|
17338
|
+
* - Reads each config as text.
|
|
17339
|
+
* - Extracts `testDir` with a regex.
|
|
17340
|
+
* - Resolves `testDir` relative to the config file location.
|
|
17341
|
+
* - Returns the first resolved path that exists as a directory.
|
|
17342
|
+
*
|
|
17343
|
+
* @returns Absolute path to the first existing Playwright test directory, or `undefined` if none is found.
|
|
17344
|
+
*/
|
|
17345
|
+
declare function getPlaywrightDirectory(): Promise<string | undefined>;
|
|
16047
17346
|
//#endregion
|
|
16048
|
-
export { AngularOptions, ArrayItemType, Awaitable, type ConfigNames,
|
|
17347
|
+
export { AngularOptions, ArrayItemType, Awaitable, type ConfigNames, DefineConfigOptions, DefinePlaywrightConfigOptions, DefineProjectConfigOptions, DefineWorkspaceConfigOptions, ExtractRuleOptionsType, FilesOptions, GLOB_HTML, GLOB_JS, GLOB_SRC, GLOB_TESTS, GLOB_TS, IgnoresOptions, InfiniteDepthConfigWithExtends, NamingConventionOptions, NgrxOperatorsOptions, NgrxOptions, OverridesOptions, PathToGlobPatternOptions, PlaywrightOptions, ProjectType, ProjectTypeOptions, ProjectTypeScriptOptions, RegExpOptions, ResolvedOptions, Rules, STYLISTIC_CONFIG_DEFAULT, StylisticConfig, StylisticOptions, TailwindCssOptions, TypeScriptOptions, TypedConfig, TypedConfigArray, TypedConfigArrayWithOptions, TypedConfigWithExtends, UnicornOptions, UnitTestingOptions, WorkspaceProjectType, angular, comments, convertPathToPosix, defineConfig, defineProjectConfig, defineWorkspaceConfig, ensurePackages, getPlaywrightDirectory, getTsConfigFileName, getWorkspaceRoot, ignores, imports, interopDefault, isDirectory, isPackageInScope, javascript, jsdoc, jsonc, markdown, ngrx, node, pathToGlobPattern, perfectionist, playwright, pnpm, regexp, resolveSubOptions, sortPackageJson, sortTsConfig, stylistic, tailwindcss, toml, typescript, unicorn, vitest, yaml };
|