Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
# https://editorconfig.org/
# https://prettier.io/docs/en/configuration#editorconfig

root = true

[*]
charset = utf-8
end_of_line = lf
indent_size = 4
indent_style = space
indent_style = tab
insert_final_newline = true
max_line_length = 80
trim_trailing_whitespace = true
92 changes: 0 additions & 92 deletions .eslintrc.json

This file was deleted.

6 changes: 6 additions & 0 deletions .git-blame-ignore-revs
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# https://git-scm.com/docs/git-blame
# https://github.blog/changelog/2022-03-24-ignore-commits-in-the-blame-view-beta/
# https://docs.github.com/en/repositories/working-with-files/using-files/viewing-a-file#ignore-commits-in-the-blame-view

# Prettier 3.0.3
acc35fbec38d72968b735826c6807793a2054aed
14 changes: 7 additions & 7 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install modules
run: npm install
- name: Run ESLint
run: npm run lint:js
- name: Run Stylelint
run: npm run lint:css
- uses: actions/checkout@v2
- name: Install modules
run: npm install
- name: Run ESLint
run: npm run lint:js
- name: Run Stylelint
run: npm run lint:css
8 changes: 4 additions & 4 deletions .postcssrc.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"plugins": {
"autoprefixer": {"overrideBrowserslist": ["safari >= 13"]}
}
}
"plugins": {
"autoprefixer": { "overrideBrowserslist": ["safari >= 13"] }
}
}
26 changes: 26 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# env
.env
.env.*
!.env.example
.DS_Store

# root
/package
/public
/etc

# dir
node_modules
xcode
build
built
dist
temp

# files
*.svg

# Ignore files for PNPM, NPM and YARN
package-lock.json
pnpm-lock.yaml
yarn.lock
4 changes: 4 additions & 0 deletions .prettierrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"plugins": ["prettier-plugin-svelte"],
"useTabs": true
}
56 changes: 29 additions & 27 deletions .stylelintrc.json
Original file line number Diff line number Diff line change
@@ -1,29 +1,31 @@
{
"extends": [
"stylelint-config-recommended",
"stylelint-config-standard",
"stylelint-config-html/svelte"
],
"ignoreFiles": [
"**/build/**",
"**/dist/**",
"**/etc/**",
"**/node_modules/**",
"**/reset.css"
],
"rules": {
"alpha-value-notation": "number",
"comment-empty-line-before": ["always",{
"ignore": ["after-comment", "stylelint-commands"]
}],
"custom-property-empty-line-before": null,
"indentation": 4,
"max-empty-lines": 1,
"no-descending-specificity": null,
"property-no-vendor-prefix": null,
"selector-class-pattern": null,
"selector-pseudo-class-no-unknown": [true, {
"ignorePseudoClasses": ["global"]
}]
}
"extends": ["stylelint-config-standard", "stylelint-config-html"],
"ignoreFiles": [
"**/etc/**",
"**/dist/**",
"**/build/**",
"**/node_modules/**",
"**/reset.css",
"public/**",
"xcode/**"
],
"rules": {
"alpha-value-notation": "number",
"comment-empty-line-before": [
"always",
{
"ignore": ["after-comment", "stylelint-commands"]
}
],
"custom-property-empty-line-before": null,
"no-descending-specificity": null,
"property-no-vendor-prefix": null,
"selector-class-pattern": null,
"selector-pseudo-class-no-unknown": [
true,
{
"ignorePseudoClasses": ["global"]
}
]
}
}
16 changes: 8 additions & 8 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
// https://code.visualstudio.com/docs/editor/extension-gallery#_workspace-recommended-extensions
{
// See https://go.microsoft.com/fwlink/?LinkId=827846
// for the documentation about the extensions.json format
"recommendations": [
"svelte.svelte-vscode",
"dbaeumer.vscode-eslint",
"stylelint.vscode-stylelint"
]
}
"recommendations": [
"svelte.svelte-vscode",
"esbenp.prettier-vscode",
"dbaeumer.vscode-eslint",
"stylelint.vscode-stylelint"
]
}
30 changes: 8 additions & 22 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,24 +1,10 @@
// https://code.visualstudio.com/docs/getstarted/settings#_workspace-settings
{
"editor.formatOnSave": false,
"files.associations": {
".htmlhintrc": "json"
},
"eslint.validate": [
"svelte"
],
"stylelint.validate": [
"css",
"postcss",
"svelte"
],
"svelte.plugin.svelte.compilerWarnings": {
"a11y-missing-attribute": "error"
},
"svelte.plugin.svelte.rename.enable": false,
"[svelte]": {
"editor.defaultFormatter": "svelte.svelte-vscode"
},
"[css]": {
"editor.defaultFormatter": "stylelint.vscode-stylelint"
}
"editor.formatOnSave": true,
"editor.defaultFormatter": "esbenp.prettier-vscode",
// https://github.com/microsoft/vscode-eslint#settings-options
"eslint.validate": ["javascript", "svelte"],
"eslint.experimental.useFlatConfig": true,
// https://github.com/stylelint/vscode-stylelint#stylelintvalidate
"stylelint.validate": ["css", "postcss", "svelte"]
}
Loading