-
Notifications
You must be signed in to change notification settings - Fork 63
Open
Description
Hello, I got some warning!
This is a part of my webpack.module.rules config:
{
test: /\.(js|vue)$/,
include: [resolve('src')],
exclude: /node_modules/,
enforce: 'pre',
use: [{
loader: 'eslint-loader',
options: {
formatter: require('eslint-friendly-formatter')
}
}]
},
{
test: /\.tsx?$/,
enforce: 'pre',
exclude: /node_modules/,
loader: 'tslint-loader'
},
{
test: /\.vue$/,
loader: 'vue-loader',
options: {
loaders: {
ts: "ts-loader",
tsx: "babel-loader!ts-loader"
}
}
},
{
test: /\.tsx?$/,
exclude: /node_modules/,
use: [
"babel-loader",
{
loader: "ts-loader",
options: { appendTsxSuffixTo: [/\.vue$/] }
}
]
}
Codes of the vue file is like:
<template>
<div></div>
</template>
<script lang="ts">
import Vue from 'vue';
import Component from 'vue-class-component';
@Component({})
export default class Banner extends Vue {
public some: string = '';
}
</script>
The warning is like:
Module Warning (from ./node_modules/tslint-loader/index.js):
[5, 9]: statements are not aligned
[1, 1]: Type assertion using the '<>' syntax is forbidden. Use the 'as' syntax instead.
[13, 1]: Type assertion using the '<>' syntax is forbidden. Use the 'as' syntax instead.
[1, 1]: unused expression, expected an assignment or function call
[13, 1]: unused expression, expected an assignment or function call
[5, 14]: " should be '
[5, 8]: Missing semicolon
[5, 19]: Missing semicolon
[13, 10]: Missing semicolon
[5, 2]: missing whitespace
[3, 2]: missing whitespace
[2, 8]: missing whitespace
[2, 9]: missing whitespace
[5, 13]: missing whitespace
[5, 14]: missing whitespace
[5, 18]: missing whitespace
[13, 2]: missing whitespace
If i delete the config of tslint-loader, everything will be ok!
kristapsveveris, alexeden, lukas-mi and lzpfmh
Metadata
Metadata
Assignees
Labels
No labels