Skip to content

Commit c8c3a2b

Browse files
Setup husky, eslint, prettier and commitlint (codse#75)
1 parent 4f59c4b commit c8c3a2b

File tree

107 files changed

+1533
-1197
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

107 files changed

+1533
-1197
lines changed

.eslintignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/components/ui

.eslintrc.cjs

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
module.exports = {
2+
extends: [
3+
"next",
4+
"next/core-web-vitals",
5+
"plugin:storybook/recommended",
6+
"eslint:recommended",
7+
"plugin:react/recommended",
8+
"plugin:@typescript-eslint/recommended",
9+
"prettier",
10+
],
11+
plugins: ["react", "@typescript-eslint"],
12+
parserOptions: {
13+
ecmaVersion: 2021,
14+
sourceType: "module",
15+
},
16+
rules: {
17+
"react/react-in-jsx-scope": "off",
18+
quotes: ["error", "double"],
19+
"@typescript-eslint/no-explicit-any": "warn",
20+
"react/no-unknown-property": ["error", { ignore: ["vaul-drawer-wrapper"] }],
21+
"@next/next/no-img-element": "off",
22+
},
23+
};

.eslintrc.json

Lines changed: 0 additions & 6 deletions
This file was deleted.

.husky/commit-msg

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
npx --no-install commitlint --edit "$1"

.husky/pre-commit

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
npx lint-staged

.prettierrc

Lines changed: 0 additions & 10 deletions
This file was deleted.

.prettierrc.cjs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
module.exports = {
2+
semi: true,
3+
singleQuote: false,
4+
printWidth: 100,
5+
plugins: ["prettier-plugin-tailwindcss"],
6+
tailwindConfig: "./tailwind.config.ts",
7+
tailwindFunctions: [
8+
"clsx",
9+
"cn"
10+
]
11+
};

animata/background/moving-gradient.stories.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ export const Primary: Story = {
2525
<span>Priority notifications</span>
2626
</h4>
2727
<p className="break-words text-sm text-black/80">
28-
You can set up priority notifications to be alerted on your phone or
29-
computer for important emails.
28+
You can set up priority notifications to be alerted on your phone or computer for
29+
important emails.
3030
</p>
3131
</div>
3232
),

animata/bento-grid/eleven.tsx

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,8 @@
11
import { cn } from "@/lib/utils";
22

3-
function BentoCard({
4-
children,
5-
className,
6-
}: {
7-
children: React.ReactNode;
8-
className?: string;
9-
}) {
3+
function BentoCard({ children, className }: { children: React.ReactNode; className?: string }) {
104
return (
11-
<div
12-
className={cn(
13-
"relative h-full w-full overflow-hidden rounded-2xl p-4",
14-
className,
15-
)}
16-
>
5+
<div className={cn("relative h-full w-full overflow-hidden rounded-2xl p-4", className)}>
176
{children}
187
</div>
198
);

animata/bento-grid/five.tsx

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,8 @@
11
import { cn } from "@/lib/utils";
22

3-
function BentoCard({
4-
children,
5-
className,
6-
}: {
7-
children: React.ReactNode;
8-
className?: string;
9-
}) {
3+
function BentoCard({ children, className }: { children: React.ReactNode; className?: string }) {
104
return (
11-
<div
12-
className={cn(
13-
"relative h-full w-full overflow-hidden rounded-2xl p-4",
14-
className,
15-
)}
16-
>
5+
<div className={cn("relative h-full w-full overflow-hidden rounded-2xl p-4", className)}>
176
{children}
187
</div>
198
);

0 commit comments

Comments
 (0)