Skip to content

Commit

Permalink
Oppatert eslint-plugin-react-hooks og kjørt lint
Browse files Browse the repository at this point in the history
  • Loading branch information
blommish committed Oct 24, 2024
1 parent 9c6ceb7 commit 688a193
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 8 deletions.
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
"build": "sanity build",
"deploy": "sanity deploy",
"deploy-graphql": "sanity graphql deploy",
"eslint": "eslint './src/**/*.{js,ts,tsx}' --fix",
"lint": "eslint 'src/**/*'",
"lint:fix": "eslint 'src/**/*' --fix",
"prettier": "prettier --write",
"prepare": "husky"
},
Expand Down Expand Up @@ -51,7 +52,7 @@
"eslint-plugin-import": "^2.31.0",
"eslint-plugin-jsx-a11y": "^6.10.1",
"eslint-plugin-prettier": "^5.1.3",
"eslint-plugin-react-hooks": "^4.6.2",
"eslint-plugin-react-hooks": "^5.0.0",
"husky": "^9.0.11",
"lint-staged": "^15.2.7",
"prettier": "^3.3.2",
Expand Down
2 changes: 1 addition & 1 deletion src/schemas/blockEditor.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { defineField } from 'sanity';

import valgfeltReferanse from './referanser/valgfeltReferanse';
import { DokumentNavn, SanityTyper } from '../typer';
import valgfeltReferanse from './referanser/valgfeltReferanse';

const blockEditor = (målform: string, tittel: string, erDelmal: boolean) => ({
name: målform,
Expand Down
2 changes: 1 addition & 1 deletion src/schemas/mal.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { defineField, defineType, StringRule } from 'sanity';

import delmalReferanse from './referanser/delmalReferanse';
import { Resultat, Ytelse } from '../typer';
import delmalReferanse from './referanser/delmalReferanse';

const mal = (ytelse: Ytelse) => (resultat: Resultat) =>
defineType({
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4385,10 +4385,10 @@ eslint-plugin-react-hooks@^4.6.0:
resolved "https://registry.yarnpkg.com/eslint-plugin-react-hooks/-/eslint-plugin-react-hooks-4.6.0.tgz#4c3e697ad95b77e93f8646aaa1630c1ba607edd3"
integrity sha512-oFc7Itz9Qxh2x4gNHStv3BqJq54ExXmfC+a1NjAta66IAN87Wu0R/QArgIS9qKzX3dXKPI9H5crl9QchNMY9+g==

eslint-plugin-react-hooks@^4.6.2:
version "4.6.2"
resolved "https://registry.yarnpkg.com/eslint-plugin-react-hooks/-/eslint-plugin-react-hooks-4.6.2.tgz#c829eb06c0e6f484b3fbb85a97e57784f328c596"
integrity sha512-QzliNJq4GinDBcD8gPB5v0wh6g8q3SUi6EFF0x8N/BL9PoVs0atuGc47ozMRyOWAKdwaZ5OnbOEa3WR+dSGKuQ==
eslint-plugin-react-hooks@^5.0.0:
version "5.0.0"
resolved "https://registry.yarnpkg.com/eslint-plugin-react-hooks/-/eslint-plugin-react-hooks-5.0.0.tgz#72e2eefbac4b694f5324154619fee44f5f60f101"
integrity sha512-hIOwI+5hYGpJEc4uPRmz2ulCjAGD/N13Lukkh8cLV0i2IRk/bdZDYjgLVHj+U9Z704kLIdIO6iueGvxNur0sgw==

eslint-plugin-react@^7.34.1:
version "7.34.3"
Expand Down

0 comments on commit 688a193

Please sign in to comment.