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 33[ Svelte] parser for [ ESLint] .
44You 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
You can’t perform that action at this time.
0 commit comments