Skip to content

Commit 565b872

Browse files
committed
style: 🎨 update prettier config
run prettier
1 parent 83e43e4 commit 565b872

Some content is hidden

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

64 files changed

+931
-935
lines changed

.eslintrc.cjs

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,24 @@
11
module.exports = {
2-
root: true,
3-
parser: '@typescript-eslint/parser',
4-
extends: [
5-
'eslint:recommended',
6-
'plugin:@typescript-eslint/recommended',
7-
'prettier',
8-
],
9-
plugins: ['svelte3', '@typescript-eslint'],
10-
ignorePatterns: ['*.cjs'],
11-
overrides: [{ files: ['*.svelte'], processor: 'svelte3/svelte3' }],
12-
settings: {
13-
'svelte3/typescript': () => require('typescript'),
14-
},
15-
parserOptions: {
16-
sourceType: 'module',
17-
ecmaVersion: 2020,
18-
},
19-
env: {
20-
browser: true,
21-
es2017: true,
22-
node: true,
23-
},
2+
root: true,
3+
parser: '@typescript-eslint/parser',
4+
extends: [
5+
'eslint:recommended',
6+
'plugin:@typescript-eslint/recommended',
7+
'prettier',
8+
],
9+
plugins: ['svelte3', '@typescript-eslint'],
10+
ignorePatterns: ['*.cjs'],
11+
overrides: [{ files: ['*.svelte'], processor: 'svelte3/svelte3' }],
12+
settings: {
13+
'svelte3/typescript': () => require('typescript'),
14+
},
15+
parserOptions: {
16+
sourceType: 'module',
17+
ecmaVersion: 2020,
18+
},
19+
env: {
20+
browser: true,
21+
es2017: true,
22+
node: true,
23+
},
2424
}

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,35 +4,42 @@ about: Create a report to help us improve
44
title: ''
55
labels: ''
66
assignees: ''
7-
87
---
98

109
**Describe the bug**
10+
1111
A clear and concise description of what the bug is.
1212

1313
**To Reproduce**
14+
1415
Steps to reproduce the behavior:
16+
1517
1. Go to '...'
1618
2. Click on '....'
1719
3. Scroll down to '....'
1820
4. See error
1921

2022
**Expected behavior**
23+
2124
A clear and concise description of what you expected to happen.
2225

2326
**Screenshots**
27+
2428
If applicable, add screenshots to help explain your problem.
2529

2630
**Desktop (please complete the following information):**
27-
- OS: [e.g. iOS]
28-
- Browser [e.g. chrome, safari]
29-
- Version [e.g. 22]
31+
32+
- OS: [e.g. iOS]
33+
- Browser [e.g. chrome, safari]
34+
- Version [e.g. 22]
3035

3136
**Smartphone (please complete the following information):**
32-
- Device: [e.g. iPhone6]
33-
- OS: [e.g. iOS8.1]
34-
- Browser [e.g. stock browser, safari]
35-
- Version [e.g. 22]
37+
38+
- Device: [e.g. iPhone6]
39+
- OS: [e.g. iOS8.1]
40+
- Browser [e.g. stock browser, safari]
41+
- Version [e.g. 22]
3642

3743
**Additional context**
44+
3845
Add any other context about the problem here.

.github/ISSUE_TEMPLATE/feature_request.md

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,22 @@ about: Suggest an idea for this project
44
title: ''
55
labels: ''
66
assignees: ''
7-
87
---
98

109
**Is your feature request related to a problem? Please describe.**
11-
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
10+
11+
A clear and concise description of what the problem is. Ex. I'm always
12+
frustrated when [...]
1213

1314
**Describe the solution you'd like**
15+
1416
A clear and concise description of what you want to happen.
1517

1618
**Describe alternatives you've considered**
17-
A clear and concise description of any alternative solutions or features you've considered.
19+
20+
A clear and concise description of any alternative solutions or
21+
features you've considered.
1822

1923
**Additional context**
24+
2025
Add any other context or screenshots about the feature request here.

.prettierignore

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
.DS_Store
2+
node_modules
3+
/build
4+
/.svelte-kit
5+
/package
6+
.env
7+
.env.*
8+
!.env.example
9+
10+
# Ignore files for PNPM, NPM and YARN
11+
pnpm-lock.yaml
12+
package-lock.json
13+
yarn.lock

.prettierrc

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,14 @@
11
{
2-
"singleQuote": true,
3-
"semi": false,
4-
"trailingComma": "es5",
5-
"printWidth": 70,
6-
"arrowParens": "avoid",
7-
"proseWrap": "always"
2+
"useTabs": true,
3+
"singleQuote": true,
4+
"semi": false,
5+
"trailingComma": "es5",
6+
"printWidth": 70,
7+
"arrowParens": "avoid",
8+
"proseWrap": "always",
9+
"plugins": ["prettier-plugin-svelte"],
10+
"pluginSearchDirs": ["."],
11+
"overrides": [
12+
{ "files": "*.svelte", "options": { "parser": "svelte" } }
13+
]
814
}

