Skip to content

Commit 96be606

Browse files
authored
build: convert eslint-remote-tester config to typescript (#533)
* git mv * build: convert eslint-remote-tester config to typescript Supporting the larger typescript migration, this change migrates the config for `eslint-remote-tester` to typescript, which will be necessary to run our plugin from source, once it's typescript. * Bump version of eslint-remote-tester to pick up bug fix
1 parent f834dc2 commit 96be606

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

eslint-remote-tester.config.mjs renamed to eslint-remote-tester.config.ts

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
1-
import eslintPlugin from 'eslint-plugin-eslint-plugin';
21
import tsparser from '@typescript-eslint/parser';
2+
import type { Config } from 'eslint-remote-tester';
3+
4+
// @ts-expect-error - eslint-plugin is not typed yet
5+
import eslintPlugin from './lib/index.js';
36

4-
/** @type {import('eslint-remote-tester').Config} */
57
export default {
68
/** Repositories to scan */
79
repositories: [
@@ -43,6 +45,7 @@ export default {
4345
cache: false,
4446

4547
/** ESLint configuration */
48+
// @ts-expect-error - eslint-plugin is not typed yet
4649
eslintConfig: [
4750
{
4851
files: ['**/*.{js,mjs,cjs,ts,mts,cts}'],
@@ -56,4 +59,4 @@ export default {
5659
},
5760
},
5861
],
59-
};
62+
} satisfies Config;

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"lint:package-json": "npmPkgJsonLint .",
2020
"release": "release-it",
2121
"test": "vitest run --coverage",
22-
"test:remote": "eslint-remote-tester -c ./eslint-remote-tester.config.mjs",
22+
"test:remote": "eslint-remote-tester -c ./eslint-remote-tester.config.ts",
2323
"update:eslint-docs": "eslint-doc-generator"
2424
},
2525
"files": [
@@ -64,7 +64,7 @@
6464
"eslint-plugin-n": "^17.21.0",
6565
"eslint-plugin-prettier": "^5.5.3",
6666
"eslint-plugin-unicorn": "^56.0.1",
67-
"eslint-remote-tester": "^4.0.2",
67+
"eslint-remote-tester": "^4.0.3",
6868
"eslint-scope": "^8.0.1",
6969
"espree": "^10.0.1",
7070
"husky": "^9.1.7",

0 commit comments

Comments
 (0)