Add this to settings.json (cmd ,):
{
"editor.fontFamily": "Operator Mono, Fira Code iScript, Menlo, Monaco, 'Courier New', monospace",
"editor.fontLigatures": true,
"editor.tokenColorCustomizations": {
"textMateRules": [
{
| /* | |
| // include script in package.json the line number 6 | |
| { | |
| "scripts": { | |
| "mk:component": "node scripts/component-builder.js" | |
| } | |
| } | |
| // then use: |
| - pnpm create vite project-name --template template-name | |
| - pnpm dlx eslint --init | |
| - To check syntax, find problems, and enforce code style - JavaScript modules (import/export) | |
| - (select type of project) | |
| - Does your project use TypeScript? | |
| - Where does your code run? | |
| - How would you like to define a style for your project? - Which style guide do you want to follow? | |
| - What format do you want your config file to be in? | |
| - Would you like to install them now? | |
| - Which package manager do you want to use? |
| module.exports = { | |
| presets: [ | |
| [ | |
| '@babel/preset-env', | |
| { | |
| targets: { | |
| esmodules: true, | |
| }, | |
| }, | |
| ], |
| // Node v6.9.0 | |
| // | |
| // TEST FILE (cut down for simplicity) | |
| // To ensure Golang encrypted string can be decrypted in NodeJS. | |
| // | |
| let crypto; | |
| try { | |
| crypto = require('crypto'); |
| const notFoundHandler = (_0, _1, res) => (res.writeHead(404, {}) && res.end()); | |
| let _defaultHandler; | |
| let _context; | |
| const tmpHandlers = { | |
| 'GET': [], | |
| 'POST': [], | |
| 'PUT': [], | |
| 'DELETE': [], |
| export let facebookSDK = { | |
| mounted () { | |
| let _this = this | |
| this.$nextTick(() => { | |
| window.fbAsyncInit = function () { | |
| window.FB.init({ | |
| appId: 'XXX', | |
| xfbml: true, | |
| version: 'v2.6' | |
| }) |
| #!/bin/ash | |
| EXPECTED_CHECKSUM="$(wget -q -O - https://composer.github.io/installer.sig)" | |
| php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" | |
| ACTUAL_CHECKSUM="$(php -r "echo hash_file('sha384', 'composer-setup.php');")" | |
| if [ "$EXPECTED_CHECKSUM" != "$ACTUAL_CHECKSUM" ] | |
| then | |
| >&2 echo 'ERROR: Invalid installer checksum' | |
| rm composer-setup.php |