Skip to content

Commit

Permalink
Merge pull request #3 from capply/fix-lint
Browse files Browse the repository at this point in the history
Fix lint errors
  • Loading branch information
jnicklas authored Nov 13, 2023
2 parents d5174f4 + 5d03e76 commit 6e3f4a4
Show file tree
Hide file tree
Showing 6 changed files with 408 additions and 1,738 deletions.
27 changes: 18 additions & 9 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,17 +1,26 @@
{
"extends": "@frontside",
"parser": "@typescript-eslint/parser",
"extends": ["plugin:@typescript-eslint/recommended"],
"plugins": ["@typescript-eslint"],
"rules": {
"eol-last": "off",
"@typescript-eslint/consistent-type-imports": "error",
"@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/no-empty-function": "off",
"@typescript-eslint/no-unused-vars": "error",
"@typescript-eslint/no-use-before-define": "off",
"arrow-spacing": "error",
"eol-last": "error",
"no-empty-function": "off",
"no-multi-spaces": "error",
"no-trailing-spaces": "error",
"object-curly-spacing": ["error", "always"],
"one-var": ["error", { "initialized": "never" }],
"prefer-const": "off",
"semi": ["error", "always", { "omitLastInOneLineBlock": true }],
"@typescript-eslint/no-extra-semi": "off",
"@typescript-eslint/no-non-null-assertion": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/consistent-type-imports": "warn",
"no-multi-spaces": "off",
"no-trailing-spaces": "off",
"object-curly-spacing": "off",
"semi": "off",
"no-console": "warn",
"prefer-let/prefer-let": "off"
"no-console": "warn"
},
"ignorePatterns": ["playground"]
}
1 change: 0 additions & 1 deletion lib/form.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* eslint-disable prefer-let/prefer-let */
import { Form, useActionData } from "@remix-run/react";
import type { FormProps } from "@remix-run/react";
import type { FormEventHandler, ReactNode } from "react";
Expand Down
1 change: 0 additions & 1 deletion lib/use-field.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* eslint-disable prefer-let/prefer-let */
import { useContext, useMemo } from "react";
import { signal as createSignal, computed } from "@preact/signals-react";
import type { ReadonlySignal } from "@preact/signals-react";
Expand Down
Loading

0 comments on commit 6e3f4a4

Please sign in to comment.