Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions react/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
node_modules
dist
coverage
17 changes: 17 additions & 0 deletions react/eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import eslint from '@eslint/js';
import tseslint from 'typescript-eslint';
import reactHooks from 'eslint-plugin-react-hooks';

export default tseslint.config(
eslint.configs.recommended,
...tseslint.configs.recommended,
{
files: ['**/*.{ts,tsx}'],
plugins: { 'react-hooks': reactHooks },
rules: {
...reactHooks.configs.recommended.rules,
'@typescript-eslint/no-unused-vars': ['error', { argsIgnorePattern: '^_' }]
}
},
{ ignores: ['dist', 'node_modules'] }
);
31 changes: 31 additions & 0 deletions react/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="description" content="A Hacker News client built with React, TypeScript and Vite" />
<meta name="twitter:card" content="summary" />
<meta name="twitter:title" content="Angular 2 HN React" />
<meta name="twitter:image" content="/assets/images/logo-header.png" />
<meta property="og:title" content="Angular 2 HN React" />
<meta property="og:type" content="website" />
<meta property="og:image" content="/assets/images/logo-header.png" />
<meta property="og:description" content="A Hacker News client built with React, TypeScript and Vite" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="theme-color" content="#b92b27" />
<meta name="msapplication-TileColor" content="#b92b27" />
<meta name="msapplication-TileImage" content="/assets/icons/mstile-150x150.png" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="black" />
<link rel="manifest" href="/manifest.webmanifest" />
<link rel="icon" type="image/png" href="/assets/icons/favicon-32x32.png" sizes="32x32" />
<link rel="icon" type="image/png" href="/assets/icons/favicon-16x16.png" sizes="16x16" />
<link rel="mask-icon" href="/assets/icons/safari-pinned-tab.svg" color="#b92b27" />
<link rel="apple-touch-icon" sizes="180x180" href="/assets/icons/apple-touch-icon.png" />
<title>Angular 2 HN React</title>
</head>
<body>
<div id="root"></div>
<noscript>Sorry, JavaScript needs to be enabled in order to run this application.</noscript>
<script type="module" src="/src/main.tsx"></script>
</body>
</html>
Loading