Skip to content

Commit 8c291df

Browse files
chore: enable eslint-plugin-perfectionist on integration-tests package (typescript-eslint#9844)
1 parent 88b44ce commit 8c291df

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

eslint.config.mjs

+1
Original file line numberDiff line numberDiff line change
@@ -572,6 +572,7 @@ export default tseslint.config(
572572
extends: [perfectionistPlugin.configs['recommended-alphabetical']],
573573
files: [
574574
'packages/ast-spec/{src,tests,typings}/**/*.ts',
575+
'packages/integration-tests/{tests,tools,typing}/**/*.ts',
575576
'packages/utils/src/**/*.ts',
576577
'packages/visitor-keys/src/**/*.ts',
577578
'packages/website*/src/**/*.ts',

packages/integration-tests/tools/integration-test-base.ts

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
1+
import type { DirOptions } from 'tmp';
2+
3+
import ncp from 'ncp';
14
import childProcess from 'node:child_process';
25
import fs from 'node:fs';
36
import path from 'node:path';
47
import { promisify } from 'node:util';
5-
6-
import ncp from 'ncp';
7-
import type { DirOptions } from 'tmp';
88
import tmp from 'tmp';
99

1010
interface PackageJSON {
11+
devDependencies: Record<string, string>;
1112
name: string;
1213
private?: boolean;
13-
devDependencies: Record<string, string>;
1414
}
1515

1616
const rootPackageJson: PackageJSON = require('../../../package.json');
@@ -27,8 +27,8 @@ const writeFile = promisify(fs.writeFile);
2727
const BASE_DEPENDENCIES: PackageJSON['devDependencies'] = {
2828
...global.tseslintPackages,
2929
eslint: rootPackageJson.devDependencies.eslint,
30-
typescript: rootPackageJson.devDependencies.typescript,
3130
jest: rootPackageJson.devDependencies.jest,
31+
typescript: rootPackageJson.devDependencies.typescript,
3232
};
3333

3434
const FIXTURES_DIR = path.join(__dirname, '..', 'fixtures');

packages/integration-tests/tools/pack-packages.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,12 @@
1010
import { spawnSync } from 'node:child_process';
1111
import fs from 'node:fs';
1212
import path from 'node:path';
13-
1413
import tmp from 'tmp';
1514

1615
interface PackageJSON {
16+
devDependencies: Record<string, string>;
1717
name: string;
1818
private?: boolean;
19-
devDependencies: Record<string, string>;
2019
}
2120

2221
const PACKAGES_DIR = path.resolve(__dirname, '..', '..');

0 commit comments

Comments
 (0)