fix: eslint upgrade @vchikalkin/eslint-config-awesome
This commit is contained in:
parent
c9ec74c071
commit
ef76addee9
@ -1,4 +1,3 @@
|
||||
/* eslint-disable id-length */
|
||||
import { useTranslations } from 'next-intl';
|
||||
|
||||
type ProjectProps = {
|
||||
|
||||
@ -21,8 +21,7 @@ const badgeVariants = cva(
|
||||
},
|
||||
);
|
||||
|
||||
export type BadgeProps = React.HTMLAttributes<HTMLDivElement> &
|
||||
VariantProps<typeof badgeVariants> & {};
|
||||
export type BadgeProps = React.HTMLAttributes<HTMLDivElement> & VariantProps<typeof badgeVariants>;
|
||||
|
||||
function Badge({ className, variant, ...props }: BadgeProps) {
|
||||
return <div className={cn(badgeVariants({ variant }), className)} {...props} />;
|
||||
|
||||
@ -10,6 +10,7 @@ export default [
|
||||
{
|
||||
ignores: ['**/.next/**'],
|
||||
rules: {
|
||||
'id-length': 'off',
|
||||
'react/forbid-component-props': 'off',
|
||||
},
|
||||
},
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
import { clsx, type ClassValue } from "clsx"
|
||||
import { twMerge } from "tailwind-merge"
|
||||
import { type ClassValue, clsx } from 'clsx';
|
||||
import { twMerge } from 'tailwind-merge';
|
||||
|
||||
export function cn(...inputs: ClassValue[]) {
|
||||
return twMerge(clsx(inputs))
|
||||
return twMerge(clsx(inputs));
|
||||
}
|
||||
|
||||
@ -6,7 +6,7 @@
|
||||
"dev": "next dev --turbopack",
|
||||
"build": "next build",
|
||||
"start": "next start",
|
||||
"lint": "next lint"
|
||||
"lint": "next lint --fix"
|
||||
},
|
||||
"dependencies": {
|
||||
"class-variance-authority": "^0.7.1",
|
||||
@ -25,7 +25,7 @@
|
||||
"@types/node": "^20",
|
||||
"@types/react": "19.1.17",
|
||||
"@types/react-dom": "19.1.17",
|
||||
"@vchikalkin/eslint-config-awesome": "^2.2.1",
|
||||
"@vchikalkin/eslint-config-awesome": "^2.2.3",
|
||||
"autoprefixer": "^10.4.20",
|
||||
"eslint": "^9.16.0",
|
||||
"eslint-plugin-tailwindcss": "^3.17.5",
|
||||
|
||||
2328
pnpm-lock.yaml
generated
2328
pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user