Skip to content

Commit aabfca9

Browse files
authored
Merge pull request #51 from rtCamp/chore/pretty-code
Chore: Prettify codebase
2 parents 8816f88 + c80eea1 commit aabfca9

File tree

162 files changed

+5740
-2505
lines changed

Some content is hidden

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

162 files changed

+5740
-2505
lines changed

.storybook/main.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ const config: StorybookConfig = {
1515
getAbsolutePath("@storybook/addon-docs"),
1616
getAbsolutePath("@storybook/addon-onboarding"),
1717
getAbsolutePath("@storybook/addon-a11y"),
18-
getAbsolutePath('@storybook/addon-themes'),
18+
getAbsolutePath("@storybook/addon-themes"),
1919
],
2020
framework: {
2121
name: getAbsolutePath("@storybook/react-vite"),

.storybook/manager.ts

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
1-
import { addons } from 'storybook/manager-api';
2-
import { create } from 'storybook/theming';
1+
import { addons } from "storybook/manager-api";
2+
import { create } from "storybook/theming";
33

44
addons.setConfig({
55
theme: create({
6-
base: 'light',
7-
brandTitle: '<span id="fur-title">frappe-ui-react</span> <span id="fur-version">(v1.0.0-beta.0)</span>', // update version as per package.json
6+
base: "light",
7+
brandTitle:
8+
'<span id="fur-title">frappe-ui-react</span> <span id="fur-version">(v1.0.0-beta.0)</span>', // update version as per package.json
89
brandUrl: undefined, // disables link on the title
9-
brandImage: undefined
10+
brandImage: undefined,
1011
}),
11-
});
12+
});

.storybook/modeDecorator.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
import { withThemeByClassName } from '@storybook/addon-themes';
1+
import { withThemeByClassName } from "@storybook/addon-themes";
22

33
export const decorators = [
44
withThemeByClassName({
55
themes: {
6-
light: '', // Class name for light mode
7-
dark: 'dark', // Class name for dark mode
6+
light: "", // Class name for light mode
7+
dark: "dark", // Class name for dark mode
88
},
9-
defaultTheme: 'light', // Default theme
9+
defaultTheme: "light", // Default theme
1010
}),
1111
];

.storybook/preview.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
import type { Preview } from "@storybook/react-vite";
2-
import {decorators} from "./modeDecorator";
32
import "@rtcamp/frappe-ui-react/theme.css";
43

4+
import { decorators } from "./modeDecorator";
5+
56
const preview: Preview = {
67
decorators,
78
parameters: {

.storybook/vitest.setup.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
import * as a11yAddonAnnotations from "@storybook/addon-a11y/preview";
2-
import { setProjectAnnotations } from '@storybook/react-vite';
3-
import * as projectAnnotations from './preview';
2+
import { setProjectAnnotations } from "@storybook/react-vite";
3+
4+
import * as projectAnnotations from "./preview";
45

56
// This is an important step to apply the right configuration when testing your stories.
67
// More info at: https://storybook.js.org/docs/api/portable-stories/portable-stories-vitest#setprojectannotations
7-
setProjectAnnotations([a11yAddonAnnotations, projectAnnotations]);
8+
setProjectAnnotations([a11yAddonAnnotations, projectAnnotations]);

babel.config.cjs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
11
module.exports = function (api) {
2-
const isProduction = api.env('production');
2+
const isProduction = api.env("production");
33

44
return {
55
presets: [
6-
['@babel/preset-env'],
6+
["@babel/preset-env"],
77
[
8-
'@babel/preset-react',
8+
"@babel/preset-react",
99
{
1010
development: !isProduction,
11-
runtime: 'automatic',
11+
runtime: "automatic",
1212
},
1313
],
14-
'@babel/preset-typescript',
14+
"@babel/preset-typescript",
1515
],
1616
plugins: [
17-
['@babel/plugin-transform-react-jsx', {runtime: 'automatic'}],
18-
['babel-plugin-styled-components'],
17+
["@babel/plugin-transform-react-jsx", { runtime: "automatic" }],
18+
["babel-plugin-styled-components"],
1919
],
2020
sourceMaps: true,
2121
};

0 commit comments

Comments
 (0)