Skip to content

Commit 26d360e

Browse files
committed
feat(docs): generate-all for svelte
1 parent ff432b0 commit 26d360e

24 files changed

+83
-49
lines changed

.eslint-doc-generatorrc.js

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ const config = {
88
'flat/dom',
99
'flat/marko',
1010
'flat/react',
11+
'flat/svelte',
1112
'flat/vue',
1213
],
1314
postprocess: (content) =>

README.md

+58-29
Large diffs are not rendered by default.

docs/rules/await-async-events.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Enforce promises from async event methods are handled (`testing-library/await-async-events`)
22

3-
💼 This rule is enabled in the following configs: `angular`, `dom`, `marko`, `react`, `vue`.
3+
💼 This rule is enabled in the following configs: `angular`, `dom`, `marko`, `react`, `svelte`, `vue`.
44

55
🔧 This rule is automatically fixable by the [`--fix` CLI option](https://eslint.org/docs/latest/user-guide/command-line-interface#--fix).
66

docs/rules/await-async-queries.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Enforce promises from async queries to be handled (`testing-library/await-async-queries`)
22

3-
💼 This rule is enabled in the following configs: `angular`, `dom`, `marko`, `react`, `vue`.
3+
💼 This rule is enabled in the following configs: `angular`, `dom`, `marko`, `react`, `svelte`, `vue`.
44

55
<!-- end auto-generated rule header -->
66

docs/rules/await-async-utils.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Enforce promises from async utils to be awaited properly (`testing-library/await-async-utils`)
22

3-
💼 This rule is enabled in the following configs: `angular`, `dom`, `marko`, `react`, `vue`.
3+
💼 This rule is enabled in the following configs: `angular`, `dom`, `marko`, `react`, `svelte`, `vue`.
44

55
<!-- end auto-generated rule header -->
66

docs/rules/no-await-sync-queries.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Disallow unnecessary `await` for sync queries (`testing-library/no-await-sync-queries`)
22

3-
💼 This rule is enabled in the following configs: `angular`, `dom`, `marko`, `react`, `vue`.
3+
💼 This rule is enabled in the following configs: `angular`, `dom`, `marko`, `react`, `svelte`, `vue`.
44

55
<!-- end auto-generated rule header -->
66

docs/rules/no-container.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Disallow the use of `container` methods (`testing-library/no-container`)
22

3-
💼 This rule is enabled in the following configs: `angular`, `marko`, `react`, `vue`.
3+
💼 This rule is enabled in the following configs: `angular`, `marko`, `react`, `svelte`, `vue`.
44

55
<!-- end auto-generated rule header -->
66

docs/rules/no-debugging-utils.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Disallow the use of debugging utilities like `debug` (`testing-library/no-debugging-utils`)
22

3-
⚠️ This rule _warns_ in the following configs: `angular`, `marko`, `react`, `vue`.
3+
⚠️ This rule _warns_ in the following configs: `angular`, `marko`, `react`, `svelte`, `vue`.
44

55
<!-- end auto-generated rule header -->
66

docs/rules/no-dom-import.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Disallow importing from DOM Testing Library (`testing-library/no-dom-import`)
22

3-
💼 This rule is enabled in the following configs: `angular`, `marko`, `react`, `vue`.
3+
💼 This rule is enabled in the following configs: `angular`, `marko`, `react`, `svelte`, `vue`.
44

55
🔧 This rule is automatically fixable by the [`--fix` CLI option](https://eslint.org/docs/latest/user-guide/command-line-interface#--fix).
66

docs/rules/no-global-regexp-flag-in-query.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Disallow the use of the global RegExp flag (/g) in queries (`testing-library/no-global-regexp-flag-in-query`)
22

3-
💼 This rule is enabled in the following configs: `angular`, `dom`, `marko`, `react`, `vue`.
3+
💼 This rule is enabled in the following configs: `angular`, `dom`, `marko`, `react`, `svelte`, `vue`.
44

55
🔧 This rule is automatically fixable by the [`--fix` CLI option](https://eslint.org/docs/latest/user-guide/command-line-interface#--fix).
66

docs/rules/no-manual-cleanup.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Disallow the use of `cleanup` (`testing-library/no-manual-cleanup`)
22

3-
💼 This rule is enabled in the following configs: `react`, `vue`.
3+
💼 This rule is enabled in the following configs: `react`, `svelte`, `vue`.
44

55
<!-- end auto-generated rule header -->
66

docs/rules/no-node-access.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Disallow direct Node access (`testing-library/no-node-access`)
22

3-
💼 This rule is enabled in the following configs: `angular`, `dom`, `marko`, `react`, `vue`.
3+
💼 This rule is enabled in the following configs: `angular`, `dom`, `marko`, `react`, `svelte`, `vue`.
44

55
<!-- end auto-generated rule header -->
66

docs/rules/no-promise-in-fire-event.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Disallow the use of promises passed to a `fireEvent` method (`testing-library/no-promise-in-fire-event`)
22

3-
💼 This rule is enabled in the following configs: `angular`, `dom`, `marko`, `react`, `vue`.
3+
💼 This rule is enabled in the following configs: `angular`, `dom`, `marko`, `react`, `svelte`, `vue`.
44

55
<!-- end auto-generated rule header -->
66

docs/rules/no-render-in-lifecycle.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Disallow the use of `render` in testing frameworks setup functions (`testing-library/no-render-in-lifecycle`)
22

3-
💼 This rule is enabled in the following configs: `angular`, `marko`, `react`, `vue`.
3+
💼 This rule is enabled in the following configs: `angular`, `marko`, `react`, `svelte`, `vue`.
44

55
<!-- end auto-generated rule header -->
66

docs/rules/no-wait-for-multiple-assertions.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Disallow the use of multiple `expect` calls inside `waitFor` (`testing-library/no-wait-for-multiple-assertions`)
22

3-
💼 This rule is enabled in the following configs: `angular`, `dom`, `marko`, `react`, `vue`.
3+
💼 This rule is enabled in the following configs: `angular`, `dom`, `marko`, `react`, `svelte`, `vue`.
44

55
<!-- end auto-generated rule header -->
66

docs/rules/no-wait-for-side-effects.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Disallow the use of side effects in `waitFor` (`testing-library/no-wait-for-side-effects`)
22

3-
💼 This rule is enabled in the following configs: `angular`, `dom`, `marko`, `react`, `vue`.
3+
💼 This rule is enabled in the following configs: `angular`, `dom`, `marko`, `react`, `svelte`, `vue`.
44

55
<!-- end auto-generated rule header -->
66

docs/rules/no-wait-for-snapshot.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Ensures no snapshot is generated inside of a `waitFor` call (`testing-library/no-wait-for-snapshot`)
22

3-
💼 This rule is enabled in the following configs: `angular`, `dom`, `marko`, `react`, `vue`.
3+
💼 This rule is enabled in the following configs: `angular`, `dom`, `marko`, `react`, `svelte`, `vue`.
44

55
<!-- end auto-generated rule header -->
66

docs/rules/prefer-find-by.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Suggest using `find(All)By*` query instead of `waitFor` + `get(All)By*` to wait for elements (`testing-library/prefer-find-by`)
22

3-
💼 This rule is enabled in the following configs: `angular`, `dom`, `marko`, `react`, `vue`.
3+
💼 This rule is enabled in the following configs: `angular`, `dom`, `marko`, `react`, `svelte`, `vue`.
44

55
🔧 This rule is automatically fixable by the [`--fix` CLI option](https://eslint.org/docs/latest/user-guide/command-line-interface#--fix).
66

docs/rules/prefer-presence-queries.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Ensure appropriate `get*`/`query*` queries are used with their respective matchers (`testing-library/prefer-presence-queries`)
22

3-
💼 This rule is enabled in the following configs: `angular`, `dom`, `marko`, `react`, `vue`.
3+
💼 This rule is enabled in the following configs: `angular`, `dom`, `marko`, `react`, `svelte`, `vue`.
44

55
<!-- end auto-generated rule header -->
66

docs/rules/prefer-query-by-disappearance.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Suggest using `queryBy*` queries when waiting for disappearance (`testing-library/prefer-query-by-disappearance`)
22

3-
💼 This rule is enabled in the following configs: `angular`, `dom`, `marko`, `react`, `vue`.
3+
💼 This rule is enabled in the following configs: `angular`, `dom`, `marko`, `react`, `svelte`, `vue`.
44

55
<!-- end auto-generated rule header -->
66

docs/rules/prefer-screen-queries.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Suggest using `screen` while querying (`testing-library/prefer-screen-queries`)
22

3-
💼 This rule is enabled in the following configs: `angular`, `dom`, `marko`, `react`, `vue`.
3+
💼 This rule is enabled in the following configs: `angular`, `dom`, `marko`, `react`, `svelte`, `vue`.
44

55
<!-- end auto-generated rule header -->
66

docs/rules/render-result-naming-convention.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Enforce a valid naming for return value from `render` (`testing-library/render-result-naming-convention`)
22

3-
💼 This rule is enabled in the following configs: `angular`, `marko`, `react`, `vue`.
3+
💼 This rule is enabled in the following configs: `angular`, `marko`, `react`, `svelte`, `vue`.
44

55
<!-- end auto-generated rule header -->
66

index.d.ts

+2
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,13 @@ declare const plugin: {
1010
dom: Linter.LegacyConfig;
1111
marko: Linter.LegacyConfig;
1212
react: Linter.LegacyConfig;
13+
svelte: Linter.LegacyConfig;
1314
vue: Linter.LegacyConfig;
1415
'flat/angular': Linter.Config<Linter.RulesRecord>;
1516
'flat/dom': Linter.Config<Linter.RulesRecord>;
1617
'flat/marko': Linter.Config<Linter.RulesRecord>;
1718
'flat/react': Linter.Config<Linter.RulesRecord>;
19+
'flat/svelte': Linter.Config<Linter.RulesRecord>;
1820
'flat/vue': Linter.Config<Linter.RulesRecord>;
1921
};
2022
rules: {

tests/index.test.ts

+2
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,13 @@ it('should export configs that refer to actual rules', () => {
5151
'angular',
5252
'react',
5353
'vue',
54+
'svelte',
5455
'marko',
5556
'flat/dom',
5657
'flat/angular',
5758
'flat/react',
5859
'flat/vue',
60+
'flat/svelte',
5961
'flat/marko',
6062
]);
6163
const allConfigRules = Object.values(allConfigs)

0 commit comments

Comments
 (0)