Skip to content

Commit

Permalink
Fix lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
hristijankeitaro committed Dec 20, 2024
1 parent ae0d7c4 commit 4f13a63
Show file tree
Hide file tree
Showing 4 changed files with 50 additions and 40 deletions.
26 changes: 13 additions & 13 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,21 @@ module.exports = {
root: true,
env: { browser: true, es2020: true },
extends: [
'eslint:recommended',
'plugin:react/recommended',
'plugin:react/jsx-runtime',
'plugin:react-hooks/recommended',
"eslint:recommended",
"plugin:react/recommended",
"plugin:react/jsx-runtime",
"plugin:react-hooks/recommended",
],
ignorePatterns: ['dist', '.eslintrc.cjs'],
parserOptions: { ecmaVersion: 'latest', sourceType: 'module' },
settings: { react: { version: '18.2' } },
plugins: ['eslint-plugin-react-compiler','react-refresh'],
ignorePatterns: ["dist", ".eslintrc.cjs"],
parserOptions: { ecmaVersion: "latest", sourceType: "module" },
settings: { react: { version: "18.2" } },
plugins: ["eslint-plugin-react-compiler", "react-refresh"],
rules: {
'react-compiler/react-compiler': "error",
'react/jsx-no-target-blank': 'off',
'react-refresh/only-export-components': [
'warn',
"react-compiler/react-compiler": "error",
"react/jsx-no-target-blank": "off",
"react-refresh/only-export-components": [
"warn",
{ allowConstantExport: true },
],
},
}
};
60 changes: 35 additions & 25 deletions index.html
Original file line number Diff line number Diff line change
@@ -1,28 +1,38 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="theme-color" content="#000000" />
<meta
name="description"
content="Create image assets quickly with the Blog Image Generator by Keitaro"
/>
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:creator" content="@KeitaroInc" />
<meta name="og:title" content="Blog Image Generator by Keitaro" />
<meta
name="og:description"
content="Create image assets quickly with the Blog Image Generator by Keitaro"
/>
<meta
property="og:image"
content="/keitaro-blog-image-generator-post-cover.png"
/>
<link rel="apple-touch-icon" href="/logo192.png" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link
crossorigin="anonymous"
href="https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&display=swap"
rel="stylesheet"
/>
<title>Blog Image Generator by Keitaro</title>
</head>

<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="theme-color" content="#000000" />
<meta name="description" content="Create image assets quickly with the Blog Image Generator by Keitaro" />
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:creator" content="@KeitaroInc" />
<meta name="og:title" content="Blog Image Generator by Keitaro" />
<meta name="og:description" content="Create image assets quickly with the Blog Image Generator by Keitaro" />
<meta property="og:image" content="/keitaro-blog-image-generator-post-cover.png" />
<link rel="apple-touch-icon" href="/logo192.png" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link crossorigin="anonymous"
href="https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&display=swap" rel="stylesheet" />
<title>Blog Image Generator by Keitaro</title>
</head>

<body>
<div id="root"></div>
<script type="module" src="/src/main.jsx"></script>
</body>

</html>
<body>
<div id="root"></div>
<script type="module" src="/src/main.jsx"></script>
</body>
</html>
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"scripts": {
"dev": "vite",
"build": "vite build",
"lint": "eslint . --ext js,jsx --report-unused-disable-directives --max-warnings 0",
"lint": "npx prettier -cw . '!**/*.{png,txt,ico}'",
"preview": "vite preview",
"test": "jest"
},
Expand Down
2 changes: 1 addition & 1 deletion vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const ReactCompilerConfig = {

export default defineConfig({
build: {
outDir: 'build',
outDir: "build",
emptyOutDir: true, // also necessary
},
plugins: [
Expand Down

0 comments on commit 4f13a63

Please sign in to comment.