Skip to content

Commit bc99c6a

Browse files
committed
update doc
1 parent 064a38e commit bc99c6a

File tree

1 file changed

+17
-2
lines changed

1 file changed

+17
-2
lines changed

README.md

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33
[Svelte] parser for [ESLint].
44
You can check it on [Online DEMO](https://ota-meshi.github.io/svelte-eslint-parser/playground).
55

6-
::: ***WORKS IN PROGRESS*** :::
7-
86
::: ***This Parser is still in an EXPERIMENTAL STATE*** :::
97

108
[![NPM license](https://img.shields.io/npm/l/svelte-eslint-parser.svg)](https://www.npmjs.com/package/svelte-eslint-parser)
@@ -111,6 +109,23 @@ For example:
111109
}
112110
```
113111

112+
#### Multiple parsers
113+
114+
If you want to switch the parser for each lang, specify the object.
115+
116+
```json
117+
{
118+
"parser": "svelte-eslint-parser",
119+
"parserOptions": {
120+
"parser": {
121+
"ts": "@typescript-eslint/parser",
122+
"js": "espree",
123+
"typescript": "@typescript-eslint/parser"
124+
}
125+
}
126+
}
127+
```
128+
114129
## :computer: Editor Integrations
115130

116131
### Visual Studio Code

0 commit comments

Comments
 (0)