-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #8 from marko-js/ts-js-style-support
feat: add ts/js style support, improve style formatting
- Loading branch information
Showing
10 changed files
with
3,828 additions
and
4,259 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,4 +1,4 @@ | ||
{ | ||
"*.ts": ["eslint -f codeframe --fix", "prettier --write"], | ||
"*.ts": ["eslint --fix", "prettier --write"], | ||
"*{.js,.json,.md,.yml,rc}": ["prettier --write"] | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,32 +5,32 @@ | |
"author": "Dylan Piercey <[email protected]>", | ||
"bugs": "https://github.com/marko-js/prettier/issues", | ||
"devDependencies": { | ||
"@commitlint/cli": "^13.2.1", | ||
"@commitlint/config-conventional": "^13.2.0", | ||
"@istanbuljs/nyc-config-typescript": "^1.0.1", | ||
"@marko/compiler": "^5.16.0", | ||
"@marko/translator-default": "^5.16.0", | ||
"@types/mocha": "^9.0.0", | ||
"@types/node": "^16.10.3", | ||
"@types/prettier": "^2.4.1", | ||
"@typescript-eslint/eslint-plugin": "^4.33.0", | ||
"@typescript-eslint/parser": "^4.33.0", | ||
"@commitlint/cli": "^16.2.3", | ||
"@commitlint/config-conventional": "^16.2.1", | ||
"@istanbuljs/nyc-config-typescript": "^1.0.2", | ||
"@marko/compiler": "^5.20.5", | ||
"@marko/translator-default": "^5.20.5", | ||
"@types/mocha": "^9.1.1", | ||
"@types/node": "^17.0.25", | ||
"@types/prettier": "^2.6.0", | ||
"@typescript-eslint/eslint-plugin": "^5.20.0", | ||
"@typescript-eslint/parser": "^5.20.0", | ||
"codecov": "^3.8.3", | ||
"esbuild": "^0.13.4", | ||
"esbuild-register": "^3.0.0", | ||
"eslint": "^7.32.0", | ||
"eslint-config-prettier": "^8.3.0", | ||
"fast-glob": "^3.2.7", | ||
"esbuild": "^0.14.38", | ||
"esbuild-register": "^3.3.2", | ||
"eslint": "^8.13.0", | ||
"eslint-config-prettier": "^8.5.0", | ||
"fast-glob": "^3.2.11", | ||
"fixpack": "^4.0.0", | ||
"husky": "^7.0.2", | ||
"lint-staged": "^11.2.3", | ||
"marko": "^5.15.10", | ||
"mocha": "^9.1.2", | ||
"mocha-snap": "^4.0.2", | ||
"husky": "^7.0.4", | ||
"lint-staged": "^12.4.0", | ||
"marko": "^5.20.5", | ||
"mocha": "^9.2.2", | ||
"mocha-snap": "^4.3.0", | ||
"nyc": "^15.1.0", | ||
"prettier": "^2.3.2", | ||
"semantic-release": "^18.0.0", | ||
"typescript": "^4.4.3" | ||
"prettier": "^2.6.2", | ||
"semantic-release": "^19.0.2", | ||
"typescript": "^4.6.3" | ||
}, | ||
"exports": { | ||
".": { | ||
|
@@ -54,7 +54,7 @@ | |
"main": "dist/index.js", | ||
"module": "dist/index.mjs", | ||
"peerDependencies": { | ||
"@marko/compiler": "^5.16.0", | ||
"@marko/compiler": "^5.20.5", | ||
"prettier": "^2" | ||
}, | ||
"publishConfig": { | ||
|
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,5 @@ | ||
<style.js/{ title }> | ||
export const title = style({ | ||
backgroundColor: "red", | ||
}); | ||
</style> |
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,6 @@ | ||
style.js/{ title } | ||
-- | ||
export const title = style({ | ||
backgroundColor: "red", | ||
}); | ||
-- |
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,5 @@ | ||
<style.js/{ title }> | ||
export const title = style({ | ||
backgroundColor: "red", | ||
}); | ||
</style> |
5 changes: 5 additions & 0 deletions
5
src/__tests__/__snapshots__/style-js.expected/with-parens.marko
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,5 @@ | ||
<style.js/{ title }> | ||
export const title = style({ | ||
backgroundColor: "red", | ||
}); | ||
</style> |
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,4 @@ | ||
<style.js/{ title }> | ||
export const title = style({ | ||
backgroundColor: "red" }); | ||
</style> |
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