Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

style: fix linter issues

Muhammad Rivki548d33ad942b
diff --git a/supabase-ui/babel.config.js b/supabase-ui/babel.config.js
index 556a79e8b6c..52c97f8ec24 100644
--- a/supabase-ui/babel.config.js
+++ b/supabase-ui/babel.config.js
@@ -1,22 +1,16 @@
module.exports = {
- "presets": [
+ presets: [
[
- "@babel/env",
+ '@babel/env',
{
- "modules": false,
- "loose": true,
- "targets": {
- "browsers": [
- ">2%"
- ]
- }
- }
+ modules: false,
+ loose: true,
+ targets: {
+ browsers: ['>2%'],
+ },
+ },
],
- "@babel/preset-react"
+ '@babel/preset-react',
],
- "plugins": [
- "macros",
- "@emotion/babel-plugin",
- "add-react-displayname"
- ]
-}
\ No newline at end of file
+ plugins: ['macros', '@emotion/babel-plugin', 'add-react-displayname'],
+}
diff --git a/supabase-ui/rollup.config.js b/supabase-ui/rollup.config.js
index 5544f56c0d1..d0204749914 100644
--- a/supabase-ui/rollup.config.js
+++ b/supabase-ui/rollup.config.js
@@ -1,20 +1,20 @@
-import babel from '@rollup/plugin-babel';
-import external from 'rollup-plugin-peer-deps-external';
-import del from 'rollup-plugin-delete';
-import pkg from './package.json';
+import babel from '@rollup/plugin-babel'
+import external from 'rollup-plugin-peer-deps-external'
+import del from 'rollup-plugin-delete'
+import pkg from './package.json'
export default {
input: pkg.source,
output: [
{ file: pkg.main, format: 'cjs' },
- { file: pkg.module, format: 'esm' }
+ { file: pkg.module, format: 'esm' },
],
plugins: [
external(),
babel({
- exclude: 'node_modules/**'
+ exclude: 'node_modules/**',
}),
del({ targets: ['dist/*'] }),
],
external: Object.keys(pkg.peerDependencies || {}),
-};
\ No newline at end of file
+}
diff --git a/supabase-ui/src/components/Button/Button.js b/supabase-ui/src/components/Button/Button.js
index 47cf760b9bb..afad2a28242 100644
--- a/supabase-ui/src/components/Button/Button.js
+++ b/supabase-ui/src/components/Button/Button.js
@@ -20,4 +20,4 @@ const Button = ({ className, children, ...props }) => (
</BaseButton>
)
-export default Button
\ No newline at end of file
+export default Button
diff --git a/supabase-ui/src/components/Button/Button.stories.js b/supabase-ui/src/components/Button/Button.stories.js
index ef4973d74b0..8b7bc46e1c1 100644
--- a/supabase-ui/src/components/Button/Button.stories.js
+++ b/supabase-ui/src/components/Button/Button.stories.js
@@ -1,14 +1,10 @@
-import React from 'react';
+import React from 'react'
import { Button } from '.'
export default {
title: 'Basic/Button',
component: Button,
-};
+}
-const Template = (args) => <Button {...args} />;
-
-export const Primary = (args) => <Button>
- Some Children
-</Button>
+export const Primary = (args) => <Button>Some Children</Button>
diff --git a/supabase-ui/src/components/Button/index.js b/supabase-ui/src/components/Button/index.js
index 96e26ec3e45..3f9defb9e3c 100644
--- a/supabase-ui/src/components/Button/index.js
+++ b/supabase-ui/src/components/Button/index.js
@@ -1 +1 @@
-export { default as Button } from './Button'
\ No newline at end of file
+export { default as Button } from './Button'
diff --git a/supabase-ui/src/setupTests.js b/supabase-ui/src/setupTests.js
index 74b1a275a0e..2eb59b05d85 100644
--- a/supabase-ui/src/setupTests.js
+++ b/supabase-ui/src/setupTests.js
@@ -2,4 +2,4 @@
// allows you to do things like:
// expect(element).toHaveTextContent(/react/i)
// learn more: https://github.com/testing-library/jest-dom
-import '@testing-library/jest-dom/extend-expect';
+import '@testing-library/jest-dom/extend-expect'
diff --git a/supabase-ui/tailwind.config.js b/supabase-ui/tailwind.config.js
index 21191657c1f..dea5bd9bf2d 100644
--- a/supabase-ui/tailwind.config.js
+++ b/supabase-ui/tailwind.config.js
@@ -6,4 +6,4 @@ module.exports = {
},
variants: {},
plugins: [require('@tailwindcss/ui')],
-}
\ No newline at end of file
+}