Skip to content

Commit b429682

Browse files
jlevine18devksingh4
andcommitted
nextui -> heroui + prettier integration (#216)
Co-authored-by: Dev Singh <[email protected]>
1 parent f01cdfd commit b429682

Some content is hidden

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

80 files changed

+9869
-155310
lines changed

Diff for: .editorconfig

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
[*]
2+
end_of_line = lf
3+
insert_final_newline = true
4+
indent_style = space
5+
indent_size = 2

Diff for: .eslintrc.json

+6-1
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,15 @@
11
{
22
"extends": [
33
"next/core-web-vitals",
4-
"plugin:storybook/recommended"
4+
"plugin:storybook/recommended",
5+
"prettier"
56
],
67
"rules": {
78
"@next/next/no-img-element": "off",
89
"react/no-unescaped-entities": "off"
10+
},
11+
"env": {
12+
"es2021": true,
13+
"node": true
914
}
1015
}

Diff for: .gitignore

+3
Original file line numberDiff line numberDiff line change
@@ -35,3 +35,6 @@ yarn-error.log*
3535
# typescript
3636
*.tsbuildinfo
3737
next-env.d.ts
38+
39+
# yarn
40+
.yarn/

Diff for: .prettier

Whitespace-only changes.

Diff for: .prettierignore

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
build/
2+
public/

Diff for: .prettierrc

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"tabWidth": 2,
3-
"semi": true,
4-
"singleQuote": true
5-
}
2+
"tabWidth": 2,
3+
"semi": true,
4+
"singleQuote": true
5+
}

Diff for: .prettierrc.json

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"trailingComma": "es5",
3+
"space": 2,
4+
"semi": true,
5+
"singleQuote": true
6+
}

Diff for: .storybook/main.ts

+9-9
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,22 @@
1-
import type { StorybookConfig } from "@storybook/nextjs";
1+
import type { StorybookConfig } from '@storybook/nextjs';
22

33
const config: StorybookConfig = {
44
stories: [
5-
"../src/**/*.stories.mdx",
6-
"../src/**/*.stories.@(js|jsx|mjs|ts|tsx)"
5+
'../src/**/*.stories.mdx',
6+
'../src/**/*.stories.@(js|jsx|mjs|ts|tsx)',
77
],
88
addons: [
9-
"@storybook/addon-links",
10-
"@storybook/addon-essentials",
11-
"@storybook/addon-onboarding",
12-
"@storybook/addon-interactions",
9+
'@storybook/addon-links',
10+
'@storybook/addon-essentials',
11+
'@storybook/addon-onboarding',
12+
'@storybook/addon-interactions',
1313
],
1414
framework: {
15-
name: "@storybook/nextjs",
15+
name: '@storybook/nextjs',
1616
options: {},
1717
},
1818
docs: {
19-
autodocs: "tag",
19+
autodocs: 'tag',
2020
},
2121
};
2222
export default config;

Diff for: .storybook/preview.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
import type { Preview } from "@storybook/react";
1+
import type { Preview } from '@storybook/react';
22

33
const preview: Preview = {
44
parameters: {
5-
actions: { argTypesRegex: "^on[A-Z].*" },
5+
actions: { argTypesRegex: '^on[A-Z].*' },
66
controls: {
77
matchers: {
88
color: /(background|color)$/i,

Diff for: .yarn/install-state.gz

-2.38 MB
Binary file not shown.

0 commit comments

Comments
 (0)