Skip to content

Commit 72dc734

Browse files
committed
Upgrade tooling
1 parent 1660d4e commit 72dc734

18 files changed

+162
-287
lines changed

.eslintignore

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

.eslintrc.js

Lines changed: 7 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,19 @@
11
module.exports = {
22
root: true,
33
extends: ['eslint:recommended', 'prettier'],
4-
overrides: [
5-
{ files: ['*.svelte'], plugins: ['svelte3'], processor: 'svelte3/svelte3' },
6-
{ files: ['*.html'], plugins: ['html'] },
7-
{
8-
files: ['*.ts'],
9-
parser: '@typescript-eslint/parser',
10-
plugins: ['@typescript-eslint'],
11-
extends: ['plugin:@typescript-eslint/recommended'],
12-
rules: { '@typescript-eslint/no-explicit-any': 'off' }
13-
}
14-
],
4+
plugins: ['svelte3'],
5+
overrides: [{ files: ['*.svelte'], processor: 'svelte3/svelte3' }],
156
parserOptions: {
167
sourceType: 'module',
17-
ecmaVersion: 2019
8+
ecmaVersion: 2020
189
},
1910
env: {
2011
browser: true,
2112
es2017: true,
2213
node: true
14+
},
15+
rules: {
16+
'no-tabs': 'error',
17+
'no-unexpected-multiline': 'error'
2318
}
2419
}

.gitignore

