Skip to content

Commit 4eda53b

Browse files
committed
Add linting fix support
The `modules: true` rule allows for importing of typescript-built modules such as multinetjs (which includes an `import` statement that confuses the linter somehow). The `this: any` workaround avoids yet another instance of the difficulty of typechecking object-style components in Vue 2.x.
1 parent ed2052c commit 4eda53b

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

.eslintrc.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,5 +27,8 @@ module.exports = {
2727
parserOptions: {
2828
parser: '@typescript-eslint/parser',
2929
ecmaVersion: 2020,
30+
ecmaFeatures: {
31+
modules: true,
32+
},
3033
},
3134
};

src/views/AQLWizard.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,8 @@ export default {
138138
required: true,
139139
},
140140
},
141-
data() {
141+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
142+
data(this: any) {
142143
return {
143144
query: this.$route.query.query || '',
144145
lastQueryResults: null as null | Array<JsonArray>,

0 commit comments

Comments
 (0)