Skip to content

Commit ac38e34

Browse files
committed
Configure formatter to use single quotes
https://claude.ai/code/session_01Fsp32NvHiLU7Y141BfEsit
1 parent fed5964 commit ac38e34

211 files changed

Lines changed: 2065 additions & 2064 deletions

File tree

Some content is hidden

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

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
---
22
name: Bug report
33
about: Create a report to help us improve. Please check the Troubleshooting section before opening an issue.
4-
title: ""
5-
labels: "bug: pending triage"
6-
assignees: ""
4+
title: ''
5+
labels: 'bug: pending triage'
6+
assignees: ''
77
---
88

99
[troubleshooting section]: https://iles-docs.netlify.app/faqs/troubleshooting

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@ blank_issues_enabled: false
22
contact_links:
33
- name: Troubleshooting & FAQs
44
url: https://iles-docs.netlify.app/faqs/troubleshooting
5-
about: "Please check the most common configuration problems before opening an issue."
5+
about: 'Please check the most common configuration problems before opening an issue.'
66
- name: Discord Chat
77
url: https://discord.com/channels/804011606160703521/900707742203920394
8-
about: "Discuss with other users in the #iles channel of the Vite.js Discord server."
8+
about: 'Discuss with other users in the #iles channel of the Vite.js Discord server.'
99
- name: Questions & Discussions
1010
url: https://github.com/ElMassimo/iles/discussions
1111
about: Use GitHub discussions for questions and discussions.

.github/ISSUE_TEMPLATE/feature_request.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
---
22
name: Feature request
33
about: Suggest an idea for this project
4-
title: ""
5-
labels: ""
6-
assignees: ""
4+
title: ''
5+
labels: ''
6+
assignees: ''
77
---
88

99
**Is your feature request related to a problem? Please describe.**

.github/workflows/build.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: build
33
on:
44
push:
55
branches:
6-
- "**"
6+
- '**'
77

88
pull_request:
99
branches:
@@ -101,7 +101,7 @@ jobs:
101101
runs-on: ubuntu-latest
102102
steps:
103103
- name: Netlify
104-
run: "curl -X POST -d {} $BUILD_HOOK"
104+
run: 'curl -X POST -d {} $BUILD_HOOK'
105105

106106
blog:
107107
if: github.ref == 'refs/heads/main' && contains(github.event.head_commit.message, 'blog')
@@ -112,7 +112,7 @@ jobs:
112112
runs-on: ubuntu-latest
113113
steps:
114114
- name: Netlify
115-
run: "curl -X POST -d {} $BUILD_HOOK"
115+
run: 'curl -X POST -d {} $BUILD_HOOK'
116116

117117
crawl:
118118
if: github.ref == 'refs/heads/main' && (contains(github.event.head_commit.message, 'docs') || startsWith(github.event.head_commit.message, 'crawl'))
@@ -127,9 +127,9 @@ jobs:
127127
- name: Wait for Netlify deployment
128128
uses: whatnick/wait-action@master
129129
with:
130-
time: "30s"
130+
time: '30s'
131131
- uses: actions/checkout@v2
132-
- run: "sudo apt-get install -y jq"
132+
- run: 'sudo apt-get install -y jq'
133133
- run: 'echo "CONFIG=$(cat docs/.algolia/config.json | jq -r tostring)" >> $GITHUB_ENV'
134-
- run: "cd /root && pipenv install"
135-
- run: "cd /root && pipenv run python -m src.index"
134+
- run: 'cd /root && pipenv install'
135+
- run: 'cd /root && pipenv run python -m src.index'

.oxfmtrc.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
22
"$schema": "./node_modules/oxfmt/configuration_schema.json",
3-
"semi": false
3+
"semi": false,
4+
"singleQuote": true
45
}

docs/cypress.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@ export default {
55
runMode: 4,
66
},
77
e2e: {
8-
baseUrl: "http://localhost:3050",
8+
baseUrl: 'http://localhost:3050',
99
},
1010
}
Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,34 @@
1-
import { visitHome, navigateTo, goBackHome, assertPage } from "./helpers"
1+
import { visitHome, navigateTo, goBackHome, assertPage } from './helpers'
22

