-
Notifications
You must be signed in to change notification settings - Fork 719
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: add prettier formatter (#1597)
add prettier formatter add rimraf
- Loading branch information
1 parent
6802b6b
commit 98cff6e
Showing
50 changed files
with
2,026 additions
and
834 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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,11 @@ | ||
export default { | ||
printWidth: 80, | ||
tabWidth: 2, | ||
useTabs: false, | ||
semi: true, | ||
singleQuote: true, | ||
bracketSpacing: true, | ||
arrowParens: "always", | ||
endOfLine: "lf", | ||
trailingComma: "all", | ||
}; |
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
import * as METADATA_KEY from '../constants/metadata_keys'; | ||
import { injectBase } from './inject_base'; | ||
|
||
const inject = injectBase(METADATA_KEY.INJECT_TAG); | ||
|
||
export { inject }; | ||
import * as METADATA_KEY from '../constants/metadata_keys'; | ||
import { injectBase } from './inject_base'; | ||
|
||
const inject = injectBase(METADATA_KEY.INJECT_TAG); | ||
|
||
export { inject }; |
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
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 |
---|---|---|
@@ -1,10 +1,10 @@ | ||
import * as METADATA_KEY from '../constants/metadata_keys'; | ||
import { Metadata } from '../planning/metadata'; | ||
import { createTaggedDecorator } from './decorator_utils'; | ||
|
||
// Used to add named metadata which is used to resolve name-based contextual bindings. | ||
function named(name: string | number | symbol) { | ||
return createTaggedDecorator(new Metadata(METADATA_KEY.NAMED_TAG, name)); | ||
} | ||
|
||
export { named }; | ||
import * as METADATA_KEY from '../constants/metadata_keys'; | ||
import { Metadata } from '../planning/metadata'; | ||
import { createTaggedDecorator } from './decorator_utils'; | ||
|
||
// Used to add named metadata which is used to resolve name-based contextual bindings. | ||
function named(name: string | number | symbol) { | ||
return createTaggedDecorator(new Metadata(METADATA_KEY.NAMED_TAG, name)); | ||
} | ||
|
||
export { named }; |
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
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.