chore: update lint config (#78)

This commit is contained in:
Stephen Zhou
2024-06-21 17:25:14 +08:00
committed by GitHub
parent 883912ab72
commit 5d68f7da3c
7 changed files with 404 additions and 403 deletions
+1 -13
View File
@@ -10,16 +10,6 @@
["cva\\(([^)]*)\\)", "[\"'`]([^\"'`]*).*?[\"'`]"],
["cx\\(([^)]*)\\)", "(?:'|\"|`)([^']*)(?:'|\"|`)"]
],
// You may don't need this in the future
"eslint.experimental.useFlatConfig": true,
"eslint.validate": [
"javascript",
"javascriptreact",
"typescript",
"typescriptreact",
"json",
"jsonc"
],
// If you do not want to autofix some rules on save
// You can put this in your user settings or workspace settings
@@ -34,9 +24,7 @@
// If you want to silent stylistic rules
// You can put this in your user settings or workspace settings
"eslint.rules.customizations": [
{ "rule": "@stylistic/*", "severity": "off" },
{ "rule": "@stylistic/no-tabs", "severity": "default" },
{ "rule": "@stylistic/max-statements-per-line", "severity": "default" },
{ "rule": "@stylistic/*", "severity": "off", "fixable": true },
{ "rule": "tailwindcss/classnames-order", "severity": "off" },
{ "rule": "antfu/consistent-list-newline", "severity": "off" },
{ "rule": "hyoban/jsx-attribute-spacing", "severity": "off" },
+1 -2
View File
@@ -1,5 +1,5 @@
// @ts-check
import defineConfig, { GLOB_TS_SRC } from "eslint-config-hyoban"
import { defineConfig, GLOB_TS_SRC } from "eslint-config-hyoban"
export default defineConfig(
{
@@ -21,7 +21,6 @@ export default defineConfig(
"unicorn/consistent-function-scoping": "warn",
"unicorn/prefer-module": "off",
"@typescript-eslint/no-floating-promises": "off",
},
settings: {
tailwindcss: {
+1 -1
View File
@@ -113,7 +113,7 @@
"electron-devtools-installer": "3.2.0",
"electron-vite": "^2.2.0",
"eslint": "^9.3.0",
"eslint-config-hyoban": "3.0.0-beta.16",
"eslint-config-hyoban": "3.0.0-beta.19",
"lint-staged": "15.2.5",
"postcss": "8.4.38",
"postcss-js": "4.0.1",
+396 -382
View File
File diff suppressed because it is too large Load Diff
@@ -251,8 +251,8 @@ export const Autocomplete = forwardRef<HTMLInputElement, AutocompleteProps>(
/>
<AnimatePresence>
{isOpen &&
filterableSuggestions.length > 0 &&
(portal ? <RootPortal>{ListElement}</RootPortal> : ListElement)}
filterableSuggestions.length > 0 &&
(portal ? <RootPortal>{ListElement}</RootPortal> : ListElement)}
</AnimatePresence>
</div>
)
@@ -107,7 +107,7 @@ function EntryContentRender({ entryId }: { entryId: string }) {
</div>
<div className="text-[13px] text-zinc-500">
{entry.entries.publishedAt &&
new Date(entry.entries.publishedAt).toLocaleString()}
new Date(entry.entries.publishedAt).toLocaleString()}
</div>
</a>
<WrappedElementProvider boundingDetection>
@@ -495,7 +495,7 @@ export function ActionCard({
}}
>
{data.result.rewriteRules &&
data.result.rewriteRules.length > 0 && (
data.result.rewriteRules.length > 0 && (
<>
<Table>
<TableHeader>
@@ -578,7 +578,7 @@ export function ActionCard({
}}
>
{data.result.blockRules &&
data.result.blockRules.length > 0 && (
data.result.blockRules.length > 0 && (
<>
<Table>
<FieldTableHeader />