Skip to content

Commit

Permalink
chore: format with prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
matschik committed Nov 9, 2022
1 parent 2b1e7b4 commit 1380f95
Show file tree
Hide file tree
Showing 297 changed files with 9,092 additions and 5,455 deletions.
4 changes: 3 additions & 1 deletion .babelrc
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
{
"plugins": [["@babel/plugin-proposal-decorators", { "decoratorsBeforeExport": true }]]
"plugins": [
["@babel/plugin-proposal-decorators", { "decoratorsBeforeExport": true }]
]
}
4 changes: 2 additions & 2 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
const _require = require('esm')(module);
module.exports = _require('./.eslintrc.esm.mjs').default;
const _require = require("esm")(module);
module.exports = _require("./.eslintrc.esm.mjs").default;
6 changes: 3 additions & 3 deletions .eslintrc.esm.mjs
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
import FRAMEWORKS from './src/frameworks.mjs';
import FRAMEWORKS from "./src/frameworks.mjs";

/**
* @type {import("eslint").Linter.Config}
*/
export default {
parserOptions: {
ecmaVersion: 2022,
sourceType: 'module',
sourceType: "module",
},
env: {
browser: true,
},
plugins: ['prettier'],
plugins: ["prettier"],
overrides: FRAMEWORKS.reduce((acc, { eslint }) => {
if (Array.isArray(eslint)) {
acc.push(...eslint);
Expand Down
15 changes: 1 addition & 14 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -1,17 +1,4 @@
{
"printWidth": 180,
"semi": true,
"singleQuote": true,
"tabWidth": 2,
"trailingComma": "es5",
"useTabs": true,
"plugins": ["prettier-plugin-svelte"],
"overrides": [
{
"files": [".*", "*.json", "*.md", "*.toml", "*.yml", "**/vue2/*"],
"options": {
"useTabs": false
}
}
]
"plugins": ["prettier-plugin-svelte"]
}
9 changes: 8 additions & 1 deletion .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
{
"recommendations": ["astro-build.astro-vscode", "bradlc.vscode-tailwindcss", "esbenp.prettier-vscode", "dbaeumer.vscode-eslint", "svelte.svelte-vscode", "Vue.volar"],
"recommendations": [
"astro-build.astro-vscode",
"bradlc.vscode-tailwindcss",
"esbenp.prettier-vscode",
"dbaeumer.vscode-eslint",
"svelte.svelte-vscode",
"Vue.volar"
],
"unwantedRecommendations": []
}
13 changes: 11 additions & 2 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,18 @@
"editor.formatOnSave": false,
// Runs Prettier, then ESLint
"editor.codeActionsOnSave": ["source.formatDocument", "source.fixAll.eslint"],
"vetur.validation.template": false,
"[svelte]": {
"editor.defaultFormatter": "svelte.svelte-vscode"
},
"cSpell.words": ["alpinejs", "astro", "astrojs", "matschik", "mdast", "pnpm", "qwik", "shiki", "webp"]
"cSpell.words": [
"alpinejs",
"astro",
"astrojs",
"matschik",
"mdast",
"pnpm",
"qwik",
"shiki",
"webp"
]
}
Loading

0 comments on commit 1380f95

Please sign in to comment.