Skip to content

Commit f13e307

Browse files
ota-meshibaseballyamadummdidumm
authored
chore: update README.md (#321)
* Update README.md * Update README.md Co-authored-by: Simon H <[email protected]> --------- Co-authored-by: Yuichiro Yamashita <[email protected]> Co-authored-by: Simon H <[email protected]>
1 parent 0a5443a commit f13e307

File tree

1 file changed

+2
-17
lines changed

1 file changed

+2
-17
lines changed

README.md

+2-17
Original file line numberDiff line numberDiff line change
@@ -13,30 +13,15 @@ You can check it on [Online DEMO](https://sveltejs.github.io/svelte-eslint-parse
1313
[![Build Status](https://github.com/sveltejs/svelte-eslint-parser/workflows/CI/badge.svg?branch=main)](https://github.com/sveltejs/svelte-eslint-parser/actions?query=workflow%3ACI)
1414
[![Coverage Status](https://coveralls.io/repos/github/sveltejs/svelte-eslint-parser/badge.svg?branch=main)](https://coveralls.io/github/sveltejs/svelte-eslint-parser?branch=main)
1515

16-
## ❓ Why?
16+
## ⤴️ Motivation
1717

18-
[Svelte] has the official ESLint plugin the [eslint-plugin-svelte3]. The [eslint-plugin-svelte3] works well enough to check scripts. However, it does not handle the AST of the template, which makes it very difficult for third parties to create their own the [ESLint] rules for the [Svelte].
19-
20-
The [svelte-eslint-parser] aims to make it easy to create your own rules for the [Svelte] by allowing the template AST to be used in the rules.
18+
The [svelte-eslint-parser] aims to make it easy to create your own ESLint rules for [Svelte].
2119

2220
The [`eslint-plugin-svelte`] is an ESLint plugin that uses the [svelte-eslint-parser]. I have already [implemented some rules].
2321

2422
[`eslint-plugin-svelte`]: https://github.com/sveltejs/eslint-plugin-svelte
2523
[implemented some rules]: https://sveltejs.github.io/eslint-plugin-svelte/rules/
2624

27-
### Benefits of Using AST
28-
29-
- We can create rules using the information contained in the AST.
30-
e.g.
31-
- [svelte/no-dupe-else-if-blocks](https://sveltejs.github.io/eslint-plugin-svelte/rules/no-dupe-else-if-blocks/) rule
32-
- [svelte/no-at-html-tags](https://sveltejs.github.io/eslint-plugin-svelte/rules/no-at-html-tags/) rule
33-
- [svelte/no-at-debug-tags](https://sveltejs.github.io/eslint-plugin-svelte/rules/no-at-debug-tags/) rule
34-
- Rules that use text work well.
35-
e.g.
36-
- [eol-last](https://eslint.org/docs/rules/eol-last) rule
37-
- [unicode-bom](https://eslint.org/docs/rules/unicode-bom) rule
38-
- [eslint-plugin-prettier](https://github.com/prettier/eslint-plugin-prettier)
39-
4025
### ESLint Plugins Using svelte-eslint-parser
4126

4227
#### [eslint-plugin-svelte](https://sveltejs.github.io/eslint-plugin-svelte/)

0 commit comments

Comments
 (0)