Lines changed: 9 additions & 167 deletions
Original file line numberDiff line numberDiff line change
@@ -1,169 +1,11 @@
1-
# Created by https://www.toptal.com/developers/gitignore/api/macos,node,visualstudiocode
2-
# Edit at https://www.toptal.com/developers/gitignore?templates=macos,node,visualstudiocode
3-
4-
### macOS ###
5-
# General
61
.DS_Store
7-
.AppleDouble
8-
.LSOverride
9-
10-
# Icon must end with two \r
11-
Icon
12-
13-
14-
# Thumbnails
15-
._*
16-
17-
# Files that might appear in the root of a volume
18-
.DocumentRevisions-V100
19-
.fseventsd
20-
.Spotlight-V100
21-
.TemporaryItems
22-
.Trashes
23-
.VolumeIcon.icns
24-
.com.apple.timemachine.donotpresent
25-
26-
# Directories potentially created on remote AFP share
27-
.AppleDB
28-
.AppleDesktop
29-
Network Trash Folder
30-
Temporary Items
31-
.apdisk
32-
33-
### Node ###
34-
# Logs
35-
logs
36-
*.log
37-
npm-debug.log*
38-
yarn-debug.log*
39-
yarn-error.log*
40-
lerna-debug.log*
41-
.pnpm-debug.log*
42-
43-
# Diagnostic reports (https://nodejs.org/api/report.html)
44-
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
45-
46-
# Runtime data
47-
pids
48-
*.pid
49-
*.seed
50-
*.pid.lock
51-
52-
# Directory for instrumented libs generated by jscoverage/JSCover
53-
lib-cov
54-
55-
# Coverage directory used by tools like istanbul
56-
coverage
57-
*.lcov
58-
59-
# nyc test coverage
60-
.nyc_output
61-
62-
# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
63-
.grunt
64-
65-
# Bower dependency directory (https://bower.io/)
66-
bower_components
67-
68-
# node-waf configuration
69-
.lock-wscript
70-
71-
# Compiled binary addons (https://nodejs.org/api/addons.html)
72-
build/Release
73-
74-
# Dependency directories
75-
node_modules/
76-
jspm_packages/
77-
78-
# Snowpack dependency directory (https://snowpack.dev/)
79-
web_modules/
80-
81-
# TypeScript cache
82-
*.tsbuildinfo
83-
84-
# Optional npm cache directory
85-
.npm
86-
87-
# Optional eslint cache
88-
.eslintcache
89-
90-
# Microbundle cache
91-
.rpt2_cache/
92-
.rts2_cache_cjs/
93-
.rts2_cache_es/
94-
.rts2_cache_umd/
95-
96-
# Optional REPL history
97-
.node_repl_history
98-
99-
# Output of 'npm pack'
100-
*.tgz
101-
102-
# Yarn Integrity file
103-
.yarn-integrity
104-
105-
# dotenv environment variables file
2+
node_modules
3+
/build
4+
/.svelte-kit
5+
/package
1066
.env
107-
.env.test
108-
.env.production
109-
110-
# parcel-bundler cache (https://parceljs.org/)
111-
.cache
112-
.parcel-cache
113-
114-
# Next.js build output
115-
.next
116-
out
117-
118-
# Nuxt.js build / generate output
119-
.nuxt
120-
dist
121-
122-
# Gatsby files
123-
.cache/
124-
# Comment in the public line in if your project uses Gatsby and not Next.js
125-
# https://nextjs.org/blog/next-9-1#public-directory-support
126-
# public
127-
128-
# vuepress build output
129-
.vuepress/dist
130-
131-
# Serverless directories
132-
.serverless/
133-
134-
# FuseBox cache
135-
.fusebox/
136-
137-
# DynamoDB Local files
138-
.dynamodb/
139-
140-
# TernJS port file
141-
.tern-port
142-
143-
# Stores VSCode versions used for testing VSCode extensions
144-
.vscode-test
145-
146-
# yarn v2
147-
.yarn/cache
148-
.yarn/unplugged
149-
.yarn/build-state.yml
150-
.yarn/install-state.gz
151-
.pnp.*
152-
153-
### VisualStudioCode ###
154-
.vscode/*
155-
!.vscode/settings.json
156-
!.vscode/tasks.json
157-
!.vscode/launch.json
158-
!.vscode/extensions.json
159-
*.code-workspace
160-
161-
# Local History for Visual Studio Code
162-
.history/
163-
164-
### VisualStudioCode Patch ###
165-
# Ignore all local history of files
166-
.history
167-
.ionide
168-
169-
# End of https://www.toptal.com/developers/gitignore/api/macos,node,visualstudiocode
7+
.env.*
8+
!.env.example
9+
vite.config.js.timestamp-*
10+
vite.config.ts.timestamp-*
11+
/temp

.npmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
engine-strict=true

.prettierignore

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

.prettierrc

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
11
{
2-
"printWidth": 100,
3-
"semi": false,
2+
"useTabs": false,
43
"singleQuote": true,
54
"trailingComma": "none",
5+
"printWidth": 100,
6+
"plugins": ["prettier-plugin-svelte"],
7+
"pluginSearchDirs": ["."],
8+
"overrides": [{ "files": "*.svelte", "options": { "parser": "svelte" } }],
9+
"semi": false,
610
"proseWrap": "always",
711
"svelteSortOrder": "options-scripts-markup-styles",
812
"svelteIndentScriptAndStyle": false

.tokeignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
/*
22
/*/
3-
!/src/
3+
!/src/lib/

cypress.config.ts

Lines changed: 0 additions & 9 deletions
This file was deleted.

jsconfig.json

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"extends": "./.svelte-kit/tsconfig.json",
3+
"compilerOptions": {
4+
"allowJs": true,
5+
"checkJs": true,
6+
"esModuleInterop": true,
7+
"forceConsistentCasingInFileNames": true,
8+
"resolveJsonModule": true,
9+
"skipLibCheck": true,
10+
"sourceMap": true,
11+
"strict": true
12+
}
13+
// Path aliases are handled by https://kit.svelte.dev/docs/configuration#alias and https://kit.svelte.dev/docs/configuration#files
14+
//
15+
// If you want to overwrite includes/excludes, make sure to copy over the relevant includes/excludes
16+
// from the referenced tsconfig.json - TypeScript does not merge them in
17+
}

playwright.config.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
/** @type {import('@playwright/test').PlaywrightTestConfig} */
2+
const config = {
3+
webServer: {
4+
command: 'npm run build && npm run preview',
5+
port: 4173
6+
},
7+
testDir: 'tests'
8+
}
9+
10+
export default config

0 commit comments

Comments
 (0)