-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: fix language picker, do some other tweaks like formatting and fi…
…xing styling (#5) Complete codebase reformat.
- Loading branch information
Showing
53 changed files
with
13,543 additions
and
13,889 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
{ | ||
"MD033": false | ||
"MD033": false | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{ | ||
"overrides": [ | ||
{ | ||
"files": "*.svelte", | ||
"options": { | ||
"parser": "svelte" | ||
} | ||
} | ||
], | ||
"plugins": ["prettier-plugin-svelte"], | ||
"printWidth": 100, | ||
"singleQuote": true, | ||
"trailingComma": "none", | ||
"useTabs": true | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,3 @@ | ||
{ | ||
"recommendations": [ | ||
"samverschueren.linter-xo", | ||
"svelte.svelte-vscode" | ||
] | ||
"recommendations": ["samverschueren.linter-xo", "svelte.svelte-vscode"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,15 @@ | ||
{ | ||
// Use IntelliSense to learn about possible attributes. | ||
// Hover to view descriptions of existing attributes. | ||
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 | ||
"version": "0.2.0", | ||
"configurations": [ | ||
{ | ||
"type": "firefox", | ||
"request": "launch", | ||
"reAttach": true, | ||
"name": "Launch localhost", | ||
"url": "http://localhost:5173" | ||
} | ||
] | ||
// Use IntelliSense to learn about possible attributes. | ||
// Hover to view descriptions of existing attributes. | ||
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 | ||
"version": "0.2.0", | ||
"configurations": [ | ||
{ | ||
"type": "firefox", | ||
"request": "launch", | ||
"reAttach": true, | ||
"name": "Launch localhost", | ||
"url": "http://localhost:5173" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
{ | ||
"typescript.tsdk": "node_modules/typescript/lib" | ||
"typescript.tsdk": "node_modules/typescript/lib" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,100 +1,78 @@ | ||
import js from "@eslint/js"; | ||
import typescriptPlugin from "@typescript-eslint/eslint-plugin"; | ||
import typescriptParser from "@typescript-eslint/parser"; | ||
import unocssPlugin from "@unocss/eslint-plugin"; | ||
import prettier from "eslint-config-prettier"; | ||
import perfectionistNatural from "eslint-plugin-perfectionist/configs/recommended-natural"; | ||
import prettierPlugin from "eslint-plugin-prettier"; | ||
import sveltePlugin from "eslint-plugin-svelte"; | ||
import svelteParser from "svelte-eslint-parser"; | ||
|
||
const prettierConfig = { | ||
overrides: [ | ||
{ | ||
files: "*.svelte", | ||
options: { | ||
parser: "svelte", | ||
}, | ||
}, | ||
], | ||
plugins: ["prettier-plugin-svelte"], | ||
printWidth: 100, | ||
singleQuote: true, | ||
trailingComma: "none", | ||
useTabs: true, | ||
}; | ||
import js from '@eslint/js'; | ||
import typescriptPlugin from '@typescript-eslint/eslint-plugin'; | ||
import typescriptParser from '@typescript-eslint/parser'; | ||
import unocssPlugin from '@unocss/eslint-plugin'; | ||
import prettier from 'eslint-config-prettier'; | ||
import perfectionistNatural from 'eslint-plugin-perfectionist/configs/recommended-natural'; | ||
import prettierPlugin from 'eslint-plugin-prettier'; | ||
import sveltePlugin from 'eslint-plugin-svelte'; | ||
import svelteParser from 'svelte-eslint-parser'; | ||
|
||
/** @type {import("eslint").Linter.RulesRecord} */ | ||
const defaultRules = { | ||
...typescriptPlugin.configs.recommended.rules, | ||
"arrow-body-style": "off", | ||
"no-undef": "off", | ||
"prefer-arrow-callback": "off", | ||
...typescriptPlugin.configs.recommended.rules, | ||
'arrow-body-style': 'off', | ||
'no-undef': 'off', | ||
'prefer-arrow-callback': 'off' | ||
}; | ||
|
||
/** | ||
* @type {import("eslint").Linter.FlatConfig[]} | ||
*/ | ||
export default [ | ||
{ | ||
ignores: [".svelte-kit/**/*", "node_modules/**/*"], | ||
}, | ||
js.configs.recommended, | ||
{ | ||
plugins: { | ||
"@unocss": unocssPlugin, | ||
}, | ||
rules: unocssPlugin.configs.recommended.rules, | ||
}, | ||
{ | ||
files: ["**/*.js", "**/*.cjs"], | ||
}, | ||
{ | ||
files: ["**/*.ts"], | ||
languageOptions: { | ||
parser: typescriptParser, | ||
parserOptions: { | ||
ecmaVersion: 2020, | ||
extraFileExtensions: [".svelte"], | ||
project: "./tsconfig.json", | ||
sourceType: "module", | ||
}, | ||
}, | ||
plugins: { | ||
"@typescript-eslint": typescriptPlugin, | ||
prettier: prettierPlugin, | ||
}, | ||
rules: { | ||
...defaultRules, | ||
"prettier/prettier": [ | ||
"error", | ||
prettierConfig, | ||
{ | ||
usePrettierrc: false, | ||
}, | ||
], | ||
} | ||
}, | ||
{ | ||
files: ["**/*.svelte"], | ||
languageOptions: { | ||
parser: svelteParser, | ||
parserOptions: { | ||
parser: typescriptParser, | ||
}, | ||
}, | ||
plugins: { | ||
"@typescript-eslint": typescriptPlugin, | ||
// prettier: prettierPlugin, | ||
svelte: sveltePlugin, | ||
}, | ||
processor: "svelte/svelte", | ||
rules: { | ||
...defaultRules, | ||
...sveltePlugin.configs.recommended.rules, | ||
// ...sveltePlugin.configs.prettier.rules, | ||
}, | ||
}, | ||
perfectionistNatural, | ||
prettier, | ||
{ | ||
ignores: ['.svelte-kit/**/*', 'node_modules/**/*'] | ||
}, | ||
js.configs.recommended, | ||
{ | ||
plugins: { | ||
'@unocss': unocssPlugin | ||
}, | ||
rules: unocssPlugin.configs.recommended.rules | ||
}, | ||
{ | ||
files: ['**/*.js', '**/*.cjs'] | ||
}, | ||
{ | ||
files: ['**/*.ts'], | ||
languageOptions: { | ||
parser: typescriptParser, | ||
parserOptions: { | ||
ecmaVersion: 2020, | ||
extraFileExtensions: ['.svelte'], | ||
project: './tsconfig.json', | ||
sourceType: 'module' | ||
} | ||
}, | ||
plugins: { | ||
'@typescript-eslint': typescriptPlugin, | ||
prettier: prettierPlugin | ||
}, | ||
rules: { | ||
...defaultRules, | ||
'prettier/prettier': ['error'] | ||
} | ||
}, | ||
{ | ||
files: ['**/*.svelte'], | ||
languageOptions: { | ||
parser: svelteParser, | ||
parserOptions: { | ||
parser: typescriptParser | ||
} | ||
}, | ||
plugins: { | ||
'@typescript-eslint': typescriptPlugin, | ||
// prettier: prettierPlugin, | ||
svelte: sveltePlugin | ||
}, | ||
processor: 'svelte/svelte', | ||
rules: { | ||
...defaultRules, | ||
...sveltePlugin.configs.recommended.rules | ||
// ...sveltePlugin.configs.prettier.rules, | ||
} | ||
}, | ||
perfectionistNatural, | ||
prettier | ||
]; |
Oops, something went wrong.