-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(ts): common components to ts (#2114)
* feat: add prettier and volar pug plugin * refactor(ts): common components to ts * fix: remove import * fix: run yarn * fix(prettier): prettier configuration for pug
- Loading branch information
Showing
27 changed files
with
3,451 additions
and
2,929 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
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,30 @@ | ||
|
||
// @ts-check | ||
/// <reference types="@prettier/plugin-pug/src/prettier" /> | ||
|
||
/** | ||
* @type {import('prettier').Options} | ||
*/ | ||
|
||
module.exports = { | ||
plugins: [require.resolve('@prettier/plugin-pug')], | ||
pugBracketSameLine: false, | ||
pugSingleQuote: false, | ||
pugWrapAttributesThreshold: 1, | ||
pugUseTabs: false, | ||
"spaceBeforeFunctionParen": false, | ||
"arrowParens": "always", | ||
"pugBracketSpacing": false, | ||
"pugIndentOffset": -2, | ||
"pugIndentStart": false, | ||
"semi": false, | ||
"pugPrintWidth": 80, | ||
"pugSingleFileComponentIndentation": true, | ||
"pugAttributeSeparator": "none", | ||
"pugSortAttributes": "asc", | ||
"pugClosingBracketPosition": "new-line", | ||
"singleQuote": true, | ||
"tabWidth": 2, | ||
"trailingComma": "none", | ||
"printWidth": 80, | ||
} |
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
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,10 @@ | ||
import { ComponentConstructor } from 'quasar'; | ||
|
||
type Quasar = typeof import('quasar'); | ||
type QuasarComponentNames = keyof { [K in keyof Quasar as (Quasar)[K] extends ComponentConstructor<infer _> ? K : never]: any }; | ||
type QuasarComponents = Pick<Quasar, QuasarComponentNames>; | ||
type QuasarFuncationalComponents = { [K in keyof QuasarComponents]: Quasar[K] extends ComponentConstructor<infer C> ? (props: Partial<C>) => void : never }; | ||
|
||
declare module '@vue/runtime-dom' { // Vue <= 2.6.14 | ||
export interface GlobalComponents extends QuasarFuncationalComponents { } | ||
} |
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
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
Oops, something went wrong.