Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
0881977
chore: install tsdown
Belco90 Dec 12, 2025
47e987e
chore: remove unnecessary index.d.ts
Belco90 Dec 12, 2025
18a6a71
chore: update build script
Belco90 Dec 12, 2025
2d140c4
chore: simplify meta fields
Belco90 Dec 12, 2025
cda6c97
chore: update bundle export fields
Belco90 Dec 12, 2025
5738bf2
ci: run bundle-check validation
Belco90 Dec 12, 2025
3e696b8
chore: bump pnpm version
Belco90 Dec 12, 2025
dc942fd
chore: update type to module
Belco90 Dec 12, 2025
11fe3d9
chore: fix js extensions
Belco90 Dec 12, 2025
860f173
chore: move prettier config file to ESM
Belco90 Dec 13, 2025
3ae810c
chore: move release config file to ESM
Belco90 Dec 13, 2025
71fb19c
chore: move commitlint config to ESM
Belco90 Dec 13, 2025
b67d3f5
chore: move eslint config to ESM
Belco90 Dec 13, 2025
ceda585
chore: move lint-staged config to ESM
Belco90 Dec 13, 2025
354a294
chore: move eslint-doc-generator config to ESM
Belco90 Dec 13, 2025
71e7e29
chore: update gen commands
Belco90 Dec 13, 2025
5acee0d
chore: bump eslint-remote-tester
Belco90 Dec 14, 2025
1c2adf6
chore: replace tsx with jiti
Belco90 Dec 15, 2025
b75c386
chore: move eslint-remote-tester config to ESM
Belco90 Dec 15, 2025
05f7fcf
ci: update smoke-test workflow
Belco90 Dec 15, 2025
d53e835
chore: sort validate commands
Belco90 Dec 15, 2025
7361a6e
chore: rename lib/ to src/
Belco90 Dec 15, 2025
473933e
chore: improve export types
Belco90 Dec 16, 2025
8464ca9
ci: simplify verifications matrix
Belco90 Dec 16, 2025
8437572
chore: update tsconfig
Belco90 Dec 16, 2025
24c7994
chore: improve types
Belco90 Dec 16, 2025
89d55c8
chore: use fileURLToPath for correct paths
Belco90 Dec 16, 2025
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
14 changes: 6 additions & 8 deletions .eslint-doc-generatorrc.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
const prettier = require('prettier');

const prettierConfig = require('./.prettierrc.js');
import * as prettier from 'prettier';

/** @type {import('eslint-doc-generator').GenerateOptions} */
const config = {
export default {
ignoreConfig: [
'flat/angular',
'flat/dom',
Expand All @@ -12,8 +10,8 @@ const config = {
'flat/svelte',
'flat/vue',
],
postprocess: (content) =>
prettier.format(content, { ...prettierConfig, parser: 'markdown' }),
postprocess: async (content, path) => {
const prettierConfig = await prettier.resolveConfig(path);
return prettier.format(content, { ...prettierConfig, parser: 'markdown' });
},
};

module.exports = config;
17 changes: 8 additions & 9 deletions .github/workflows/smoke-test.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
name: Smoke test

on:
schedule:
schedule: # Every Sunday at midnight
- cron: '0 0 * * SUN'
workflow_dispatch:
workflow_dispatch: # Manual trigger
release:
types: [published]

permissions:
issues: write # To create issues for test results

jobs:
test:
runs-on: ubuntu-latest
Expand All @@ -27,12 +30,8 @@ jobs:
pnpm install
pnpm run build
- run: pnpm link
working-directory: ./dist

- run: pnpm link eslint-plugin-testing-library

- uses: AriPerkkio/eslint-remote-tester-run-action@v4
with:
issue-title: 'Results of weekly scheduled smoke test'
eslint-remote-tester-config: tests/eslint-remote-tester.config.js
issue-title: 'Results of smoke test'
issue-label: 'smoke-test'
eslint-remote-tester-config: eslint-remote-tester.config.ts
12 changes: 9 additions & 3 deletions .github/workflows/verifications.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,13 @@ jobs:
fail-fast: false
matrix:
validation-script:
['lint', 'type-check', 'format:check', 'generate-all:check']
[
'lint',
'type-check',
'format:check',
'validate-gen-all',
'bundle-check',
]
steps:
- name: Checkout
uses: actions/checkout@v6
Expand All @@ -41,8 +47,8 @@ jobs:
strategy:
fail-fast: false
matrix:
node: [18.18.0, 18, 20.9.0, 20, 21.1.0, 21, 22, 23]
eslint: [8.57.0, 8, 9]
node: [18, 20, 21, 22, 23]
eslint: [8, 9]
steps:
- name: Checkout
uses: actions/checkout@v6
Expand Down
16 changes: 0 additions & 16 deletions .releaserc.json

This file was deleted.

6 changes: 3 additions & 3 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,13 +57,13 @@ Based on [ESLint's Rule Naming Conventions](https://eslint.org/docs/developer-gu
In the [same way as ESLint](https://eslint.org/docs/developer-guide/working-with-rules),
each rule has three files named with its identifier (e.g. `no-debugging-utils`):
- in the `lib/rules` directory: a source file (e.g. `no-debugging-utils.ts`)
- in the `tests/lib/rules` directory: a test file (e.g. `no-debugging-utils.ts`)
- in the `src/rules` directory: a source file (e.g. `no-debugging-utils.ts`)
- in the `tests/rules` directory: a test file (e.g. `no-debugging-utils.ts`)
- in the `docs/rules` directory: a Markdown documentation file (e.g. `no-debugging-utils.md`)
Additionally, you need to do a couple of extra things:
- Run `pnpm run generate:rules-doc` to include your rule in the "Supported Rules" table within the [README.md](./README.md)
- Run `pnpm run generate:docs` to include your rule in the "Supported Rules" table within the [README.md](./README.md)
### Custom rule creator
Expand Down
2 changes: 1 addition & 1 deletion commitlint.config.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module.exports = {
export default {
extends: ['@commitlint/config-conventional'],
};
40 changes: 40 additions & 0 deletions eslint-remote-tester.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
import {
getPathIgnorePattern,
getRepositories,
} from 'eslint-remote-tester-repositories';
import { parser } from 'typescript-eslint';

import testingLibraryPlugin from './src';

import type { Config } from 'eslint-remote-tester';

const eslintRemoteTesterConfig: Config = {
repositories: getRepositories({ randomize: true }),
pathIgnorePattern: getPathIgnorePattern(),
extensions: ['js', 'jsx', 'ts', 'tsx'],
concurrentTasks: 3,
cache: false,
logLevel: 'info',
eslintConfig: [
{
plugins: { 'testing-library': testingLibraryPlugin },
rules: {
...Object.fromEntries(
Object.keys(testingLibraryPlugin.rules).map((rule) => [
`testing-library/${rule}`,
'error',
])
),

// Rules with required options without default values
'testing-library/consistent-data-testid': [
'error',
{ testIdPattern: '^{fileName}(__([A-Z]+[a-z]_?)+)_$' },
],
},
},
{ languageOptions: { parser } },
] as Config['eslintConfig'],
};

export default eslintRemoteTesterConfig;
File renamed without changes.
27 changes: 0 additions & 27 deletions index.d.ts

This file was deleted.

56 changes: 0 additions & 56 deletions lib/index.ts

This file was deleted.

76 changes: 0 additions & 76 deletions lib/node-utils/is-node-of-type.ts

This file was deleted.

File renamed without changes.
Loading