Skip to content

test(integration): ensure typescript-eslint packages are consistent #705

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 19, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,8 @@
"@types/mocha": "^10.0.10",
"@types/node": "^22.13.13",
"@types/semver": "^7.7.0",
"@typescript-eslint/eslint-plugin": "^8.28.0",
"@typescript-eslint/parser": "~8.29.0",
"@typescript-eslint/types": "~8.29.0",
"@typescript-eslint/parser": "^8.29.0",
"@typescript-eslint/types": "^8.29.0",
"benchmark": "^2.1.4",
"c8": "^10.1.3",
"chai": "^5.2.0",
Expand Down
1 change: 1 addition & 0 deletions prettier.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export default {};
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I added this file to ensure that my editor picked up Prettier defaults - which this repository seems to follow - rather than my own person defaults. Let me know if you'd like me to remove it from this PR

Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
import type { Linter } from "eslint";
import { generateParserOptions } from "../../../src/parser/test-utils.js";
import { rules } from "@typescript-eslint/eslint-plugin";
import { plugin } from "typescript-eslint";
import * as parser from "../../../../src/index.js";
import globals from "globals";

export function getConfig(): Linter.Config {
return {
plugins: {
"@typescript-eslint": {
rules: rules as any,
rules: plugin.rules as any,
},
},
languageOptions: {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
import type { Linter } from "eslint";
import { generateParserOptions } from "../../../src/parser/test-utils.js";
import { rules } from "@typescript-eslint/eslint-plugin";
import { plugin } from "typescript-eslint";
import * as parser from "../../../../src/index.js";
import globals from "globals";

export function getConfig(): Linter.Config {
return {
plugins: {
"@typescript-eslint": {
rules: rules as any,
rules: plugin.rules as any,
},
},
languageOptions: {
Expand Down
4 changes: 2 additions & 2 deletions tests/fixtures/integrations/type-info-tests/$derived-setup.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
import type { Linter } from "eslint";
import { generateParserOptions } from "../../../src/parser/test-utils";
import { rules } from "@typescript-eslint/eslint-plugin";
import { plugin } from "typescript-eslint";
import * as parser from "../../../../src";
import globals from "globals";

export function getConfig(): Linter.Config {
return {
plugins: {
"@typescript-eslint": {
rules: rules as any,
rules: plugin.rules as any,
},
},
languageOptions: {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
import type { Linter } from "eslint";
import { generateParserOptions } from "../../../src/parser/test-utils";
import { rules } from "@typescript-eslint/eslint-plugin";
import { plugin } from "typescript-eslint";
import * as parser from "../../../../src";
import globals from "globals";

export function getConfig(): Linter.Config {
return {
plugins: {
"@typescript-eslint": {
rules: rules as any,
rules: plugin.rules as any,
},
},
languageOptions: {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
import type { Linter } from "eslint";
import { generateParserOptions } from "../../../src/parser/test-utils";
import { rules } from "@typescript-eslint/eslint-plugin";
import { plugin } from "typescript-eslint";
import * as parser from "../../../../src";
import globals from "globals";

export function getConfig(): Linter.Config {
return {
plugins: {
"@typescript-eslint": {
rules: rules as any,
rules: plugin.rules as any,
},
},
languageOptions: {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
import type { Linter } from "eslint";
import { generateParserOptions } from "../../../src/parser/test-utils";
import { rules } from "@typescript-eslint/eslint-plugin";
import { plugin } from "typescript-eslint";
import * as parser from "../../../../src";
import globals from "globals";

export function getConfig(): Linter.Config {
return {
plugins: {
"@typescript-eslint": {
rules: rules as any,
rules: plugin.rules as any,
},
},
languageOptions: {
Expand Down
4 changes: 2 additions & 2 deletions tests/fixtures/integrations/type-info-tests/$props-setup.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
import type { Linter } from "eslint";
import { generateParserOptions } from "../../../src/parser/test-utils";
import { rules } from "@typescript-eslint/eslint-plugin";
import { plugin } from "typescript-eslint";
import * as parser from "../../../../src";
import globals from "globals";

export function getConfig(): Linter.Config {
return {
plugins: {
"@typescript-eslint": {
rules: rules as any,
rules: plugin.rules as any,
},
},
languageOptions: {
Expand Down
4 changes: 2 additions & 2 deletions tests/fixtures/integrations/type-info-tests/await-setup.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
import type { Linter } from "eslint";
import { generateParserOptions } from "../../../src/parser/test-utils";
import { rules } from "@typescript-eslint/eslint-plugin";
import { plugin } from "typescript-eslint";
import * as parser from "../../../../src";
import globals from "globals";

export function getConfig(): Linter.Config {
return {
plugins: {
"@typescript-eslint": {
rules: rules as any,
rules: plugin.rules as any,
},
},
languageOptions: {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
import type { Linter } from "eslint";
import { generateParserOptions } from "../../../src/parser/test-utils";
import { rules } from "@typescript-eslint/eslint-plugin";
import { plugin } from "typescript-eslint";
import * as parser from "../../../../src";
import globals from "globals";

export function getConfig(): Linter.Config {
return {
plugins: {
"@typescript-eslint": {
rules: rules as any,
rules: plugin.rules as any,
},
},
languageOptions: {
Expand Down
4 changes: 2 additions & 2 deletions tests/fixtures/integrations/type-info-tests/i18n-setup.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
import type { Linter } from "eslint";
import { generateParserOptions } from "../../../src/parser/test-utils";
import { rules } from "@typescript-eslint/eslint-plugin";
import { plugin } from "typescript-eslint";
import * as parser from "../../../../src";
import globals from "globals";

export function getConfig(): Linter.Config {
return {
plugins: {
"@typescript-eslint": {
rules: rules as any,
rules: plugin.rules as any,
},
},
languageOptions: {
Expand Down
4 changes: 2 additions & 2 deletions tests/fixtures/integrations/type-info-tests/issue226-setup.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
import type { Linter } from "eslint";
import { generateParserOptions } from "../../../src/parser/test-utils";
import { rules } from "@typescript-eslint/eslint-plugin";
import { plugin } from "typescript-eslint";
import * as parser from "../../../../src";
import globals from "globals";

export function getConfig(): Linter.Config {
return {
plugins: {
"@typescript-eslint": {
rules: rules as any,
rules: plugin.rules as any,
},
},
languageOptions: {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
import type { Linter } from "eslint";
import { generateParserOptions } from "../../../src/parser/test-utils";
import { rules } from "@typescript-eslint/eslint-plugin";
import { plugin } from "typescript-eslint";
import * as parser from "../../../../src";
import globals from "globals";

export function getConfig(): Linter.Config {
return {
plugins: {
"@typescript-eslint": {
rules: rules as any,
rules: plugin.rules as any,
},
},
languageOptions: {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
import type { Linter } from "eslint";
import { generateParserOptions } from "../../../src/parser/test-utils";
import { rules } from "@typescript-eslint/eslint-plugin";
import { plugin } from "typescript-eslint";
import * as parser from "../../../../src";
import globals from "globals";

export function getConfig(): Linter.Config {
return {
plugins: {
"@typescript-eslint": {
rules: rules as any,
rules: plugin.rules as any,
},
},
languageOptions: {
Expand Down
4 changes: 2 additions & 2 deletions tests/fixtures/integrations/type-info-tests/reactive-setup.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
import type { Linter } from "eslint";
import { generateParserOptions } from "../../../src/parser/test-utils";
import { rules } from "@typescript-eslint/eslint-plugin";
import { plugin } from "typescript-eslint";
import * as parser from "../../../../src";
import globals from "globals";

export function getConfig(): Linter.Config {
return {
plugins: {
"@typescript-eslint": {
rules: rules as any,
rules: plugin.rules as any,
},
},
languageOptions: {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
import type { Linter } from "eslint";
import { generateParserOptions } from "../../../src/parser/test-utils";
import { rules } from "@typescript-eslint/eslint-plugin";
import { plugin } from "typescript-eslint";
import * as parser from "../../../../src";
import globals from "globals";

export function getConfig(): Linter.Config {
return {
plugins: {
"@typescript-eslint": {
rules: rules as any,
rules: plugin.rules as any,
},
},
languageOptions: {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
import type { Linter } from "eslint";
import { generateParserOptions } from "../../../src/parser/test-utils";
import { rules } from "@typescript-eslint/eslint-plugin";
import { plugin } from "typescript-eslint";
import * as parser from "../../../../src";
import globals from "globals";

export function getConfig(): Linter.Config {
return {
plugins: {
"@typescript-eslint": {
rules: rules as any,
rules: plugin.rules as any,
},
},
languageOptions: {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
import type { Linter } from "eslint";
import { generateParserOptions } from "../../../src/parser/test-utils";
import { rules } from "@typescript-eslint/eslint-plugin";
import { plugin } from "typescript-eslint";
import * as parser from "../../../../src";
import globals from "globals";

export function getConfig(): Linter.Config {
return {
plugins: {
"@typescript-eslint": {
rules: rules as any,
rules: plugin.rules as any,
},
},
languageOptions: {
Expand Down
Loading