@ntnyq/eslint-config 4.0.0-beta.2 → 4.0.0-beta.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +26 -9
- package/dist/index.js +641 -534
- package/package.json +18 -13
package/dist/index.d.ts
CHANGED
|
@@ -5255,6 +5255,11 @@ interface RuleOptions {
|
|
|
5255
5255
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/require-local-test-context-for-concurrent-snapshots.md
|
|
5256
5256
|
*/
|
|
5257
5257
|
'vitest/require-local-test-context-for-concurrent-snapshots'?: Linter.RuleEntry<[]>
|
|
5258
|
+
/**
|
|
5259
|
+
* enforce using type parameters with vitest mock functions
|
|
5260
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/require-mock-type-parameters.md
|
|
5261
|
+
*/
|
|
5262
|
+
'vitest/require-mock-type-parameters'?: Linter.RuleEntry<VitestRequireMockTypeParameters>
|
|
5258
5263
|
/**
|
|
5259
5264
|
* require toThrow() to be called with an error message
|
|
5260
5265
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/require-to-throw-message.md
|
|
@@ -7514,7 +7519,7 @@ type TypescriptEslintNoUnnecessaryBooleanLiteralCompare = []|[{
|
|
|
7514
7519
|
// ----- @typescript-eslint/no-unnecessary-condition -----
|
|
7515
7520
|
type TypescriptEslintNoUnnecessaryCondition = []|[{
|
|
7516
7521
|
|
|
7517
|
-
allowConstantLoopConditions?: boolean
|
|
7522
|
+
allowConstantLoopConditions?: (boolean | ("always" | "never" | "only-allowed-literals"))
|
|
7518
7523
|
|
|
7519
7524
|
allowRuleToRunWithoutStrictNullChecksIKnowWhatIAmDoing?: boolean
|
|
7520
7525
|
|
|
@@ -12724,6 +12729,10 @@ type VitestPreferSnapshotHint = []|[("always" | "multi")]
|
|
|
12724
12729
|
type VitestRequireHook = []|[{
|
|
12725
12730
|
allowedFunctionCalls?: string[]
|
|
12726
12731
|
}]
|
|
12732
|
+
// ----- vitest/require-mock-type-parameters -----
|
|
12733
|
+
type VitestRequireMockTypeParameters = []|[{
|
|
12734
|
+
checkImportFunctions?: boolean
|
|
12735
|
+
}]
|
|
12727
12736
|
// ----- vitest/require-top-level-describe -----
|
|
12728
12737
|
type VitestRequireTopLevelDescribe = []|[{
|
|
12729
12738
|
maxNumberOfTopLevelDescribes?: number
|
|
@@ -14141,7 +14150,7 @@ type Yoda = []|[("always" | "never")]|[("always" | "never"), {
|
|
|
14141
14150
|
onlyEquality?: boolean
|
|
14142
14151
|
}]
|
|
14143
14152
|
// Names of all the configs
|
|
14144
|
-
type ConfigNames = 'ntnyq/antfu' | 'ntnyq/command' | 'ntnyq/eslint-comments' | 'ntnyq/depend' | 'ntnyq/depend/package-json' | 'ntnyq/eslint-plugin' | 'ntnyq/format/setup' | 'ntnyq/format/css' | 'ntnyq/format/scss' | 'ntnyq/format/less' | 'ntnyq/format/html' | 'ntnyq/github-action' | 'ntnyq/gitignore' | 'ntnyq/ignores' | 'ntnyq/import-x' | 'ntnyq/js/recommended' | 'ntnyq/js/core' | 'ntnyq/jsdoc' | 'ntnyq/jsonc' | 'ntnyq/jsx' | 'ntnyq/markdown/recommended/plugin' | 'ntnyq/markdown/recommended/processor' | 'ntnyq/markdown/recommended/code-blocks' | 'ntnyq/markdown/processor' | 'ntnyq/markdown/parser' | 'ntnyq/markdown/disabled
|
|
14153
|
+
type ConfigNames = 'ntnyq/antfu' | 'ntnyq/command' | 'ntnyq/eslint-comments' | 'ntnyq/depend' | 'ntnyq/depend/package-json' | 'ntnyq/eslint-plugin' | 'ntnyq/format/setup' | 'ntnyq/format/css' | 'ntnyq/format/scss' | 'ntnyq/format/less' | 'ntnyq/format/html' | 'ntnyq/github-action' | 'ntnyq/gitignore' | 'ntnyq/ignores' | 'ntnyq/import-x' | 'ntnyq/js/recommended' | 'ntnyq/js/core' | 'ntnyq/jsdoc' | 'ntnyq/jsonc' | 'ntnyq/jsx' | 'ntnyq/markdown/recommended/plugin' | 'ntnyq/markdown/recommended/processor' | 'ntnyq/markdown/recommended/code-blocks' | 'ntnyq/markdown/processor' | 'ntnyq/markdown/parser' | 'ntnyq/markdown/disabled' | 'ntnyq/node' | 'ntnyq/ntnyq' | 'ntnyq/pinia' | 'ntnyq/prettier' | 'ntnyq/prettier/disabled' | 'ntnyq/perfectionist/common' | 'ntnyq/perfectionist/enums' | 'ntnyq/perfectionist/types' | 'ntnyq/perfectionist/constants' | 'ntnyq/regexp' | 'ntnyq/sort/tsconfig' | 'ntnyq/sort/package-json' | 'ntnyq/sort/i18n-locale/json' | 'ntnyq/sort/i18n-locale/yaml' | 'ntnyq/sort/pnpm-workspace' | 'ntnyq/specials/scripts' | 'ntnyq/specials/cli' | 'ntnyq/specials/userscript' | 'ntnyq/specials/config-file' | 'ntnyq/svgo' | 'ntnyq/test/setup' | 'ntnyq/test/base' | 'ntnyq/test/vitest' | 'ntnyq/toml' | 'ntnyq/ts/setup' | 'ntnyq/ts/parser' | 'ntnyq/ts/rules' | 'ntnyq/ts/types' | 'ntnyq/unused-imports' | 'ntnyq/unicorn' | 'ntnyq/unocss' | 'ntnyq/vue/setup' | 'ntnyq/vue/rules' | 'ntnyq/yml'
|
|
14145
14154
|
|
|
14146
14155
|
/**
|
|
14147
14156
|
* ESLint config
|
|
@@ -14280,12 +14289,6 @@ interface ConfigJsdocOptions extends OptionsFeatures, OptionsOverrides {
|
|
|
14280
14289
|
interface ConfigJsoncOptions extends OptionsOverrides {
|
|
14281
14290
|
}
|
|
14282
14291
|
interface ConfigMarkdownOptions extends OptionsExtensions, OptionsFiles, OptionsOverrides {
|
|
14283
|
-
/**
|
|
14284
|
-
* Explicitly disable type aware linting for markdown files
|
|
14285
|
-
*
|
|
14286
|
-
* @default false
|
|
14287
|
-
*/
|
|
14288
|
-
disableTypeAwareLinting?: boolean;
|
|
14289
14292
|
}
|
|
14290
14293
|
interface ConfigNodeOptions extends OptionsOverrides {
|
|
14291
14294
|
}
|
|
@@ -14334,6 +14337,8 @@ interface ConfigPiniaOptions extends OptionsFiles, OptionsOverrides {
|
|
|
14334
14337
|
interface ConfigPrettierOptions extends OptionsOverrides {
|
|
14335
14338
|
/**
|
|
14336
14339
|
* Glob of built-in disabled files
|
|
14340
|
+
*
|
|
14341
|
+
* @default all svg, toml, svelte and astro files
|
|
14337
14342
|
*/
|
|
14338
14343
|
disabledFiles?: string[];
|
|
14339
14344
|
/**
|
|
@@ -14358,6 +14363,14 @@ interface ConfigRegexpOptions extends OptionsOverrides {
|
|
|
14358
14363
|
severity?: ESLintRuleSeverity;
|
|
14359
14364
|
}
|
|
14360
14365
|
interface ConfigSortOptions {
|
|
14366
|
+
/**
|
|
14367
|
+
* JSON files to sort all properties alphabeta
|
|
14368
|
+
*/
|
|
14369
|
+
additionalJsonFiles?: string[];
|
|
14370
|
+
/**
|
|
14371
|
+
* YAML files to sort all properties alphabeta
|
|
14372
|
+
*/
|
|
14373
|
+
additionalYamlFiles?: string[];
|
|
14361
14374
|
/**
|
|
14362
14375
|
* @default true
|
|
14363
14376
|
*/
|
|
@@ -14525,7 +14538,9 @@ type PerfectionistPartitionByComment = boolean | string | string[] | {
|
|
|
14525
14538
|
/**
|
|
14526
14539
|
* Prettier options
|
|
14527
14540
|
*/
|
|
14528
|
-
type PrettierOptions = Partial<Pick<RequiredOptions, 'arrowParens' | 'bracketSameLine' | 'bracketSpacing' | 'embeddedLanguageFormatting' | 'endOfLine' | 'experimentalTernaries' | 'htmlWhitespaceSensitivity' | 'insertPragma' | 'jsxSingleQuote' | 'plugins' | 'printWidth' | 'proseWrap' | 'quoteProps' | 'rangeEnd' | 'rangeStart' | 'requirePragma' | 'semi' | 'singleAttributePerLine' | 'singleQuote' | 'tabWidth' | 'trailingComma' | 'useTabs' | 'vueIndentScriptAndStyle'
|
|
14541
|
+
type PrettierOptions = Partial<Pick<RequiredOptions, 'arrowParens' | 'bracketSameLine' | 'bracketSpacing' | 'embeddedLanguageFormatting' | 'endOfLine' | 'experimentalTernaries' | 'htmlWhitespaceSensitivity' | 'insertPragma' | 'jsxSingleQuote' | 'objectWrap' | 'plugins' | 'printWidth' | 'proseWrap' | 'quoteProps' | 'rangeEnd' | 'rangeStart' | 'requirePragma' | 'semi' | 'singleAttributePerLine' | 'singleQuote' | 'tabWidth' | 'trailingComma' | 'useTabs' | 'vueIndentScriptAndStyle'> & {
|
|
14542
|
+
experimentalOperatorPosition?: 'end' | 'start';
|
|
14543
|
+
}> & {
|
|
14529
14544
|
parser?: BuiltInParserName;
|
|
14530
14545
|
};
|
|
14531
14546
|
|
|
@@ -14720,6 +14735,8 @@ declare const configESLintComments: (options?: ConfigESLintCommentsOptions) => T
|
|
|
14720
14735
|
|
|
14721
14736
|
/**
|
|
14722
14737
|
* Options from `@ntnyq/prettier-config`
|
|
14738
|
+
*
|
|
14739
|
+
* @see {@link https://github.com/ntnyq/configs/blob/main/packages/prettier-config/index.js}
|
|
14723
14740
|
*/
|
|
14724
14741
|
declare const DEFAULT_PRETTIER_OPTIONS: PrettierOptions;
|
|
14725
14742
|
|