Skip to content

Commit a51e8c7

Browse files
authored
chore: use \ notation for line breaks in *.md (#1215)
1 parent 9ed51a7 commit a51e8c7

24 files changed

+48
-42
lines changed

.editorconfig

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,9 @@ end_of_line = lf
55
indent_size = 2
66
indent_style = tab
77
trim_trailing_whitespace = true
8+
9+
[docs/rules/no-trailing-spaces.md]
10+
trim_trailing_whitespace = false
11+
12+
[packages/eslint-plugin-svelte/tests/fixtures/**/*-input.svelte]
13+
trim_trailing_whitespace = false

.github/ISSUE_TEMPLATE/bug_report.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -68,13 +68,13 @@ body:
6868
attributes:
6969
label: Link to **GitHub Repo** with Minimal Reproducible Example
7070
description: |
71-
Create a minimal reproduction of the problem. **A minimal reproduction is required** so that others can help debug your issue. If a report is vague (e.g. just a generic error message) and has no reproduction, it may be closed.
72-
[Why Reproductions are Required](https://antfu.me/posts/why-reproductions-are-required)
71+
Create a minimal reproduction of the problem. **A minimal reproduction is required** so that others can help debug your issue. If a report is vague (e.g. just a generic error message) and has no reproduction, it may be closed.\
72+
[Why Reproductions are Required](https://antfu.me/posts/why-reproductions-are-required)\
7373
74-
Be sure to share the repo on GitHub. GitHub's repo is ready to debug using Codespace.
75-
Please DON'T USE non-GitHub repos such as GitLab as repro.
76-
It takes me a long time to prepare my local PC for debugging.
77-
Please DON'T USE stackblitz as a repro.
74+
Be sure to share the repo on GitHub. GitHub's repo is ready to debug using Codespace.\
75+
Please DON'T USE non-GitHub repos such as GitLab as repro.\
76+
It takes me a long time to prepare my local PC for debugging.\
77+
Please DON'T USE stackblitz as a repro.\
7878
We can't debug eslint with stackblitz.
7979
placeholder: |
8080
https://github.com/[your]/[repo]

.github/ISSUE_TEMPLATE/feature_request.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ body:
77
attributes:
88
label: Description
99
description: |
10-
A clear and concise description of the new feature.
10+
A clear and concise description of the new feature.\
1111
Also give a few code examples.
1212
validations:
1313
required: true

CONTRIBUTING.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ Rule tests typically use fixtures. For example, for the `indent` rule, the test
3434
- The `invalid` directory contains test cases where the rule should report errors.
3535
- The `valid` directory contains test cases where no errors are reported.
3636

37-
Fixture input files should be named `*-input.svelte` and are automatically collected.
37+
Fixture input files should be named `*-input.svelte` and are automatically collected.\
3838
If configuration is needed, include a JSON file:
3939

4040
- For a specific test file (e.g., `my-test-input.svelte`), add `my-test-config.json`.
@@ -52,7 +52,7 @@ pnpm run test -- -g indent
5252

5353
Refer to [this Stack Overflow post](https://stackoverflow.com/questions/10832031/how-to-run-a-single-test-with-mocha) for details.
5454

55-
To test a single file (e.g., `my-test-input.svelte`), add a `my-test-config.json` with `{"only": true}`.
55+
To test a single file (e.g., `my-test-input.svelte`), add a `my-test-config.json` with `{"only": true}`.
5656
(Remember to remove `{"only": true}` before submitting a pull request.)
5757

5858
## Preview Docs

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@
3030

3131
## Introduction
3232

33-
`eslint-plugin-svelte` is the official [ESLint](https://eslint.org/) plugin for [Svelte](https://svelte.dev/).
34-
It leverages the AST generated by [svelte-eslint-parser](https://github.com/sveltejs/svelte-eslint-parser) to provide custom linting for Svelte.
33+
`eslint-plugin-svelte` is the official [ESLint](https://eslint.org/) plugin for [Svelte](https://svelte.dev/).\
34+
It leverages the AST generated by [svelte-eslint-parser](https://github.com/sveltejs/svelte-eslint-parser) to provide custom linting for Svelte.\
3535
Note that `eslint-plugin-svelte` and `svelte-eslint-parser` cannot be used alongside [eslint-plugin-svelte3](https://github.com/sveltejs/eslint-plugin-svelte3).
3636

3737
<!--USAGE_SECTION_START-->
@@ -219,8 +219,8 @@ export default [
219219

220220
## Editor Integrations
221221

222-
**Visual Studio Code**
223-
Install [dbaeumer.vscode-eslint](https://marketplace.visualstudio.com/items?itemName=dbaeumer.vscode-eslint).
222+
**Visual Studio Code**\
223+
Install [dbaeumer.vscode-eslint](https://marketplace.visualstudio.com/items?itemName=dbaeumer.vscode-eslint).\
224224
Configure `.svelte` files in `.vscode/settings.json`:
225225

226226
```json
@@ -247,8 +247,8 @@ This project follows [Semantic Versioning](https://semver.org/). Unlike [ESLint
247247
<!-- prettier-ignore-start -->
248248
<!--RULES_SECTION_START-->
249249

250-
:wrench: Indicates that the rule is fixable, and using `--fix` option on the [command line](https://eslint.org/docs/user-guide/command-line-interface#fixing-problems) can automatically fix some of the reported problems.
251-
:bulb: Indicates that some problems reported by the rule are manually fixable by editor [suggestions](https://eslint.org/docs/developer-guide/working-with-rules#providing-suggestions).
250+
:wrench: Indicates that the rule is fixable, and using `--fix` option on the [command line](https://eslint.org/docs/user-guide/command-line-interface#fixing-problems) can automatically fix some of the reported problems.\
251+
:bulb: Indicates that some problems reported by the rule are manually fixable by editor [suggestions](https://eslint.org/docs/developer-guide/working-with-rules#providing-suggestions).\
252252
:star: Indicates that the rule is included in the `plugin:svelte/recommended` config.
253253

254254
<!--RULES_TABLE_START-->
@@ -400,7 +400,7 @@ These rules relate to this plugin works:
400400

401401
## Contributing
402402

403-
Contributions are welcome! Please open an issue or submit a PR. For more details, see [CONTRIBUTING.md](./CONTRIBUTING.md).
403+
Contributions are welcome! Please open an issue or submit a PR. For more details, see [CONTRIBUTING.md](./CONTRIBUTING.md).\
404404
Refer to [svelte-eslint-parser](https://github.com/sveltejs/svelte-eslint-parser) for AST details.
405405

406406
<!--DOCS_IGNORE_END-->

docs/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ title: 'eslint-plugin-svelte'
44

55
## Introduction
66

7-
`eslint-plugin-svelte` is the official [ESLint](https://eslint.org/) plugin for [Svelte](https://svelte.dev/).
8-
It leverages the AST generated by [svelte-eslint-parser](https://github.com/sveltejs/svelte-eslint-parser) to provide custom linting for Svelte.
7+
`eslint-plugin-svelte` is the official [ESLint](https://eslint.org/) plugin for [Svelte](https://svelte.dev/).\
8+
It leverages the AST generated by [svelte-eslint-parser](https://github.com/sveltejs/svelte-eslint-parser) to provide custom linting for Svelte.\
99
Note that `eslint-plugin-svelte` and `svelte-eslint-parser` cannot be used alongside [eslint-plugin-svelte3](https://github.com/sveltejs/eslint-plugin-svelte3).
1010

1111
See [User Guide](./user-guide.md).

docs/migration.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ Therefore, you need to replace the package name, and the presets, rules, and set
6565

6666
## From `eslint-plugin-svelte` v2 To v3
6767

68-
This section explains the necessary changes when upgrading from `eslint-plugin-svelte` v2 to v3.
68+
This section explains the necessary changes when upgrading from `eslint-plugin-svelte` v2 to v3.\
6969
v3 includes **support for ESLint Flat Config only**, **changes to the recommended rule set**, and other breaking changes.
7070

7171
---

docs/rules.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ sidebarDepth: 0
44

55
# Available Rules
66

7-
:wrench: Indicates that the rule is fixable, and using `--fix` option on the [command line](https://eslint.org/docs/user-guide/command-line-interface#fixing-problems) can automatically fix some of the reported problems.
8-
:bulb: Indicates that some problems reported by the rule are manually fixable by editor [suggestions](https://eslint.org/docs/developer-guide/working-with-rules#providing-suggestions).
7+
:wrench: Indicates that the rule is fixable, and using `--fix` option on the [command line](https://eslint.org/docs/user-guide/command-line-interface#fixing-problems) can automatically fix some of the reported problems.\
8+
:bulb: Indicates that some problems reported by the rule are manually fixable by editor [suggestions](https://eslint.org/docs/developer-guide/working-with-rules#providing-suggestions).\
99
:star: Indicates that the rule is included in the `plugin:svelte/recommended` config.
1010

1111
<!-- This file is automatically generated in tools/update-docs-rules-index.js, do not change! -->

docs/rules/no-dynamic-slot-name.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ since: 'v0.14.0'
1515

1616
## :book: Rule Details
1717

18-
This rule reports the dynamically specified `<slot>` name.
18+
This rule reports the dynamically specified `<slot>` name.\
1919
Dynamic `<slot>` names are not allowed in Svelte, so you must use static names.
2020

2121
The auto-fix of this rule can be replaced with a static `<slot>` name if the expression given to the `<slot>` name is static and resolvable.

docs/rules/no-extra-reactive-curlies.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ Nothing.
3838

3939
## :heart: Compatibility
4040

41-
This rule was taken from [@tivac/eslint-plugin-svelte].
41+
This rule was taken from [@tivac/eslint-plugin-svelte].\
4242
This rule is compatible with `@tivac/svelte/reactive-curlies` rule.
4343

4444
[@tivac/eslint-plugin-svelte]: https://github.com/tivac/eslint-plugin-svelte/

0 commit comments

Comments
 (0)