chore: update lint config (#78)
This commit is contained in:
Vendored
+1
-13
@@ -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
@@ -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
@@ -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",
|
||||
|
||||
Generated
+396
-382
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 />
|
||||
|
||||
Reference in New Issue
Block a user