Skip to content

Commit

Permalink
chore: switch to single quotes
Browse files Browse the repository at this point in the history
  • Loading branch information
skippednote committed Sep 29, 2022
1 parent 10e6f6d commit b7f5509
Show file tree
Hide file tree
Showing 19 changed files with 107 additions and 107 deletions.
14 changes: 7 additions & 7 deletions .prettierrc
@@ -1,9 +1,9 @@
{
"arrowParens": "always",
"semi": true,
"tabWidth": 2,
"trailingComma": "all",
"endOfLine": "lf",
"singleQuote": false,
"printWidth": 80
"arrowParens": "always",
"semi": true,
"tabWidth": 2,
"trailingComma": "all",
"endOfLine": "lf",
"singleQuote": true,
"printWidth": 80
}
10 changes: 5 additions & 5 deletions components/button/Button.stories.tsx
@@ -1,18 +1,18 @@
import React from "react";
import Button from "./Button";
import React from 'react';
import Button from './Button';

export default {
title: "Button",
title: 'Button',
Component: Button,
};

const Template = (args) => <Button {...args} />;

export const Primary = Template.bind({});
Primary.args = {
children: "Primary",
children: 'Primary',
};
export const Secondary = Template.bind({});
Secondary.args = {
children: "Secondary",
children: 'Secondary',
};
14 changes: 7 additions & 7 deletions components/button/Button.test.tsx
@@ -1,15 +1,15 @@
import { render, screen } from "@testing-library/react";
import Button from "./Button";
import { render, screen } from '@testing-library/react';
import Button from './Button';

