Skip to content
This repository was archived by the owner on Apr 4, 2020. It is now read-only.

Commit 2e28733

Browse files
committed
Initial commit
0 parents  commit 2e28733

File tree

8 files changed

+8872
-0
lines changed

8 files changed

+8872
-0
lines changed

.gitignore

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
.DS_Store
2+
node_modules
3+
/dist
4+
5+
# local env files
6+
.env.local
7+
.env.*.local
8+
9+
# Log files
10+
npm-debug.log*
11+
yarn-debug.log*
12+
yarn-error.log*
13+
14+
# Editor directories and files
15+
.idea
16+
.vscode
17+
*.suo
18+
*.ntvs*
19+
*.njsproj
20+
*.sln
21+
*.sw*

package-lock.json

Lines changed: 8745 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"name": "vue-tslint-microsoft-contrib-bug",
3+
"version": "0.1.0",
4+
"private": true,
5+
"scripts": {
6+
"serve": "vue-cli-service serve",
7+
"build": "vue-cli-service build",
8+
"lint": "vue-cli-service lint"
9+
},
10+
"dependencies": {
11+
"vue": "^2.5.17"
12+
},
13+
"devDependencies": {
14+
"@vue/cli-plugin-typescript": "^3.0.5",
15+
"@vue/cli-service": "^3.0.5",
16+
"tslint-microsoft-contrib": "^5.2.1",
17+
"typescript": "^3.0.0",
18+
"vue-template-compiler": "^2.5.17"
19+
}
20+
}

src/App.vue

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<script lang="ts">
2+
//tslint:disable missing-jsdoc
3+
import Vue from 'vue';
4+
export default class App extends Vue {}
5+
</script>

src/shims-tsx.d.ts

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
//tslint:disable no-any missing-jsdoc
2+
import Vue, { VNode } from 'vue';
3+
4+
declare global {
5+
namespace JSX {
6+
// tslint:disable no-empty-interface
7+
interface Element extends VNode {}
8+
// tslint:disable no-empty-interface
9+
interface ElementClass extends Vue {}
10+
interface IntrinsicElements {
11+
[elem: string]: any;
12+
}
13+
}
14+
}

src/shims-vue.d.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
//tslint:disable missing-jsdoc
2+
declare module '*.vue' {
3+
import Vue from 'vue';
4+
export default Vue;
5+
}

tsconfig.json

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
{
2+
"compilerOptions": {
3+
"target": "es5",
4+
"module": "esnext",
5+
"strict": true,
6+
"jsx": "preserve",
7+
"importHelpers": true,
8+
"moduleResolution": "node",
9+
"experimentalDecorators": true,
10+
"esModuleInterop": true,
11+
"allowSyntheticDefaultImports": true,
12+
"sourceMap": true,
13+
"baseUrl": ".",
14+
"types": [
15+
"webpack-env"
16+
],
17+
"paths": {
18+
"@/*": [
19+
"src/*"
20+
]
21+
},
22+
"lib": [
23+
"esnext",
24+
"dom",
25+
"dom.iterable",
26+
"scripthost"
27+
]
28+
},
29+
"include": [
30+
"src/**/*.ts",
31+
"src/**/*.tsx",
32+
"src/**/*.vue",
33+
"tests/**/*.ts",
34+
"tests/**/*.tsx"
35+
],
36+
"exclude": [
37+
"node_modules"
38+
]
39+
}

tslint.json

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
"defaultSeverity": "warning",
3+
"extends": [
4+
"tslint:recommended",
5+
"tslint-microsoft-contrib"
6+
],
7+
"linterOptions": {
8+
"exclude": [
9+
"node_modules/**"
10+
]
11+
},
12+
"rules": {
13+
"quotemark": [true, "single"],
14+
"indent": [true, "spaces", 2],
15+
"interface-name": false,
16+
"ordered-imports": false,
17+
"object-literal-sort-keys": false,
18+
"no-consecutive-blank-lines": false,
19+
"export-name": [true, {"ignore-case": true}],
20+
"import-name": [false],
21+
"no-default-export": false
22+
}
23+
}

0 commit comments

Comments
 (0)