Skip to content
This repository was archived by the owner on Sep 14, 2022. It is now read-only.

Commit 6b91c10

Browse files
committed
chore: add og tag
1 parent d367614 commit 6b91c10

File tree

6 files changed

+27
-14
lines changed

6 files changed

+27
-14
lines changed

.eslintrc.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@ module.exports = {
99
],
1010
ignorePatterns: ["*.js"],
1111
rules: {
12-
'@typescript-eslint/ban-ts-comment': 'off'
13-
}
12+
"@typescript-eslint/ban-ts-comment": "off",
13+
},
1414
};

assets/share.png

127 KB
Loading

package.json

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,25 @@
11
{
22
"name": "typescript-eslint-demo",
33
"version": "0.2.1",
4-
"description": "",
4+
"description": "An online playground for [@typescript-eslint](https://github.com/typescript-eslint/typescript-eslint) - [🚀 Playground](https://yeonjuan.github.io/typescript-eslint-demo/)",
55
"main": "index.js",
66
"scripts": {
7-
"//format": "Run \"prettier\" for fixing code format",
7+
"//format": "run \"prettier\"",
88
"format": "prettier . --write",
9-
"//lint": "Run \"eslint\" for linting",
9+
"//lint": "run \"eslint\"",
1010
"lint": "eslint src",
11-
"//dev": "Run dev server",
11+
"//dev": "run \"webpac dev server\"",
1212
"dev": "webpack-dev-server --open --config webpack.dev.config",
13-
"//build": "Bundle files",
13+
"//build": "builds a website",
1414
"build": "ts-node scripts/rm-rf.ts ./dist && webpack --config webpack.prod.config",
15+
"//check": "check types",
1516
"check": "tsc --noEmit",
16-
"//gen": "gen",
17+
"//gen": "generate typescript lib files",
1718
"gen:libs": "ts-node scripts/gen-libs.ts",
1819
"clear": "ts-node scripts/rm-rf.ts ./dist ",
19-
"//deploy": "deploy",
20+
"//deploy": "build a website and publish it to Github gh-pages",
2021
"deploy": "npm run build && gh-pages -d dist",
21-
"//test": "test",
22+
"//test": "run tests",
2223
"test": "jest"
2324
},
2425
"repository": {

src/index.html

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,19 @@
1515
<meta name="revisit-after" content="1 days" />
1616
<meta name="author" content="yeonjuan" />
1717
<meta name="twitter:card" content="summary" />
18-
18+
<meta property="og:title" content="TypeScript-ESLint Demo" />
19+
<meta
20+
property="og:description"
21+
content="An online demo for typescript-eslint"
22+
/>
23+
<meta
24+
property="og:url"
25+
content="https://yeonjuan.github.io/typescript-eslint-demo"
26+
/>
27+
<meta
28+
property="og:image"
29+
content="https://yeonjuan.github.io/typescript-eslint-demo/assets/share.png"
30+
/>
1931
<title>TypeScript-ESLint Demo</title>
2032
<style>
2133
body {

src/lib/linter.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ function loadParser() {
3232
}
3333

3434
async function loadESLinter() {
35-
// @ts-ignore
35+
// @ts-ignore
3636
return import("eslint/lib/linter/linter");
3737
}
3838

tsconfig.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"esModuleInterop": true,
1515
"forceConsistentCasingInFileNames": true,
1616
"resolveJsonModule": true,
17-
"skipLibCheck": true,
17+
"skipLibCheck": true
1818
},
19-
"exclude": ["node_modules"],
19+
"exclude": ["node_modules"]
2020
}

0 commit comments

Comments
 (0)