This file contains hidden or 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
| "PostToolUse": [ | |
| { | |
| "matcher": "Edit|Write", | |
| "hooks": [ | |
| { | |
| "type": "command", | |
| "command": "bash -c 'FILE=$(cat | jq -r \".tool_input.file_path // empty\"); if [[ \"$FILE\" == *.md ]] && command -v prettier &>/dev/null; then prettier --write --prose-wrap preserve \"$FILE\" 2>/dev/null || true; fi'" | |
| } | |
| ] | |
| } |
This file contains hidden or 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
| module.exports = { | |
| extends: ['next/core-web-vitals', 'plugin:prettier/recommended' | |
| ], | |
| rules: { | |
| 'prettier/prettier': ['error', {}, { usePrettierrc: true }] | |
| } | |
| }; |
This file contains hidden or 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
| @import "tailwindcss/base"; | |
| @import "tailwindcss/components"; | |
| @import "tailwindcss/utilities"; |
This file contains hidden or 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
| (async () => { | |
| const jsonContent = await fs.readFileSync('file_to_read.json'); | |
| const object = JSON.parse(jsonContent); | |
| console.log(object); | |
| })(); |
This file contains hidden or 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
| <?php | |
| namespace Deployer; | |
| require 'recipe/laravel.php'; | |
| $repo_url = ''; | |
| $branch = 'master'; | |
| $server_url = ''; | |
| $user = ''; |
This file contains hidden or 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
| const _get = (obj, path, defaultValue = null) => | |
| String.prototype.split | |
| .call(path, /[,[\].]+?/) | |
| .filter(Boolean) | |
| .reduce( | |
| (a, c) => (Object.hasOwnProperty.call(a, c) ? a[c] : defaultValue), | |
| obj | |
| ); | |
| module.exports = { _get }; |
This file contains hidden or 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
| import Vue from 'vue'; | |
| import VueMq from 'vue-mq'; | |
| Vue.use(VueMq, { | |
| breakpoints: { | |
| xs: 576, | |
| sm: 768, | |
| md: 992, | |
| lg: 1200, | |
| xl: Infinity |
This file contains hidden or 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
| # Editor configuration, see http://editorconfig.org | |
| root = true | |
| [*] | |
| charset = utf-8 | |
| indent_size = 2 | |
| indent_style = space | |
| insert_final_newline = false | |
| trim_trailing_whitespace = true |
This file contains hidden or 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
| { | |
| "eslint.validate": [ | |
| "javascript", | |
| { "language": "vue", "autoFix": true } | |
| ], | |
| "eslint.autoFixOnSave": true | |
| } |
This file contains hidden or 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
| # Editor configuration, see http://editorconfig.org | |
| root = true | |
| [*] | |
| charset = utf-8 | |
| indent_size = 2 | |
| indent_style = space | |
| insert_final_newline = false | |
| trim_trailing_whitespace = true |
NewerOlder