Skip to content

Commit

Permalink
format everything with prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
mat-1 committed Apr 15, 2022
1 parent 98a4bec commit 640e390
Show file tree
Hide file tree
Showing 38 changed files with 1,579 additions and 1,433 deletions.
7 changes: 1 addition & 6 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,8 @@ module.exports = {
root: true,
parser: '@typescript-eslint/parser',
extends: ['eslint:recommended', 'plugin:@typescript-eslint/recommended', 'prettier'],
plugins: ['svelte3', '@typescript-eslint'],
plugins: ['@typescript-eslint'],
ignorePatterns: ['*.cjs'],
overrides: [{ files: ['*.svelte'], processor: 'svelte3/svelte3' }],
settings: {
'svelte3/typescript': () => require('typescript'),
},
parserOptions: {
sourceType: 'module',
ecmaVersion: 2019,
Expand All @@ -22,6 +18,5 @@ module.exports = {
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/ban-types': 'off',
'@typescript-eslint/ban-ts-comment': 'off',

},
}
3 changes: 2 additions & 1 deletion .prettierrc
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
{
"parser": "typescript",
"printWidth": 100,
"useTabs": true,
"singleQuote": true,
"quoteProps": "consistent",
"quoteProps": "as-needed",
"trailingComma": "es5",
"semi": false,
"arrowParens": "avoid"
Expand Down
7 changes: 6 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
{
"editor.formatOnSave": true
"editor.formatOnSave": true,
"editor.defaultFormatter": "esbenp.prettier-vscode",
"typescript.format.enable": false,
"[typescript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
}
}
Loading

0 comments on commit 640e390

Please sign in to comment.