Skip to content

Commit

Permalink
Update linters and Node (#898)
Browse files Browse the repository at this point in the history
* Update linters and Node
  • Loading branch information
kshmidt-digma committed Jun 14, 2024
1 parent 931fe6f commit e1f3f8b
Show file tree
Hide file tree
Showing 194 changed files with 3,828 additions and 3,944 deletions.
9 changes: 6 additions & 3 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ module.exports = {
"plugin:react/recommended",
"plugin:react-hooks/recommended",
"plugin:react/jsx-runtime",
"plugin:@typescript-eslint/recommended",
"plugin:@typescript-eslint/recommended-requiring-type-checking",
"plugin:@typescript-eslint/recommended-type-checked",
"plugin:@typescript-eslint/stylistic-type-checked",
"plugin:storybook/recommended"
// "plugin:prettier/recommended"
],
Expand All @@ -29,7 +29,10 @@ module.exports = {
"no-console": "error",
"no-useless-return": "error",
"react/jsx-boolean-value": ["error", "always"],
"react/jsx-curly-brace-presence": ["error", "always"]
"react/jsx-curly-brace-presence": [
"error",
{ props: "always", children: "ignore", propElementValues: "always" }
]
},
overrides: [
{
Expand Down
3 changes: 2 additions & 1 deletion .storybook/preview.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import type { Preview } from "@storybook/react";
import { StoryFn } from "@storybook/react";
// TODO: remove React import due to new JSX transform
// eslint-disable-next-line @typescript-eslint/no-unused-vars
import React, { useEffect, useState } from "react";
import {
cancelMessage,
Expand All @@ -14,7 +16,6 @@ const preview: Preview = {
decorators: [
(Story: StoryFn, context): JSX.Element => {
const [isInitialized, setIsInitialized] = useState(false);
// TODO: Fix types
const theme = context.globals.theme as Mode;

useEffect(() => {
Expand Down
Loading

0 comments on commit e1f3f8b

Please sign in to comment.