Skip to content

chore: enable eslint-plugin-perfectionist on integration-tests package #9844

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
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
1 change: 1 addition & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -572,6 +572,7 @@ export default tseslint.config(
extends: [perfectionistPlugin.configs['recommended-alphabetical']],
files: [
'packages/ast-spec/{src,tests,typings}/**/*.ts',
'packages/integration-tests/{tests,tools,typing}/**/*.ts',
'packages/utils/src/**/*.ts',
'packages/visitor-keys/src/**/*.ts',
'packages/website*/src/**/*.ts',
Expand Down
10 changes: 5 additions & 5 deletions packages/integration-tests/tools/integration-test-base.ts
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
import type { DirOptions } from 'tmp';

import ncp from 'ncp';
import childProcess from 'node:child_process';
import fs from 'node:fs';
import path from 'node:path';
import { promisify } from 'node:util';

import ncp from 'ncp';
import type { DirOptions } from 'tmp';
import tmp from 'tmp';

interface PackageJSON {
devDependencies: Record<string, string>;
name: string;
private?: boolean;
devDependencies: Record<string, string>;
}

const rootPackageJson: PackageJSON = require('../../../package.json');
Expand All @@ -27,8 +27,8 @@ const writeFile = promisify(fs.writeFile);
const BASE_DEPENDENCIES: PackageJSON['devDependencies'] = {
...global.tseslintPackages,
eslint: rootPackageJson.devDependencies.eslint,
typescript: rootPackageJson.devDependencies.typescript,
jest: rootPackageJson.devDependencies.jest,
typescript: rootPackageJson.devDependencies.typescript,
};

const FIXTURES_DIR = path.join(__dirname, '..', 'fixtures');
Expand Down
3 changes: 1 addition & 2 deletions packages/integration-tests/tools/pack-packages.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,12 @@
import { spawnSync } from 'node:child_process';
import fs from 'node:fs';
import path from 'node:path';

import tmp from 'tmp';

interface PackageJSON {
devDependencies: Record<string, string>;
name: string;
private?: boolean;
devDependencies: Record<string, string>;
}

const PACKAGES_DIR = path.resolve(__dirname, '..', '..');
Expand Down
Loading