File tree 1 file changed +12
-1
lines changed
1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change 1
1
module . exports = {
2
2
plugins : [ '@typescript-eslint' ] ,
3
+
3
4
// Prerequisite `eslint-plugin-vue`, being extended, sets
4
5
// root property `parser` to `'vue-eslint-parser'`, which, for code parsing,
5
6
// in turn delegates to the parser, specified in `parserOptions.parser`:
6
7
// https://github.com/vuejs/eslint-plugin-vue#what-is-the-use-the-latest-vue-eslint-parser-error
7
8
parserOptions : {
8
- parser : require . resolve ( '@typescript-eslint/parser' ) ,
9
+ parser : {
10
+ 'js' : 'espree' ,
11
+ 'jsx' : 'espree' ,
12
+
13
+ 'ts' : require . resolve ( '@typescript-eslint/parser' ) ,
14
+ 'tsx' : require . resolve ( '@typescript-eslint/parser' ) ,
15
+
16
+ // Leave the template parser unspecified, so that it could be determined by `<script lang="...">`
17
+ } ,
9
18
extraFileExtensions : [ '.vue' ] ,
10
19
ecmaFeatures : {
11
20
jsx : true
12
21
}
13
22
} ,
23
+
14
24
extends : [
15
25
'plugin:@typescript-eslint/eslint-recommended'
16
26
] ,
27
+
17
28
overrides : [
18
29
{
19
30
files : [ '*.ts' , '*.tsx' ] ,
You can’t perform that action at this time.
0 commit comments