Skip to content
This repository was archived by the owner on Sep 7, 2023. It is now read-only.

Commit c95412f

Browse files
authored
style: change prettier config (#749)
* style: change prettier config * style: fix format
1 parent 6b59399 commit c95412f

25 files changed

+70
-70
lines changed

.prettierrc.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"arrowParens": "always",
2+
"arrowParens": "avoid",
33
"semi": false,
44
"singleQuote": true,
5-
"trailingComma": "none"
5+
"trailingComma": "es5"
66
}

__tests__/app.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ describe('app.vue', () => {
77
test('renders correctly', () => {
88
// Arrange - Act
99
const wrapper = mount(App, {
10-
global: { stubs: { Navbar: true, NuxtPage: true } }
10+
global: { stubs: { Navbar: true, NuxtPage: true } },
1111
})
1212

1313
// Assert

__tests__/components/Navbar.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import { plugins } from '../test-utils'
88
describe('components/Navbar.vue', () => {
99
const global = {
1010
plugins,
11-
stubs: { NuxtLink: RouterLinkStub, SearchBox: true }
11+
stubs: { NuxtLink: RouterLinkStub, SearchBox: true },
1212
}
1313

1414
test('renders correctly', () => {

__tests__/components/SearchBox.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ describe('components/SearchBox.vue', () => {
1313
{ slug: 'boys-smiledk', name: 'BOYS', artist: 'smile. dk' },
1414
{ slug: 'butterfly', name: 'butterfly', artist: 'smile. dk' },
1515
{ slug: 'little-bitch', name: 'LITTLE BITCH', artist: 'THE SPECIALS' },
16-
{ slug: 'my-fire', name: 'MY FIRE', artist: 'X-TREME' }
16+
{ slug: 'my-fire', name: 'MY FIRE', artist: 'X-TREME' },
1717
]
1818
beforeEach(() => {
1919
vi.mocked(useSongList).mockResolvedValue({ songs: ref(songs) } as any)

__tests__/components/content/Charts.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ describe('components/content/Charts.vue', () => {
1111
props: {
1212
difficulties: mockSoftware.difficulties,
1313
charts: '0,1,2,3',
14-
levels: '1,2,3,4'
15-
}
14+
levels: '1,2,3,4',
15+
},
1616
})
1717
expect(wrapper.element).toMatchSnapshot()
1818
})

__tests__/components/content/Level.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ describe('components/content/Level.vue', () => {
77
test('renders series link', () => {
88
const wrapper = mount(Level, {
99
global: { stubs: { NuxtLink: RouterLinkStub } },
10-
props: { slug: '1st-jp', level: 5 }
10+
props: { slug: '1st-jp', level: 5 },
1111
})
1212
expect(wrapper.element).toMatchSnapshot()
1313
})

__tests__/components/content/Prose.test.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ describe('components/content/', () => {
1717
const wrapper = mount(ProseA, {
1818
global,
1919
slots: { default: 'Link' },
20-
props: { href: '/songs' }
20+
props: { href: '/songs' },
2121
})
2222
expect(wrapper.element).toMatchSnapshot()
2323
})
@@ -28,7 +28,7 @@ describe('components/content/', () => {
2828
const wrapper = mount(ProseH2, {
2929
global,
3030
slots: { default: 'Header2' },
31-
props: { id: 'Header2' }
31+
props: { id: 'Header2' },
3232
})
3333
expect(wrapper.element).toMatchSnapshot()
3434
})
@@ -39,7 +39,7 @@ describe('components/content/', () => {
3939
const wrapper = mount(ProseH3, {
4040
global,
4141
slots: { default: 'Header3' },
42-
props: { id: 'Header3' }
42+
props: { id: 'Header3' },
4343
})
4444
expect(wrapper.element).toMatchSnapshot()
4545
})
@@ -56,7 +56,7 @@ describe('components/content/', () => {
5656
test('renders <table>', () => {
5757
const wrapper = mount(ProseTable, {
5858
global,
59-
slots: { default: 'Content' }
59+
slots: { default: 'Content' },
6060
})
6161
expect(wrapper.element).toMatchSnapshot()
6262
})

__tests__/components/content/SeriesList.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ describe('components/content/SeriesList.vue', () => {
77
test('renders series link', () => {
88
const wrapper = mount(SeriesList, {
99
global: { stubs: { NuxtLink: RouterLinkStub } },
10-
props: { series: ['1st-jp', 'gb', 'us'] }
10+
props: { series: ['1st-jp', 'gb', 'us'] },
1111
})
1212
expect(wrapper.element).toMatchSnapshot()
1313
})

__tests__/content/series.test.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@ import seriesList from '~~/content/series/.seriesList.json'
1212
const dirpath = './content/series'
1313

1414
describe('content/series/', async () => {
15-
const fileNames = (await readdir(dirpath)).filter((s) => s[0] !== '.')
15+
const fileNames = (await readdir(dirpath)).filter(s => s[0] !== '.')
1616

17-
describe.each(fileNames)('%s', async (fileName) => {
17+
describe.each(fileNames)('%s', async fileName => {
1818
const slug = basename(fileName, '.md')
1919
const markdownString = await readFile(`${dirpath}/${fileName}`, {
20-
encoding: 'utf8'
20+
encoding: 'utf8',
2121
})
2222
const mdcContent = load(
2323
markdownString.match(/^-{3}(.+)-{3}$/ms)![1]
@@ -49,7 +49,7 @@ describe('content/series/', async () => {
4949
'is-difficult',
5050
'is-expert',
5151
'is-challenge',
52-
'is-unknown'
52+
'is-unknown',
5353
]).toContain(element.class)
5454
}
5555
})

__tests__/content/songs.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@ import seriesList from '~~/content/series/.seriesList.json'
1111
const dirpath = './content/songs'
1212

1313
describe('content/songs/', async () => {
14-
const fileNames = (await readdir(dirpath)).filter((s) => s[0] !== '.')
14+
const fileNames = (await readdir(dirpath)).filter(s => s[0] !== '.')
1515

16-
describe.each(fileNames)('%s', async (fileName) => {
16+
describe.each(fileNames)('%s', async fileName => {
1717
const markdownString = await readFile(`${dirpath}/${fileName}`, {
18-
encoding: 'utf8'
18+
encoding: 'utf8',
1919
})
2020
const mdcContent = load(
2121
markdownString.match(/^-{3}(.+)-{3}$/ms)![1]

0 commit comments

Comments
 (0)