Skip to content

Commit

Permalink
📦 deps: bump @types/eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
pauliesnug committed Jul 28, 2024
1 parent 2fbdb89 commit ed092ae
Show file tree
Hide file tree
Showing 8 changed files with 310 additions and 272 deletions.
16 changes: 8 additions & 8 deletions packages/eslint-config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -130,17 +130,17 @@
"@antfu/install-pkg": "^0.3.3",
"@clack/prompts": "^0.7.0",
"@eslint-community/eslint-plugin-eslint-comments": "^4.3.0",
"@stylistic/eslint-plugin": "2.6.0-beta.0",
"@stylistic/eslint-plugin": "2.6.0-beta.1",
"@typescript-eslint/eslint-plugin": "8.0.0-alpha.41",
"@typescript-eslint/parser": "8.0.0-alpha.41",
"eslint-flat-config-utils": "^0.2.5",
"eslint-flat-config-utils": "^0.3.0",
"eslint-merge-processors": "^0.1.0",
"eslint-plugin-command": "^0.2.3",
"eslint-plugin-import-x": "^3.1.0",
"eslint-plugin-jsdoc": "^48.8.3",
"eslint-plugin-jsonc": "^2.16.0",
"eslint-plugin-markdown": "^5.1.0",
"eslint-plugin-n": "^17.9.0",
"eslint-plugin-n": "^17.10.1",
"eslint-plugin-perfectionist": "^3.0.0",
"eslint-plugin-petal": "workspace:^",
"eslint-plugin-regexp": "^2.6.0",
Expand All @@ -158,14 +158,14 @@
"yaml-eslint-parser": "^1.2.3"
},
"devDependencies": {
"@eslint-react/eslint-plugin": "^1.5.30",
"@eslint-react/eslint-plugin": "^1.6.0",
"@eslint/config-inspector": "^0.5.2",
"@prettier/plugin-xml": "^3.4.1",
"@tanstack/eslint-plugin-query": "^5.51.12",
"@types/eslint": "^8.56.10",
"@tanstack/eslint-plugin-query": "^5.51.15",
"@types/eslint": "^9.6.0",
"@types/fs-extra": "^11.0.4",
"@types/prompts": "^2.4.9",
"@unocss/eslint-plugin": "^0.61.5",
"@unocss/eslint-plugin": "^0.61.6",
"astro-eslint-parser": "^1.0.2",
"eslint": "npm:eslint-ts-patch@9.5.0-0",
"eslint-plugin-astro": "^1.2.3",
Expand All @@ -178,7 +178,7 @@
"eslint-plugin-vuejs-accessibility": "^2.4.1",
"eslint-processor-vue-blocks": "^0.1.2",
"eslint-ts-patch": "9.5.0-0",
"eslint-typegen": "^0.2.4",
"eslint-typegen": "^0.3.0",
"execa": "^9.3.0",
"fast-glob": "^3.3.2",
"fs-extra": "^11.2.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/eslint-config/src/factory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ export const defaultPluginRenaming: Record<string, string> = {
};

type FactoryOptions = OptionsConfig & TypedFlatConfigItem;
type UserConfig = Awaitable<TypedFlatConfigItem | TypedFlatConfigItem[] | FlatConfigComposer<any, any> | Linter.FlatConfig[]>;
type UserConfig = Awaitable<TypedFlatConfigItem | TypedFlatConfigItem[] | FlatConfigComposer<any, any> | Linter.Config[]>;
type FactoryComposer = FlatConfigComposer<TypedFlatConfigItem, ConfigNames>;

/**
Expand Down
2 changes: 1 addition & 1 deletion packages/eslint-config/src/types/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export type Awaitable<T> = T | Promise<T>;
export type Rules = import('./typegen').RuleOptions;
export type { ConfigNames } from './typegen';

type InternalFlatConfig = import('eslint').Linter.FlatConfig<import('eslint').Linter.RulesRecord & Rules>;
type InternalFlatConfig = import('eslint').Linter.Config<import('eslint').Linter.RulesRecord & Rules>;

export type TypedFlatConfigItem = Omit<InternalFlatConfig, 'plugins'> & {
/**
Expand Down
22 changes: 11 additions & 11 deletions packages/eslint-config/src/types/stub.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ declare module 'eslint-plugin-react-hooks' {

const eslintPluginReactHooks: ESLint.Plugin & {
configs: {
recommended: Linter.FlatConfig;
recommended: Linter.Config;
};
};

Expand All @@ -17,13 +17,13 @@ declare module 'eslint-plugin-vue' {

const eslintPluginVue: ESLint.Plugin & {
configs: {
'base': Linter.FlatConfig;
'essential': Linter.FlatConfig;
'strongly-recommended': Linter.FlatConfig;
'recommended': Linter.FlatConfig;
'vue3-essential': Linter.FlatConfig;
'vue3-strongly-recommended': Linter.FlatConfig;
'vue3-recommended': Linter.FlatConfig;
'base': Linter.Config;
'essential': Linter.Config;
'strongly-recommended': Linter.Config;
'recommended': Linter.Config;
'vue3-essential': Linter.Config;
'vue3-strongly-recommended': Linter.Config;
'vue3-recommended': Linter.Config;
};
processors: {
'.vue': Linter.Processor;
Expand All @@ -39,8 +39,8 @@ declare module 'eslint-plugin-markdown' {

const eslintPluginMarkdown: ESLint.Plugin & {
configs: {
'recommended': Linter.FlatConfig;
'recommended-legacy': Linter.Config;
'recommended': Linter.Config;
'recommended-legacy': Linter.LegacyConfig;
};
processors: {
markdown: Linter.Processor;
Expand All @@ -65,7 +65,7 @@ declare module '@eslint-community/eslint-plugin-eslint-comments' {

const eslintPluginESLintComments: ESLint.Plugin & {
configs: {
recommended: Linter.Config;
recommended: Linter.LegacyConfig;
};
};

Expand Down
2 changes: 1 addition & 1 deletion packages/eslint-config/src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import type { Rules } from './index';
* A simple parser for use in AST-agnostic configs (i.e. markdown formatters, `eslint-plugin-format`)
* @public
*/
export const parserPlain: Linter.FlatConfigParserModule = {
export const parserPlain: Linter.Parser = {
meta: {
name: 'parser-plain',
},
Expand Down
4 changes: 2 additions & 2 deletions packages/eslint-config/test/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ import type { Linter } from 'eslint';
import type { TypedFlatConfigItem } from '../src';

// Make sure they are compatible
((): Linter.FlatConfig => ({} as TypedFlatConfigItem))();
((): TypedFlatConfigItem => ({} as Linter.FlatConfig))();
((): Linter.Config => ({} as TypedFlatConfigItem))();
((): TypedFlatConfigItem => ({} as Linter.Config))();
2 changes: 1 addition & 1 deletion packages/eslint-plugin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
"@flowr/utils": "workspace:^"
},
"devDependencies": {
"@types/eslint": "^8.56.10",
"@types/eslint": "^9.6.0",
"@typescript-eslint/utils": "8.0.0-alpha.41",
"eslint": "9.5.0",
"eslint-vitest-rule-tester": "^0.3.3",
Expand Down
Loading

0 comments on commit ed092ae

Please sign in to comment.