After creating and running my first Vue.js + TypeScript project, I decided to reformat the TypeScript code to my liking. However, when I ran the npm run serve
command, I received the following warning:
WARNING in .../src/app/app.ts
7:1 misplaced opening brace
5 | })
6 | export default class App extends Vue
> 7 | {
| ^
8 |
9 | }
10 |
No type errors found
Version: typescript 3.5.3, tslint 5.18.0
Time: 1148ms
Is there a way to activate only the error checks in TSLint without turning on any of the style check rules?
Even after following the advice on TSLint: how to disable all style/readability rules and removing all the rules in my tslint.json
file, I still encountered the same warning.
My current tslint.json
configuration:
{
"defaultSeverity": "warning",
"extends": [
"tslint:recommended"
],
"linterOptions": {
"exclude": [
"node_modules/**"
]
}/*,
"rules": {
"indent": [true, "spaces", 4],
"quotemark": [true, "single"]
}*/
}