3-
describe("Dark Mode", () => {
3+
describe('Dark Mode', () => {
44
const toggleTheme = () => {
55
cy.get(`[aria-label="Toggle theme"]`).click()
66
}
77

88
const assertTheme = (theme) =>
9-
cy.get("html").then((html) => expect(html.hasClass("dark")).to.equal(theme === "dark"))
9+
cy.get('html').then((html) => expect(html.hasClass('dark')).to.equal(theme === 'dark'))
1010

11-
it("can toggle on and off", () => {
11+
it('can toggle on and off', () => {
1212
visitHome()
13-
cy.get("html").then((html) => {
14-
if (html.hasClass("dark")) toggleTheme()
15-
assertTheme("light")
13+
cy.get('html').then((html) => {
14+
if (html.hasClass('dark')) toggleTheme()
15+
assertTheme('light')
1616
})
1717

1818
toggleTheme()
19-
assertTheme("dark")
19+
assertTheme('dark')
2020

2121
// Ensure Turbo hydrates after navigation.
22-
navigateTo("Install")
23-
assertPage({ title: "Getting Started" })
24-
assertTheme("dark")
22+
navigateTo('Install')
23+
assertPage({ title: 'Getting Started' })
24+
assertTheme('dark')
2525

2626
toggleTheme()
27-
assertTheme("light")
27+
assertTheme('light')
2828

2929
goBackHome()
3030

3131
toggleTheme()
32-
assertTheme("dark")
32+
assertTheme('dark')
3333
})
3434
})

docs/cypress/e2e/docsearch.cypress.cy.js

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,25 @@
1-
import { visitHome, navigateTo, goBackHome, assertPage } from "./helpers"
1+
import { visitHome, navigateTo, goBackHome, assertPage } from './helpers'
22

3-
describe("DocSearch", () => {
3+
describe('DocSearch', () => {
44
const openSearchModal = () => {
55
cy.get(`.nav-bar-button[aria-label="Search"]`).click()
6-
searchModal().should("be.visible")
6+
searchModal().should('be.visible')
77
}
88

99
const openSearchModalWithKeyboard = () => {
1010
cy.wait(100) // Give Turbo time to replace the body.
11-
cy.get("body").type("{cmd+k}")
12-
searchModal().should("be.visible")
11+
cy.get('body').type('{cmd+k}')
12+
searchModal().should('be.visible')
1313
}
1414

15-
const searchModal = () => cy.get(".DocSearch-Modal")
15+
const searchModal = () => cy.get('.DocSearch-Modal')
1616

1717
const closeSearchModal = () => {
18-
cy.get("body").type("{esc}")
19-
searchModal().should("not.exist")
18+
cy.get('body').type('{esc}')
19+
searchModal().should('not.exist')
2020
}
2121

22-
it("can open by clicking or with keystroke", () => {
22+
it('can open by clicking or with keystroke', () => {
2323
visitHome()
2424
openSearchModal()
2525
closeSearchModal()
@@ -28,8 +28,8 @@ describe("DocSearch", () => {
2828
closeSearchModal()
2929

3030
// Ensure Turbo reactivates the islands.
31-
navigateTo("FAQs")
32-
assertPage({ title: "FAQs" })
31+
navigateTo('FAQs')
32+
assertPage({ title: 'FAQs' })
3333

3434
openSearchModal()
3535
closeSearchModal()
@@ -39,32 +39,32 @@ describe("DocSearch", () => {
3939
closeSearchModal()
4040
})
4141

42-
it("can search and navigate to a result", () => {
42+
it('can search and navigate to a result', () => {
4343
visitHome()
4444
openSearchModal()
4545

4646
// Type a search query.
47-
cy.get(".DocSearch-Input").type("hydration")
48-
cy.get(".DocSearch-Hit", { timeout: 10000 }).should("exist")
47+
cy.get('.DocSearch-Input').type('hydration')
48+
cy.get('.DocSearch-Hit', { timeout: 10000 }).should('exist')
4949

5050
// Click the first result.
51-
cy.get(".DocSearch-Hit").first().click()
51+
cy.get('.DocSearch-Hit').first().click()
5252

5353
// Verify navigation happened — should be on a page about hydration.
54-
cy.url().should("include", "hydration")
55-
cy.get("h1")
56-
.invoke("text")
54+
cy.url().should('include', 'hydration')
55+
cy.get('h1')
56+
.invoke('text')
5757
.then((text) => {
58-
expect(text.toLowerCase()).to.include("hydration")
58+
expect(text.toLowerCase()).to.include('hydration')
5959
})
6060
})
6161

62-
it("search works after turbo navigation", () => {
62+
it('search works after turbo navigation', () => {
6363
visitHome()
6464

6565
// Navigate to another page via sidebar link.
66-
navigateTo("FAQs")
67-
assertPage({ title: "FAQs" })
66+
navigateTo('FAQs')
67+
assertPage({ title: 'FAQs' })
6868

6969
// Search should still work after turbo navigation.
7070
openSearchModalWithKeyboard()

docs/cypress/e2e/helpers.js

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
export const assertPage = ({ title, content }) => {
2-
cy.get("h1").should("contain", title)
3-
if (content) cy.get("p").should("contain", content)
2+
cy.get('h1').should('contain', title)
3+
if (content) cy.get('p').should('contain', content)
44
}
55

66
export const navigateTo = (title) => {
7-
cy.get("a").contains(title).click()
7+
cy.get('a').contains(title).click()
88
waitForHydration()
99
}
1010

@@ -13,18 +13,18 @@ export const visit = (path) => {
1313
waitForHydration()
1414
}
1515

16-
export const visitHome = () => visit("/")
16+
export const visitHome = () => visit('/')
1717

1818
export const goBackHome = () => {
19-
cy.go("back")
20-
assertPage({ title: "îles" })
19+
cy.go('back')
20+
assertPage({ title: 'îles' })
2121
waitForHydration()
2222
}
2323

2424
// Wait until the relevant islands are hydrated.
2525
export const waitForHydration = () => {
2626
cy.wait(100)
27-
cy.get("#ile-1[hydrated]").should("have.length", 1)
28-
cy.get("#ile-2[hydrated]").should("have.length", 1)
29-
cy.get("#ile-3[hydrated]").should("have.length", 1)
27+
cy.get('#ile-1[hydrated]').should('have.length', 1)
28+
cy.get('#ile-2[hydrated]').should('have.length', 1)
29+
cy.get('#ile-3[hydrated]').should('have.length', 1)
3030
}

docs/cypress/e2e/home.cypress.cy.js

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,27 @@
1-
import { visitHome, navigateTo, assertPage, goBackHome } from "./helpers"
1+
import { visitHome, navigateTo, assertPage, goBackHome } from './helpers'
22

3-
describe("The Home Page", () => {
4-
it("successfully loads", () => {
3+
describe('The Home Page', () => {
4+
it('successfully loads', () => {
55
visitHome()
6-
assertPage({ title: "îles", content: "The Joyful Site Generator" })
7-
cy.get("section")
8-
.should("contain", "Partial Hydration")
9-
.should("contain", "Ship JS only for the interactive bits")
6+
assertPage({ title: 'îles', content: 'The Joyful Site Generator' })
7+
cy.get('section')
8+
.should('contain', 'Partial Hydration')
9+
.should('contain', 'Ship JS only for the interactive bits')
1010

11-
navigateTo("Get Started")
12-
assertPage({ title: "Introduction" })
13-
cy.get("aside").should("contain", "🧱 Layouts and Components")
14-
cy.get("blockquote").should("contain", "Project Status: Beta")
11+
navigateTo('Get Started')
12+
assertPage({ title: 'Introduction' })
13+
cy.get('aside').should('contain', '🧱 Layouts and Components')
14+
cy.get('blockquote').should('contain', 'Project Status: Beta')
1515

1616
goBackHome()
1717
})
1818

19-
it("serves a valid pwa-manifest.json", () => {
20-
cy.request("/pwa-manifest.json").then((response) => {
19+
it('serves a valid pwa-manifest.json', () => {
20+
cy.request('/pwa-manifest.json').then((response) => {
2121
expect(response.status).to.eq(200)
22-
expect(response.headers["content-type"]).to.include("application/json")
23-
expect(response.body.name).to.eq("îles")
24-
expect(response.body.theme_color).to.eq("#5C7E8F")
22+
expect(response.headers['content-type']).to.include('application/json')
23+
expect(response.body.name).to.eq('îles')
24+
expect(response.body.theme_color).to.eq('#5C7E8F')
2525
expect(response.body.icons).to.have.length(3)
2626
})
2727
})

0 commit comments

Comments
 (0)