.vscode/extensions.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
{
2-
"recommendations": [
3-
"streetsidesoftware.code-spell-checker",
4-
"fivethree.vscode-svelte-snippets",
5-
"svelte.svelte-vscode",
6-
"ardenivanov.svelte-intellisense",
7-
"bradlc.vscode-tailwindcss"
8-
]
2+
"recommendations": [
3+
"streetsidesoftware.code-spell-checker",
4+
"fivethree.vscode-svelte-snippets",
5+
"svelte.svelte-vscode",
6+
"ardenivanov.svelte-intellisense",
7+
"bradlc.vscode-tailwindcss"
8+
]
99
}

.vscode/settings.json

Lines changed: 6 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,8 @@
11
{
2-
"css.validate": false,
3-
"editor.codeActionsOnSave": {
4-
"source.organizeImports": true
5-
},
6-
"git.enableSmartCommit": true,
7-
"git.postCommitCommand": "sync",
8-
"cSpell.words": [
9-
"adamwathan",
10-
"allowtransparency",
11-
"atrule",
12-
"Cahllagerfeld",
13-
"daisyui",
14-
"deezer",
15-
"Drasner",
16-
"Drasner's",
17-
"iframe",
18-
"Mandal",
19-
"mdsvex",
20-
"noopener",
21-
"pauliescanlon",
22-
"purrfect",
23-
"sdras",
24-
"Souvik",
25-
"spencee",
26-
"spences",
27-
"sveltejs",
28-
"sveltkit",
29-
"vieria",
30-
"vite",
31-
"zencastr",
32-
"Zrzbx"
33-
]
2+
"css.validate": false,
3+
"editor.codeActionsOnSave": {
4+
"source.organizeImports": true
5+
},
6+
"git.enableSmartCommit": true,
7+
"git.postCommitCommand": "sync"
348
}

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,4 @@ export to `src/lib/index.ts`.
1717
<!-- Links -->
1818

1919
[discussions]:
20-
https://github.com/spences10/sveltekit-embed/discussions/new
20+
https://github.com/spences10/sveltekit-embed/discussions/new

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,12 @@ Use like a normal Svelte component:
2727

2828
```html
2929
<script>
30-
import { AnchorFm } from 'sveltekit-embed'
30+
import { AnchorFm } from 'sveltekit-embed'
3131
</script>
3232

3333
<AnchorFm
34-
height="165"
35-
episodeUrl="purrfect-dev/embed/episodes/1-31---Delivering-Digital-Content-with-GraphCMS-e14g55c/a-a650v9a"
34+
height="165"
35+
episodeUrl="purrfect-dev/embed/episodes/1-31---Delivering-Digital-Content-with-GraphCMS-e14g55c/a-a650v9a"
3636
/>
3737
```
3838

@@ -92,7 +92,7 @@ export { default as MyComponent } from './components/my-component.svelte'
9292
Import the component locally into the `src/routes/+page.md` file:
9393

9494
```svelte
95-
import { MyComponent } from '$lib'
95+
import {MyComponent} from '$lib'
9696
```
9797

9898
After importing the component, add it to the
@@ -154,7 +154,7 @@ the instructions are never there! 😅
154154
npm login
155155
# bump version with npm
156156
npm version 0.0.8
157-
# package with sveltkit
157+
# package with sveltekit
158158
pnpm run package
159159
# publish from package directory
160160
cd package

mdsvex.config.js

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -3,22 +3,22 @@ import autolinkHeadings from 'rehype-autolink-headings'
33
import slugPlugin from 'rehype-slug'
44

55
const config = defineConfig({
6-
extensions: ['.svelte.md', '.md', '.svx'],
6+
extensions: ['.svelte.md', '.md', '.svx'],
77

8-
smartypants: {
9-
dashes: 'oldschool',
10-
},
8+
smartypants: {
9+
dashes: 'oldschool',
10+
},
1111

12-
remarkPlugins: [],
13-
rehypePlugins: [
14-
slugPlugin,
15-
[
16-
autolinkHeadings,
17-
{
18-
behavior: 'wrap',
19-
},
20-
],
21-
],
12+
remarkPlugins: [],
13+
rehypePlugins: [
14+
slugPlugin,
15+
[
16+
autolinkHeadings,
17+
{
18+
behavior: 'wrap',
19+
},
20+
],
21+
],
2222
})
2323

2424
export default config

0 commit comments

Comments
 (0)