Skip to content

Commit

Permalink
chore: update lint config (#29)
Browse files Browse the repository at this point in the history
  • Loading branch information
hyoban authored May 31, 2024
1 parent 576634d commit 9534bba
Show file tree
Hide file tree
Showing 3 changed files with 151 additions and 74 deletions.
21 changes: 4 additions & 17 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// @ts-check
import defineConfig, { DEFAULT_GLOB_TS_SRC } from "eslint-config-hyoban"
import defineConfig, { GLOB_TS_SRC } from "eslint-config-hyoban"

export default defineConfig(
{
Expand All @@ -11,24 +11,11 @@ export default defineConfig(
quotes: "double",
arrowParens: true,
braceStyle: "1tbs",
lineBreak: "after",
},
lessOpinionated: true,
ignores: ["src/renderer/src/hono.ts"],
},
{
rules: {
// change for less opinionated
"curly": ["error", "multi-line", "consistent"],
"antfu/if-newline": "off",
"antfu/top-level-function": "off",
"hyoban/prefer-early-return": "off",
"@typescript-eslint/array-type": "off",
"@typescript-eslint/consistent-type-definitions": "off",

// change to more like prettier
"@stylistic/operator-linebreak": ["error", "after"],
"@stylistic/max-statements-per-line": "off",
},
},
// fix later or just always ignore
{
rules: {
Expand All @@ -38,7 +25,7 @@ export default defineConfig(
},
},
{
files: DEFAULT_GLOB_TS_SRC,
files: GLOB_TS_SRC,
rules: {
"@eslint-react/no-unstable-context-value": "warn",
"react-compiler/react-compiler": "warn",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@
"electron-builder": "^24.9.1",
"electron-vite": "^2.2.0",
"eslint": "^9.3.0",
"eslint-config-hyoban": "^2.9.4",
"eslint-config-hyoban": "3.0.0-beta.7",
"lint-staged": "15.2.5",
"postcss": "8.4.38",
"postcss-js": "4.0.1",
Expand Down
Loading

0 comments on commit 9534bba

Please sign in to comment.