describe("Test Button component", () => {
it("renders the component", () => {
describe('Test Button component', () => {
it('renders the component', () => {
render(<Button>Test data</Button>);
const button = screen.getByRole("button");
const button = screen.getByRole('button');
expect(button).toBeInTheDocument();
});
it("renders the correct child data", () => {
it('renders the correct child data', () => {
render(<Button>Test data</Button>);
const button = screen.getByRole("button");
const button = screen.getByRole('button');
expect(button).toHaveTextContent(/test data/i);
});
});
2 changes: 1 addition & 1 deletion components/button/Button.tsx
@@ -1,4 +1,4 @@
import React from "react";
import React from 'react';

const Button = ({ children }) => {
return <button>{children}</button>;
Expand Down
4 changes: 2 additions & 2 deletions cypress.config.ts
@@ -1,8 +1,8 @@
import { defineConfig } from "cypress";
import { defineConfig } from 'cypress';

export default defineConfig({
e2e: {
baseUrl: "http://localhost:3000",
baseUrl: 'http://localhost:3000',
setupNodeEvents(on, config) {
// implement node event listeners here
},
Expand Down
6 changes: 3 additions & 3 deletions cypress/e2e/home.cy.ts
@@ -1,5 +1,5 @@
describe("homepage", () => {
it("it loads", () => {
cy.visit("/");
describe('homepage', () => {
it('it loads', () => {
cy.visit('/');
});
});
2 changes: 1 addition & 1 deletion cypress/support/commands.ts
Expand Up @@ -34,4 +34,4 @@
// visit(originalFn: CommandOriginalFn, url: string, options: Partial<VisitOptions>): Chainable<Element>
// }
// }
// }
// }
2 changes: 1 addition & 1 deletion cypress/support/e2e.ts
Expand Up @@ -14,7 +14,7 @@
// ***********************************************************

// Import commands.js using ES2015 syntax:
import "./commands";
import './commands';

// Alternatively you can use CommonJS syntax:
// require('./commands')
4 changes: 2 additions & 2 deletions getContentfulEnvironment.js
@@ -1,5 +1,5 @@
require("dotenv").config();
const contentfulManagement = require("contentful-management");
require('dotenv').config();
const contentfulManagement = require('contentful-management');

module.exports = function () {
const contentfulClient = contentfulManagement.createClient({
Expand Down
10 changes: 5 additions & 5 deletions jest.config.js
@@ -1,14 +1,14 @@
const nextJest = require("next/jest");
const nextJest = require('next/jest');

const createJestConfig = nextJest({
dir: "./",
dir: './',
});

/** @type {import('jest').Config} */
const customJestConfig = {
setupFilesAfterEnv: ["<rootDir>/jest.setup.js"],
moduleDirectories: ["node_modules", "<rootDir>/"],
testEnvironment: "jest-environment-jsdom",
setupFilesAfterEnv: ['<rootDir>/jest.setup.js'],
moduleDirectories: ['node_modules', '<rootDir>/'],
testEnvironment: 'jest-environment-jsdom',
};

module.exports = createJestConfig(customJestConfig);
2 changes: 1 addition & 1 deletion jest.setup.js
@@ -1 +1 @@
import "@testing-library/jest-dom/extend-expect";
import '@testing-library/jest-dom/extend-expect';
2 changes: 1 addition & 1 deletion next.config.js
Expand Up @@ -3,7 +3,7 @@ const nextConfig = {
reactStrictMode: true,
swcMinify: true,
images: {
domains: ["images.ctfassets.net"],
domains: ['images.ctfassets.net'],
},
};

Expand Down
6 changes: 3 additions & 3 deletions pages/_app.tsx
@@ -1,6 +1,6 @@
import React from "react";
import type { AppProps } from "next/app";
import "../styles/globals.css";
import React from 'react';
import type { AppProps } from 'next/app';
import '../styles/globals.css';

function MyApp({ Component, pageProps }: AppProps) {
return <Component {...pageProps} />;
Expand Down
2 changes: 1 addition & 1 deletion pages/api/hello.js
@@ -1,5 +1,5 @@
// Next.js API route support: https://nextjs.org/docs/api-routes/introduction

export default function handler(req, res) {
res.status(200).json({ name: "John Doe" });
res.status(200).json({ name: 'John Doe' });
}
10 changes: 5 additions & 5 deletions pages/index.tsx
@@ -1,6 +1,6 @@
import Head from "next/head";
import Image from "next/image";
import styles from "../styles/Home.module.css";
import Head from 'next/head';
import Image from 'next/image';
import styles from '../styles/Home.module.css';

export default function Home() {
return (
Expand Down Expand Up @@ -47,7 +47,7 @@ export default function Home() {
</h1>

<p className={styles.description}>
Get started by editing{" "}
Get started by editing{' '}
<code className={styles.code}>pages/index.js</code>
</p>

Expand Down Expand Up @@ -88,7 +88,7 @@ export default function Home() {
target="_blank"
rel="noopener noreferrer"
>
Powered by{" "}
Powered by{' '}
<span className={styles.logo}>
<Image src="/vercel.svg" alt="Vercel Logo" width={72} height={16} />
</span>
Expand Down
8 changes: 4 additions & 4 deletions pages/products/index.tsx
@@ -1,8 +1,8 @@
import Image from "next/image";
import React from "react";
import Image from 'next/image';
import React from 'react';

import contentfulClient from "../../utils/contentfulClient";
import { productsType } from "../../@types/product.types";
import contentfulClient from '../../utils/contentfulClient';
import { productsType } from '../../@types/product.types';

const Products = ({ products }: productsType) => {
return (
Expand Down
2 changes: 1 addition & 1 deletion postcss.config.js
Expand Up @@ -3,4 +3,4 @@ module.exports = {
tailwindcss: {},
autoprefixer: {},
},
}
};
2 changes: 1 addition & 1 deletion styles/globals.css
@@ -1,4 +1,4 @@
@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
@tailwind base;
@tailwind components;
@tailwind utilities;
112 changes: 56 additions & 56 deletions tailwind.config.js
@@ -1,92 +1,92 @@
/** @type {import('tailwindcss').Config} */
module.exports = {
content: [
"./pages/**/*.{js,ts,jsx,tsx}",
"./components/**/*.{js,ts,jsx,tsx}",
'./pages/**/*.{js,ts,jsx,tsx}',
'./components/**/*.{js,ts,jsx,tsx}',
],
theme: {
extend: {
screens: {
sm: "375px",
sm: '375px',
},
fontFamily: {
primary: ["Poppins", "sans-serif"],
primary: ['Poppins', 'sans-serif'],
},
margin: {
primary: "16px",
primary: '16px',
},
width: {
xxs: "35px",
xs: "54px",
sm: "115px",
lg: "164px",
xl: "165px",
"2xl": "294px",
"3xl": "312px",
"4xl": "343px",
"5xl": "375px",
xxs: '35px',
xs: '54px',
sm: '115px',
lg: '164px',
xl: '165px',
'2xl': '294px',
'3xl': '312px',
'4xl': '343px',
'5xl': '375px',
},
height: {
xxs: "35px",
xs: "48px",
sm: "54px",
lg: "116px",
xl: "120px",
"2xl": "1214px",
"3xl": "135px",
"4xl": "160px",
"5xl": "282px",
"6xl": "308px",
xxs: '35px',
xs: '48px',
sm: '54px',
lg: '116px',
xl: '120px',
'2xl': '1214px',
'3xl': '135px',
'4xl': '160px',
'5xl': '282px',
'6xl': '308px',
},
fontSize: {
sm: "11px",
md: "13px",
lg: "14px",
xl: "15px",
"2xl": "29px",
sm: '11px',
md: '13px',
lg: '14px',
xl: '15px',
'2xl': '29px',
},
lineHeight: {
xxs: "16.5px",
xs: "18px",
sm: "21px",
lg: "22.5px",
xl: "24px",
"2xl": "30px",
"3xl": "43.5px",
xxs: '16.5px',
xs: '18px',
sm: '21px',
lg: '22.5px',
xl: '24px',
'2xl': '30px',
'3xl': '43.5px',
},
borderRadius: {
xxs: "7px",
xs: "8px",
sm: "9px",
lg: "12px",
xl: "20px",
xxs: '7px',
xs: '8px',
sm: '9px',
lg: '12px',
xl: '20px',
},
colors: {
green: {
primary: "rgba(135, 221, 57, 1)",
secondary: "rgba(94, 196, 1, 1)",
primary: 'rgba(135, 221, 57, 1)',
secondary: 'rgba(94, 196, 1, 1)',
},
red: {
primary: "rgba(255, 85, 82, 1)",
secondary: "rgba(255, 85, 82, 0.72)",
primary: 'rgba(255, 85, 82, 1)',
secondary: 'rgba(255, 85, 82, 0.72)',
},
orange: {
light: "rgba(243, 122, 32, 1)",
light: 'rgba(243, 122, 32, 1)',
},
gray: {
light: "rgba(240, 241, 242, 1)",
darkish: "rgba(55, 71, 79, 0.72)",
light: 'rgba(240, 241, 242, 1)',
darkish: 'rgba(55, 71, 79, 0.72)',
},
light: {
regular: "rgba(252, 252, 252, 0.6)",
off: "rgba(54, 179, 126, 0.14)",
regular: 'rgba(252, 252, 252, 0.6)',
off: 'rgba(54, 179, 126, 0.14)',
},
silver: { light: "rgba(196, 196, 196, 1)" },
flashWhite: "rgba(243, 244, 244, 1)",
charcoal: "rgba(55, 71, 79, 1)",
blackOlive: "rgba(62, 62, 62, 1)",
silver: { light: 'rgba(196, 196, 196, 1)' },
flashWhite: 'rgba(243, 244, 244, 1)',
charcoal: 'rgba(55, 71, 79, 1)',
blackOlive: 'rgba(62, 62, 62, 1)',
},
},
},
plugins: [require("@tailwindcss/typography")],
}
plugins: [require('@tailwindcss/typography')],
};

0 comments on commit b7f5509

Please sign in to comment.