- Make sure the isort extension is installed in VSCode
The latest VSCode update brought the requirement to use a python environment 3.8+ for isort:
2025-04-24 13:28:29.888 [info] No interpreter found from setting isort.interpreter
# finds all *.js files that have either `</` or `/>` tags in them and renames them to *.jsx | |
find ./src -type f -name '*.js' -not -name '*.jsx' -not -name '*.ejs' -exec bash -c 'grep -l -E "</|/>" "$0"' {} \; -exec bash -c 'mv "$0" "${0%.js}.jsx"' {} \; |
export VENV_HOME=~/.venvs | |
export VENV_PYTHON=/usr/bin/python3.6 | |
fn_workon() { | |
if [ -f "${VENV_HOME}/${1}/bin/activate" ]; then | |
export VENV_CURRENT="${VENV_HOME}/${1}" | |
# Run commands before activation | |
if [ -f "${VENV_CURRENT}/pre_activate.sh" ]; then | |
. "${VENV_CURRENT}/pre_activate.sh" | |
fi |
The latest VSCode update brought the requirement to use a python environment 3.8+ for isort:
2025-04-24 13:28:29.888 [info] No interpreter found from setting isort.interpreter
import S from '@sanity/desk-tool/structure-builder' | |
import { MdWork, MdAccountBalance, MdCached, MdDashboard, MdSettings, MdMail, MdPerson, MdAssignment, MdDescription, MdShoppingCart, MdLightbulb, MdLocalOffer, MdChatBubble } from 'react-icons/lib/md' | |
// We filter document types defined in structure to prevent | |
// them from being listed twice | |
const hiddenDocTypes = listItem => | |
!['redirects', 'page', 'newsroom', 'caseStudy', 'product', 'solution', 'site-config', 'contactInfo', 'resource', 'author', 'blog', 'category', 'testimonial'].includes(listItem.getId()) | |
export default () => | |
S.list() |
# Update project requirements when requirements.txt changes. | |
requirements.txt { | |
prep +onchange: "pip install -U -r requirements.txt" | |
} | |
../.envrc { | |
prep +onchange: "direnv allow" | |
} | |
**/index.css **/tailwind.config.js { |
import * as cdk from '@aws-cdk/core'; | |
import { CfnApiKey, PrimaryKey, Values, GraphQLApi, MappingTemplate, FieldLogLevel, AttributeValues } from '@aws-cdk/aws-appsync' | |
import { AttributeType, BillingMode, Table } from '@aws-cdk/aws-dynamodb'; | |
import * as lambda from '@aws-cdk/aws-lambda' | |
import { join } from 'path'; | |
export class AppsyncCdkStack extends cdk.Stack { | |
constructor(scope: cdk.Construct, id: string, props?: cdk.StackProps) { | |
super(scope, id, props); |
⚠️ Warning: this document is out of date.For the most recent webpack5 instructions see MIGRATION.md.
Storybook 6.2 includes experimental Webpack 5 support. Webpack 5 brings a variety of performance improvements, as well as exciting new features like module federation. Here's a quick guide to get you going.
The package that linked you here is now pure ESM. It cannot be require()
'd from CommonJS.
This means you have the following choices:
import foo from 'foo'
instead of const foo = require('foo')
to import the package. You also need to put "type": "module"
in your package.json and more. Follow the below guide.await import(…)
from CommonJS instead of require(…)
.import React, { useState, useEffect, useRef } from 'react' | |
import { urlFor } from '../lib/api' | |
import useWindowDimensions from '../hooks/useWindowDimensions' | |
/* TODO: Add fallback image */ | |
function LazyImage({ | |
className, | |
image, | |
desktopSizePercent = 100, |
#!/usr/bin/env python3 | |
# usage: hny-column-cleanup.py [-h] -k API_KEY -d DATASET [-m {hidden,spammy}] | |
# Honeycomb Dataset Column Cleanup tool | |
# arguments: | |
# -h, --help show this help message and exit | |
# -k API_KEY, --api-key API_KEY | |
# Honeycomb API key | |
# -d DATASET, --dataset DATASET | |
# Honeycomb Dataset |