File tree Expand file tree Collapse file tree 1 file changed +17
-2
lines changed Expand file tree Collapse file tree 1 file changed +17
-2
lines changed Original file line number Diff line number Diff line change 3
3
[ Svelte] parser for [ ESLint] .
4
4
You can check it on [ Online DEMO] ( https://ota-meshi.github.io/svelte-eslint-parser/playground ) .
5
5
6
- ::: *** WORKS IN PROGRESS*** :::
7
-
8
6
::: *** This Parser is still in an EXPERIMENTAL STATE*** :::
9
7
10
8
[ ![ 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:
111
109
}
112
110
```
113
111
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
+
114
129
## :computer : Editor Integrations
115
130
116
131
### Visual Studio Code
You can’t perform that action at this time.
0 commit comments