Skip to content

Commit

Permalink
fix: fix eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
aymericzip committed May 2, 2024
1 parent 878e41a commit 64937ca
Show file tree
Hide file tree
Showing 10 changed files with 10 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@ module.exports = {
overrides: [
// optional overrides
],
ignorePatterns: ['**/intlayer.d.ts'],
ignorePatterns: ['**/intlayer.d.ts', '*.config.*'],
};
1 change: 1 addition & 0 deletions examples/nextjs-app/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
"include": [
"next-env.d.ts",
"**/*.ts",
"**/*.js",
"**/*.tsx",
"**/*.json",
".next/types/**/*.ts"
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export * from './LangSwitcher';
export { LocaleSwitcher } from './LangSwitcher';
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import { ChevronDown } from 'lucide-react';
import { useEffect, useState, type FC, type ReactNode } from 'react';
import styled from 'styled-components';
import { styled } from 'styled-components';
import tw from 'twin.macro';
import { MaxHeightSmoother } from '../MaxHeightSmoother';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { FC } from 'react';
import styled from 'styled-components';
import { styled } from 'styled-components';
import tw from 'twin.macro';
import { MaxHeightSmoother } from '../MaxHeightSmoother';
import type { UnrollablePanelTriggerProps, UnrollablePanelType } from './types';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { FC, HTMLAttributes, ReactNode } from 'react';
import styled from 'styled-components';
import { styled } from 'styled-components';
import tw from 'twin.macro';

interface MaxHeightSmootherProps extends HTMLAttributes<HTMLDivElement> {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react';
import styled from 'styled-components';
import { styled } from 'styled-components';
import tw from 'twin.macro';

type MaxHeightSmootherProps = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import { X } from 'lucide-react';
import { type ReactNode, type FC, useEffect, useRef } from 'react';
import styled from 'styled-components';
import { styled } from 'styled-components';
import tw from 'twin.macro';
import { useScrollBlockage } from '../../hooks/useScrollBlockage';
import { capitalize } from '../../utils/capitalize';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,6 @@ export const EditionPanel: FC<EditionPanelProps> = ({
useEditedContentStore();
const { editContentRequest } = useEditorServer();

console.log('editedContent', editedContent);

// Use effect to react to changes in focusedContent
useEffect(() => {
if (focusedContent !== null) {
Expand All @@ -51,7 +49,7 @@ export const EditionPanel: FC<EditionPanelProps> = ({

const dictionary: ContentModule = dictionaries[focusedContent.dictionaryId];

if (!(dictionary && dictionary.filePath)) {
if (!dictionary?.filePath) {
return null;
}

Expand Down
2 changes: 1 addition & 1 deletion packages/react-intlayer/src/vite/intlayerPlugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export const intLayerPlugin = (_pluginOptions: PluginOptions = {}): Plugin => ({
persistent: (import.meta as any).env === 'development',
});
},
configureServer: (server) => {
configureServer: () => {
// Custom server configuration, if needed
},
});

0 comments on commit 64937ca

Please sign in to comment.