eslint-plugin-vue: Not compatible with typescript-eslint
Tell us about your environment
- ESLint version: 5.13.0
- eslint-plugin-vue version: 5.1.0
- Node version: 6.7.0
Please show your full configuration:
module.exports = {
root: true,
parserOptions: {
parser: "@typescript-eslint/parser",
},
env: {
browser: true,
},
extends: [
"plugin:vue/recommended",
"@vue/prettier",
"@vue/typescript",
"plugin:prettier/recommended",
"plugin:@typescript-eslint/recommended",
],
// required to lint *.vue files
plugins: [
"vue",
"@typescript-eslint"
],
// add your custom rules here
rules: {
// allow async-await
"generator-star-spacing": "off",
// allow debugger during development
"no-debugger": process.env.NODE_ENV === "production" ? "error" : "off",
"no-console": process.env.NODE_ENV === "production" ? "error" : "off",
}
}
What did you do?
Added typescript-eslint
plugin so that I could get linting support for non-vue .ts files
What did you expect to happen? Expected Vue files to still be linted as usual, but now with .ts files also being linted
What actually happened?
> brazeui@1.0.0 lint /Users/forrest.hopkins/Documents/projects/braze/src/frontend
> eslint --ext .js,.vue src test/unit test/e2e/specs
/Users/forrest.hopkins/Documents/projects/braze/src/frontend/src/App.vue
5:39 error Parsing error: Identifier expected
/Users/forrest.hopkins/Documents/projects/braze/src/frontend/src/components/AddBtn.vue
2:46 error Parsing error: Identifier expected
/Users/forrest.hopkins/Documents/projects/braze/src/frontend/src/components/AddDialog.vue
2:11 error Parsing error: Identifier expected
/Users/forrest.hopkins/Documents/projects/braze/src/frontend/src/components/DataTable.vue
3:2 error Parsing error: Identifier expected
/Users/forrest.hopkins/Documents/projects/braze/src/frontend/src/components/ExpandDetails.vue
3:21 error Parsing error: Identifier expected
/Users/forrest.hopkins/Documents/projects/braze/src/frontend/src/components/IncludedList.vue
4:37 error Parsing error: Identifier expected
/Users/forrest.hopkins/Documents/projects/braze/src/frontend/src/components/ModTable.vue
6:4 error Parsing error: Identifier expected
/Users/forrest.hopkins/Documents/projects/braze/src/frontend/src/components/PackTable.vue
6:4 error Parsing error: Identifier expected
/Users/forrest.hopkins/Documents/projects/braze/src/frontend/src/components/PackVersionDialog.vue
2:11 error Parsing error: Identifier expected
/Users/forrest.hopkins/Documents/projects/braze/src/frontend/src/components/RootCard.vue
9:8 error Parsing error: Identifier expected
/Users/forrest.hopkins/Documents/projects/braze/src/frontend/src/components/Snackbar.vue
2:37 error Parsing error: Identifier expected
/Users/forrest.hopkins/Documents/projects/braze/src/frontend/test/unit/jest.conf.js
1:1 error Use the latest vue-eslint-parser. See also https://vuejs.github.io/eslint-plugin-vue/user-guide/#what-is-the-use-the-latest-vue-eslint-parser-error vue/no-duplicate-attributes
1:1 error Use the latest vue-eslint-parser. See also https://vuejs.github.io/eslint-plugin-vue/user-guide/#what-is-the-use-the-latest-vue-eslint-parser-error vue/no-template-key
1:1 error Use the latest vue-eslint-parser. See also https://vuejs.github.io/eslint-plugin-vue/user-guide/#what-is-the-use-the-latest-vue-eslint-parser-error vue/no-textarea-mustache
1:1 error Use the latest vue-eslint-parser. See also https://vuejs.github.io/eslint-plugin-vue/user-guide/#what-is-the-use-the-latest-vue-eslint-parser-error vue/no-unused-components
1:1 error Use the latest vue-eslint-parser. See also https://vuejs.github.io/eslint-plugin-vue/user-guide/#what-is-the-use-the-latest-vue-eslint-parser-error vue/no-unused-vars
1:1 error Use the latest vue-eslint-parser. See also https://vuejs.github.io/eslint-plugin-vue/user-guide/#what-is-the-use-the-latest-vue-eslint-parser-error vue/no-use-v-if-with-v-for
1:1 error Use the latest vue-eslint-parser. See also https://vuejs.github.io/eslint-plugin-vue/user-guide/#what-is-the-use-the-latest-vue-eslint-parser-error vue/require-component-is
1:1 error Use the latest vue-eslint-parser. See also https://vuejs.github.io/eslint-plugin-vue/user-guide/#what-is-the-use-the-latest-vue-eslint-parser-error vue/require-v-for-key
1:1 error Use the latest vue-eslint-parser. See also https://vuejs.github.io/eslint-plugin-vue/user-guide/#what-is-the-use-the-latest-vue-eslint-parser-error vue/use-v-on-exact
1:1 error Use the latest vue-eslint-parser. See also https://vuejs.github.io/eslint-plugin-vue/user-guide/#what-is-the-use-the-latest-vue-eslint-parser-error vue/valid-v-bind
1:1 error Use the latest vue-eslint-parser. See also https://vuejs.github.io/eslint-plugin-vue/user-guide/#what-is-the-use-the-latest-vue-eslint-parser-error vue/valid-v-cloak
1:1 error Use the latest vue-eslint-parser. See also https://vuejs.github.io/eslint-plugin-vue/user-guide/#what-is-the-use-the-latest-vue-eslint-parser-error vue/valid-v-else-if
1:1 error Use the latest vue-eslint-parser. See also https://vuejs.github.io/eslint-plugin-vue/user-guide/#what-is-the-use-the-latest-vue-eslint-parser-error vue/valid-v-else
1:1 error Use the latest vue-eslint-parser. See also https://vuejs.github.io/eslint-plugin-vue/user-guide/#what-is-the-use-the-latest-vue-eslint-parser-error vue/valid-v-for
1:1 error Use the latest vue-eslint-parser. See also https://vuejs.github.io/eslint-plugin-vue/user-guide/#what-is-the-use-the-latest-vue-eslint-parser-error vue/valid-v-html
1:1 error Use the latest vue-eslint-parser. See also https://vuejs.github.io/eslint-plugin-vue/user-guide/#what-is-the-use-the-latest-vue-eslint-parser-error vue/valid-v-if
1:1 error Use the latest vue-eslint-parser. See also https://vuejs.github.io/eslint-plugin-vue/user-guide/#what-is-the-use-the-latest-vue-eslint-parser-error vue/valid-v-model
1:1 error Use the latest vue-eslint-parser. See also https://vuejs.github.io/eslint-plugin-vue/user-guide/#what-is-the-use-the-latest-vue-eslint-parser-error vue/valid-v-on
1:1 error Use the latest vue-eslint-parser. See also https://vuejs.github.io/eslint-plugin-vue/user-guide/#what-is-the-use-the-latest-vue-eslint-parser-error vue/valid-v-once
1:1 error Use the latest vue-eslint-parser. See also https://vuejs.github.io/eslint-plugin-vue/user-guide/#what-is-the-use-the-latest-vue-eslint-parser-error vue/valid-v-pre
1:1 error Use the latest vue-eslint-parser. See also https://vuejs.github.io/eslint-plugin-vue/user-guide/#what-is-the-use-the-latest-vue-eslint-parser-error vue/valid-v-show
1:1 error Use the latest vue-eslint-parser. See also https://vuejs.github.io/eslint-plugin-vue/user-guide/#what-is-the-use-the-latest-vue-eslint-parser-error vue/valid-v-text
1:1 warning Use the latest vue-eslint-parser. See also https://vuejs.github.io/eslint-plugin-vue/user-guide/#what-is-the-use-the-latest-vue-eslint-parser-error vue/attribute-hyphenation
1:1 warning Use the latest vue-eslint-parser. See also https://vuejs.github.io/eslint-plugin-vue/user-guide/#what-is-the-use-the-latest-vue-eslint-parser-error vue/no-template-shadow
1:1 warning Use the latest vue-eslint-parser. See also https://vuejs.github.io/eslint-plugin-vue/user-guide/#what-is-the-use-the-latest-vue-eslint-parser-error vue/v-bind-style
1:1 warning Use the latest vue-eslint-parser. See also https://vuejs.github.io/eslint-plugin-vue/user-guide/#what-is-the-use-the-latest-vue-eslint-parser-error vue/v-on-style
1:1 warning Use the latest vue-eslint-parser. See also https://vuejs.github.io/eslint-plugin-vue/user-guide/#what-is-the-use-the-latest-vue-eslint-parser-error vue/attributes-order
1:1 warning Use the latest vue-eslint-parser. See also https://vuejs.github.io/eslint-plugin-vue/user-guide/#what-is-the-use-the-latest-vue-eslint-parser-error vue/no-v-html
1:1 warning Use the latest vue-eslint-parser. See also https://vuejs.github.io/eslint-plugin-vue/user-guide/#what-is-the-use-the-latest-vue-eslint-parser-error vue/this-in-template
1:14 error Require statement not part of import statement @typescript-eslint/no-var-requires
4:1 error Expected indentation of 4 spaces but found 1 tab @typescript-eslint/indent
5:1 error Expected indentation of 4 spaces but found 1 tab @typescript-eslint/indent
6:1 error Expected indentation of 4 spaces but found 1 tab @typescript-eslint/indent
7:1 error Expected indentation of 8 spaces but found 2 tabs @typescript-eslint/indent
8:1 error Expected indentation of 4 spaces but found 1 tab @typescript-eslint/indent
9:1 error Expected indentation of 4 spaces but found 1 tab @typescript-eslint/indent
10:1 error Expected indentation of 8 spaces but found 2 tabs @typescript-eslint/indent
11:1 error Expected indentation of 8 spaces but found 2 tabs @typescript-eslint/indent
12:1 error Expected indentation of 4 spaces but found 1 tab @typescript-eslint/indent
13:1 error Expected indentation of 4 spaces but found 1 tab @typescript-eslint/indent
14:1 error Expected indentation of 4 spaces but found 1 tab @typescript-eslint/indent
15:1 error Expected indentation of 4 spaces but found 1 tab @typescript-eslint/indent
16:1 error Expected indentation of 4 spaces but found 1 tab @typescript-eslint/indent
17:1 error Expected indentation of 4 spaces but found 1 tab @typescript-eslint/indent
18:1 error Expected indentation of 4 spaces but found 1 tab @typescript-eslint/indent
19:1 error Expected indentation of 8 spaces but found 2 tabs @typescript-eslint/indent
20:1 error Expected indentation of 8 spaces but found 2 tabs @typescript-eslint/indent
21:1 error Expected indentation of 8 spaces but found 2 tabs @typescript-eslint/indent
22:1 error Expected indentation of 8 spaces but found 2 tabs @typescript-eslint/indent
23:1 error Expected indentation of 4 spaces but found 1 tab @typescript-eslint/indent
/Users/forrest.hopkins/Documents/projects/braze/src/frontend/test/unit/setup.js
1:1 error Use the latest vue-eslint-parser. See also https://vuejs.github.io/eslint-plugin-vue/user-guide/#what-is-the-use-the-latest-vue-eslint-parser-error vue/no-duplicate-attributes
1:1 error Use the latest vue-eslint-parser. See also https://vuejs.github.io/eslint-plugin-vue/user-guide/#what-is-the-use-the-latest-vue-eslint-parser-error vue/no-template-key
1:1 error Use the latest vue-eslint-parser. See also https://vuejs.github.io/eslint-plugin-vue/user-guide/#what-is-the-use-the-latest-vue-eslint-parser-error vue/no-textarea-mustache
1:1 error Use the latest vue-eslint-parser. See also https://vuejs.github.io/eslint-plugin-vue/user-guide/#what-is-the-use-the-latest-vue-eslint-parser-error vue/no-unused-components
1:1 error Use the latest vue-eslint-parser. See also https://vuejs.github.io/eslint-plugin-vue/user-guide/#what-is-the-use-the-latest-vue-eslint-parser-error vue/no-unused-vars
1:1 error Use the latest vue-eslint-parser. See also https://vuejs.github.io/eslint-plugin-vue/user-guide/#what-is-the-use-the-latest-vue-eslint-parser-error vue/no-use-v-if-with-v-for
1:1 error Use the latest vue-eslint-parser. See also https://vuejs.github.io/eslint-plugin-vue/user-guide/#what-is-the-use-the-latest-vue-eslint-parser-error vue/require-component-is
1:1 error Use the latest vue-eslint-parser. See also https://vuejs.github.io/eslint-plugin-vue/user-guide/#what-is-the-use-the-latest-vue-eslint-parser-error vue/require-v-for-key
1:1 error Use the latest vue-eslint-parser. See also https://vuejs.github.io/eslint-plugin-vue/user-guide/#what-is-the-use-the-latest-vue-eslint-parser-error vue/use-v-on-exact
1:1 error Use the latest vue-eslint-parser. See also https://vuejs.github.io/eslint-plugin-vue/user-guide/#what-is-the-use-the-latest-vue-eslint-parser-error vue/valid-v-bind
1:1 error Use the latest vue-eslint-parser. See also https://vuejs.github.io/eslint-plugin-vue/user-guide/#what-is-the-use-the-latest-vue-eslint-parser-error vue/valid-v-cloak
1:1 error Use the latest vue-eslint-parser. See also https://vuejs.github.io/eslint-plugin-vue/user-guide/#what-is-the-use-the-latest-vue-eslint-parser-error vue/valid-v-else-if
1:1 error Use the latest vue-eslint-parser. See also https://vuejs.github.io/eslint-plugin-vue/user-guide/#what-is-the-use-the-latest-vue-eslint-parser-error vue/valid-v-else
1:1 error Use the latest vue-eslint-parser. See also https://vuejs.github.io/eslint-plugin-vue/user-guide/#what-is-the-use-the-latest-vue-eslint-parser-error vue/valid-v-for
1:1 error Use the latest vue-eslint-parser. See also https://vuejs.github.io/eslint-plugin-vue/user-guide/#what-is-the-use-the-latest-vue-eslint-parser-error vue/valid-v-html
1:1 error Use the latest vue-eslint-parser. See also https://vuejs.github.io/eslint-plugin-vue/user-guide/#what-is-the-use-the-latest-vue-eslint-parser-error vue/valid-v-if
1:1 error Use the latest vue-eslint-parser. See also https://vuejs.github.io/eslint-plugin-vue/user-guide/#what-is-the-use-the-latest-vue-eslint-parser-error vue/valid-v-model
1:1 error Use the latest vue-eslint-parser. See also https://vuejs.github.io/eslint-plugin-vue/user-guide/#what-is-the-use-the-latest-vue-eslint-parser-error vue/valid-v-on
1:1 error Use the latest vue-eslint-parser. See also https://vuejs.github.io/eslint-plugin-vue/user-guide/#what-is-the-use-the-latest-vue-eslint-parser-error vue/valid-v-once
1:1 error Use the latest vue-eslint-parser. See also https://vuejs.github.io/eslint-plugin-vue/user-guide/#what-is-the-use-the-latest-vue-eslint-parser-error vue/valid-v-pre
1:1 error Use the latest vue-eslint-parser. See also https://vuejs.github.io/eslint-plugin-vue/user-guide/#what-is-the-use-the-latest-vue-eslint-parser-error vue/valid-v-show
1:1 error Use the latest vue-eslint-parser. See also https://vuejs.github.io/eslint-plugin-vue/user-guide/#what-is-the-use-the-latest-vue-eslint-parser-error vue/valid-v-text
1:1 warning Use the latest vue-eslint-parser. See also https://vuejs.github.io/eslint-plugin-vue/user-guide/#what-is-the-use-the-latest-vue-eslint-parser-error vue/attribute-hyphenation
1:1 warning Use the latest vue-eslint-parser. See also https://vuejs.github.io/eslint-plugin-vue/user-guide/#what-is-the-use-the-latest-vue-eslint-parser-error vue/no-template-shadow
1:1 warning Use the latest vue-eslint-parser. See also https://vuejs.github.io/eslint-plugin-vue/user-guide/#what-is-the-use-the-latest-vue-eslint-parser-error vue/v-bind-style
1:1 warning Use the latest vue-eslint-parser. See also https://vuejs.github.io/eslint-plugin-vue/user-guide/#what-is-the-use-the-latest-vue-eslint-parser-error vue/v-on-style
1:1 warning Use the latest vue-eslint-parser. See also https://vuejs.github.io/eslint-plugin-vue/user-guide/#what-is-the-use-the-latest-vue-eslint-parser-error vue/attributes-order
1:1 warning Use the latest vue-eslint-parser. See also https://vuejs.github.io/eslint-plugin-vue/user-guide/#what-is-the-use-the-latest-vue-eslint-parser-error vue/no-v-html
1:1 warning Use the latest vue-eslint-parser. See also https://vuejs.github.io/eslint-plugin-vue/user-guide/#what-is-the-use-the-latest-vue-eslint-parser-error vue/this-in-template
/Users/forrest.hopkins/Documents/projects/braze/src/frontend/test/unit/specs/HelloWorld.spec.js
1:1 error Use the latest vue-eslint-parser. See also https://vuejs.github.io/eslint-plugin-vue/user-guide/#what-is-the-use-the-latest-vue-eslint-parser-error vue/no-duplicate-attributes
1:1 error Use the latest vue-eslint-parser. See also https://vuejs.github.io/eslint-plugin-vue/user-guide/#what-is-the-use-the-latest-vue-eslint-parser-error vue/no-template-key
1:1 error Use the latest vue-eslint-parser. See also https://vuejs.github.io/eslint-plugin-vue/user-guide/#what-is-the-use-the-latest-vue-eslint-parser-error vue/no-textarea-mustache
1:1 error Use the latest vue-eslint-parser. See also https://vuejs.github.io/eslint-plugin-vue/user-guide/#what-is-the-use-the-latest-vue-eslint-parser-error vue/no-unused-components
1:1 error Use the latest vue-eslint-parser. See also https://vuejs.github.io/eslint-plugin-vue/user-guide/#what-is-the-use-the-latest-vue-eslint-parser-error vue/no-unused-vars
1:1 error Use the latest vue-eslint-parser. See also https://vuejs.github.io/eslint-plugin-vue/user-guide/#what-is-the-use-the-latest-vue-eslint-parser-error vue/no-use-v-if-with-v-for
1:1 error Use the latest vue-eslint-parser. See also https://vuejs.github.io/eslint-plugin-vue/user-guide/#what-is-the-use-the-latest-vue-eslint-parser-error vue/require-component-is
1:1 error Use the latest vue-eslint-parser. See also https://vuejs.github.io/eslint-plugin-vue/user-guide/#what-is-the-use-the-latest-vue-eslint-parser-error vue/require-v-for-key
1:1 error Use the latest vue-eslint-parser. See also https://vuejs.github.io/eslint-plugin-vue/user-guide/#what-is-the-use-the-latest-vue-eslint-parser-error vue/use-v-on-exact
1:1 error Use the latest vue-eslint-parser. See also https://vuejs.github.io/eslint-plugin-vue/user-guide/#what-is-the-use-the-latest-vue-eslint-parser-error vue/valid-v-bind
1:1 error Use the latest vue-eslint-parser. See also https://vuejs.github.io/eslint-plugin-vue/user-guide/#what-is-the-use-the-latest-vue-eslint-parser-error vue/valid-v-cloak
1:1 error Use the latest vue-eslint-parser. See also https://vuejs.github.io/eslint-plugin-vue/user-guide/#what-is-the-use-the-latest-vue-eslint-parser-error vue/valid-v-else-if
1:1 error Use the latest vue-eslint-parser. See also https://vuejs.github.io/eslint-plugin-vue/user-guide/#what-is-the-use-the-latest-vue-eslint-parser-error vue/valid-v-else
1:1 error Use the latest vue-eslint-parser. See also https://vuejs.github.io/eslint-plugin-vue/user-guide/#what-is-the-use-the-latest-vue-eslint-parser-error vue/valid-v-for
1:1 error Use the latest vue-eslint-parser. See also https://vuejs.github.io/eslint-plugin-vue/user-guide/#what-is-the-use-the-latest-vue-eslint-parser-error vue/valid-v-html
1:1 error Use the latest vue-eslint-parser. See also https://vuejs.github.io/eslint-plugin-vue/user-guide/#what-is-the-use-the-latest-vue-eslint-parser-error vue/valid-v-if
1:1 error Use the latest vue-eslint-parser. See also https://vuejs.github.io/eslint-plugin-vue/user-guide/#what-is-the-use-the-latest-vue-eslint-parser-error vue/valid-v-model
1:1 error Use the latest vue-eslint-parser. See also https://vuejs.github.io/eslint-plugin-vue/user-guide/#what-is-the-use-the-latest-vue-eslint-parser-error vue/valid-v-on
1:1 error Use the latest vue-eslint-parser. See also https://vuejs.github.io/eslint-plugin-vue/user-guide/#what-is-the-use-the-latest-vue-eslint-parser-error vue/valid-v-once
1:1 error Use the latest vue-eslint-parser. See also https://vuejs.github.io/eslint-plugin-vue/user-guide/#what-is-the-use-the-latest-vue-eslint-parser-error vue/valid-v-pre
1:1 error Use the latest vue-eslint-parser. See also https://vuejs.github.io/eslint-plugin-vue/user-guide/#what-is-the-use-the-latest-vue-eslint-parser-error vue/valid-v-show
1:1 error Use the latest vue-eslint-parser. See also https://vuejs.github.io/eslint-plugin-vue/user-guide/#what-is-the-use-the-latest-vue-eslint-parser-error vue/valid-v-text
1:1 warning Use the latest vue-eslint-parser. See also https://vuejs.github.io/eslint-plugin-vue/user-guide/#what-is-the-use-the-latest-vue-eslint-parser-error vue/attribute-hyphenation
1:1 warning Use the latest vue-eslint-parser. See also https://vuejs.github.io/eslint-plugin-vue/user-guide/#what-is-the-use-the-latest-vue-eslint-parser-error vue/no-template-shadow
1:1 warning Use the latest vue-eslint-parser. See also https://vuejs.github.io/eslint-plugin-vue/user-guide/#what-is-the-use-the-latest-vue-eslint-parser-error vue/v-bind-style
1:1 warning Use the latest vue-eslint-parser. See also https://vuejs.github.io/eslint-plugin-vue/user-guide/#what-is-the-use-the-latest-vue-eslint-parser-error vue/v-on-style
1:1 warning Use the latest vue-eslint-parser. See also https://vuejs.github.io/eslint-plugin-vue/user-guide/#what-is-the-use-the-latest-vue-eslint-parser-error vue/attributes-order
1:1 warning Use the latest vue-eslint-parser. See also https://vuejs.github.io/eslint-plugin-vue/user-guide/#what-is-the-use-the-latest-vue-eslint-parser-error vue/no-v-html
1:1 warning Use the latest vue-eslint-parser. See also https://vuejs.github.io/eslint-plugin-vue/user-guide/#what-is-the-use-the-latest-vue-eslint-parser-error vue/this-in-template
5:1 error Expected indentation of 4 spaces but found 1 tab @typescript-eslint/indent
6:1 error Expected indentation of 8 spaces but found 2 tabs @typescript-eslint/indent
7:1 error Expected indentation of 8 spaces but found 2 tabs @typescript-eslint/indent
8:1 error Expected indentation of 8 spaces but found 2 tabs @typescript-eslint/indent
9:1 error Expected indentation of 4 spaces but found 1 tab @typescript-eslint/indent
/Users/forrest.hopkins/Documents/projects/braze/src/frontend/test/e2e/specs/test.js
1:1 error Use the latest vue-eslint-parser. See also https://vuejs.github.io/eslint-plugin-vue/user-guide/#what-is-the-use-the-latest-vue-eslint-parser-error vue/no-duplicate-attributes
1:1 error Use the latest vue-eslint-parser. See also https://vuejs.github.io/eslint-plugin-vue/user-guide/#what-is-the-use-the-latest-vue-eslint-parser-error vue/no-template-key
1:1 error Use the latest vue-eslint-parser. See also https://vuejs.github.io/eslint-plugin-vue/user-guide/#what-is-the-use-the-latest-vue-eslint-parser-error vue/no-textarea-mustache
1:1 error Use the latest vue-eslint-parser. See also https://vuejs.github.io/eslint-plugin-vue/user-guide/#what-is-the-use-the-latest-vue-eslint-parser-error vue/no-unused-components
1:1 error Use the latest vue-eslint-parser. See also https://vuejs.github.io/eslint-plugin-vue/user-guide/#what-is-the-use-the-latest-vue-eslint-parser-error vue/no-unused-vars
1:1 error Use the latest vue-eslint-parser. See also https://vuejs.github.io/eslint-plugin-vue/user-guide/#what-is-the-use-the-latest-vue-eslint-parser-error vue/no-use-v-if-with-v-for
1:1 error Use the latest vue-eslint-parser. See also https://vuejs.github.io/eslint-plugin-vue/user-guide/#what-is-the-use-the-latest-vue-eslint-parser-error vue/require-component-is
1:1 error Use the latest vue-eslint-parser. See also https://vuejs.github.io/eslint-plugin-vue/user-guide/#what-is-the-use-the-latest-vue-eslint-parser-error vue/require-v-for-key
1:1 error Use the latest vue-eslint-parser. See also https://vuejs.github.io/eslint-plugin-vue/user-guide/#what-is-the-use-the-latest-vue-eslint-parser-error vue/use-v-on-exact
1:1 error Use the latest vue-eslint-parser. See also https://vuejs.github.io/eslint-plugin-vue/user-guide/#what-is-the-use-the-latest-vue-eslint-parser-error vue/valid-v-bind
1:1 error Use the latest vue-eslint-parser. See also https://vuejs.github.io/eslint-plugin-vue/user-guide/#what-is-the-use-the-latest-vue-eslint-parser-error vue/valid-v-cloak
1:1 error Use the latest vue-eslint-parser. See also https://vuejs.github.io/eslint-plugin-vue/user-guide/#what-is-the-use-the-latest-vue-eslint-parser-error vue/valid-v-else-if
1:1 error Use the latest vue-eslint-parser. See also https://vuejs.github.io/eslint-plugin-vue/user-guide/#what-is-the-use-the-latest-vue-eslint-parser-error vue/valid-v-else
1:1 error Use the latest vue-eslint-parser. See also https://vuejs.github.io/eslint-plugin-vue/user-guide/#what-is-the-use-the-latest-vue-eslint-parser-error vue/valid-v-for
1:1 error Use the latest vue-eslint-parser. See also https://vuejs.github.io/eslint-plugin-vue/user-guide/#what-is-the-use-the-latest-vue-eslint-parser-error vue/valid-v-html
1:1 error Use the latest vue-eslint-parser. See also https://vuejs.github.io/eslint-plugin-vue/user-guide/#what-is-the-use-the-latest-vue-eslint-parser-error vue/valid-v-if
1:1 error Use the latest vue-eslint-parser. See also https://vuejs.github.io/eslint-plugin-vue/user-guide/#what-is-the-use-the-latest-vue-eslint-parser-error vue/valid-v-model
1:1 error Use the latest vue-eslint-parser. See also https://vuejs.github.io/eslint-plugin-vue/user-guide/#what-is-the-use-the-latest-vue-eslint-parser-error vue/valid-v-on
1:1 error Use the latest vue-eslint-parser. See also https://vuejs.github.io/eslint-plugin-vue/user-guide/#what-is-the-use-the-latest-vue-eslint-parser-error vue/valid-v-once
1:1 error Use the latest vue-eslint-parser. See also https://vuejs.github.io/eslint-plugin-vue/user-guide/#what-is-the-use-the-latest-vue-eslint-parser-error vue/valid-v-pre
1:1 error Use the latest vue-eslint-parser. See also https://vuejs.github.io/eslint-plugin-vue/user-guide/#what-is-the-use-the-latest-vue-eslint-parser-error vue/valid-v-show
1:1 error Use the latest vue-eslint-parser. See also https://vuejs.github.io/eslint-plugin-vue/user-guide/#what-is-the-use-the-latest-vue-eslint-parser-error vue/valid-v-text
1:1 warning Use the latest vue-eslint-parser. See also https://vuejs.github.io/eslint-plugin-vue/user-guide/#what-is-the-use-the-latest-vue-eslint-parser-error vue/attribute-hyphenation
1:1 warning Use the latest vue-eslint-parser. See also https://vuejs.github.io/eslint-plugin-vue/user-guide/#what-is-the-use-the-latest-vue-eslint-parser-error vue/no-template-shadow
1:1 warning Use the latest vue-eslint-parser. See also https://vuejs.github.io/eslint-plugin-vue/user-guide/#what-is-the-use-the-latest-vue-eslint-parser-error vue/v-bind-style
1:1 warning Use the latest vue-eslint-parser. See also https://vuejs.github.io/eslint-plugin-vue/user-guide/#what-is-the-use-the-latest-vue-eslint-parser-error vue/v-on-style
1:1 warning Use the latest vue-eslint-parser. See also https://vuejs.github.io/eslint-plugin-vue/user-guide/#what-is-the-use-the-latest-vue-eslint-parser-error vue/attributes-order
1:1 warning Use the latest vue-eslint-parser. See also https://vuejs.github.io/eslint-plugin-vue/user-guide/#what-is-the-use-the-latest-vue-eslint-parser-error vue/no-v-html
1:1 warning Use the latest vue-eslint-parser. See also https://vuejs.github.io/eslint-plugin-vue/user-guide/#what-is-the-use-the-latest-vue-eslint-parser-error vue/this-in-template
5:1 error Expected indentation of 4 spaces but found 1 tab @typescript-eslint/indent
6:1 error Expected indentation of 8 spaces but found 2 tabs @typescript-eslint/indent
7:1 error Expected indentation of 8 spaces but found 2 tabs @typescript-eslint/indent
8:1 error Expected indentation of 8 spaces but found 2 tabs @typescript-eslint/indent
9:1 error Expected indentation of 8 spaces but found 2 tabs @typescript-eslint/indent
11:1 error Expected indentation of 8 spaces but found 2 tabs @typescript-eslint/indent
12:1 error Expected indentation of 12 spaces but found 3 tabs @typescript-eslint/indent
13:1 error Expected indentation of 12 spaces but found 3 tabs @typescript-eslint/indent
14:1 error Expected indentation of 12 spaces but found 3 tabs @typescript-eslint/indent
15:1 error Expected indentation of 12 spaces but found 3 tabs @typescript-eslint/indent
16:1 error Expected indentation of 12 spaces but found 3 tabs @typescript-eslint/indent
17:1 error Expected indentation of 12 spaces but found 3 tabs @typescript-eslint/indent
18:1 error Expected indentation of 4 spaces but found 1 tab @typescript-eslint/indent
✖ 166 problems (138 errors, 28 warnings)
38 errors and 0 warnings potentially fixable with the `--fix` option.
And the erroneous Vue lint errors go away as soon as I remove "plugin:@typescript-eslint/recommended"
from the extends
block. Of course, if I do that, then I lose linting support for my .ts files.
Here is my package.json.
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Comments: 19
Commits related to this issue
- refactor(es-linting): forged valid ts+eslint+prettified+stylelint setup * added correct config files: https://github.com/typescript-eslint/typescript-eslint/blob/master/docs/getting-started/linting/T... — committed to matter-labs/zksync-wallet-vue by keriat 3 years ago
- refactor(es-linting): forged valid ts+eslint+prettified+stylelint setup * added correct config files: https://github.com/typescript-eslint/typescript-eslint/blob/master/docs/getting-started/linting/T... — committed to matter-labs/zksync-wallet-vue by keriat 3 years ago
https://vuejs.github.io/eslint-plugin-vue/user-guide/#what-is-the-use-the-latest-vue-eslint-parser-error https://vuejs.github.io/eslint-plugin-vue/user-guide/#how-to-use-custom-parser
@forresthopkinsa, the following ESLint configuration does work for me (linting
*.ts
as well as*.vue
):both plugins applies default parser, vue parser has option to set up additional parser in parserOptions
you can keep plugins but you have to specify both parsers (override what plugins are setting)
i’ using this in few projects and its working fine.
@@forresthopkinsa @@armano2 the following ESLint configuration does work for me (linting *.ts as well as *.vue):
Here’s how I ended up resolving this problem:
First, I put all my Vue components in one directory, separate from everything else. Then, I was able to make two separate
eslintrc
files.I put this one in the root of the project:
…and I put this one in the Vue
components
directory:and voila, problem solved. Not the most optimal solution, but it works well.
you can also try to use overrides and enable and change parser for ts files
Hmm I think we’re getting somewhere, I’ll have to come back to this later today
errors are gone?
you should try running eslint with --ext set