Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // How To Use
- // ==========================================
- // `cmd + shift + p` in VSCode:
- // - Type `Configure User Snippets`
- // - Create new global snippets file
- //{
- // Place your global snippets here. Each snippet is defined under a snippet name and has a scope, prefix, body and
- // description. Add comma separated ids of the languages where the snippet is applicable in the scope field. If scope
- // is left empty or omitted, the snippet gets applied to all languages. The prefix is what is
- // used to trigger the snippet and the body will be expanded and inserted. Possible variables are:
- // $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders.
- // Placeholders with the same ids are connected.
- // Example:
- // "Print to console": {
- // "scope": "javascript,typescript",
- // "prefix": "log",
- // "body": [
- // "console.log('$1');",
- // "$2"
- // ],
- // "description": "Log output to console"
- // }
- //}
- {
- "eslint-disable-props": {
- "prefix": "eslint-props",
- "body": [
- "/* eslint-disable react/prop-types */",
- ],
- "description": "eslint-disable prop-types"
- },
- "rem": {
- "prefix": "rem",
- "body": [
- "${rem('${0:pixel}')}",
- ],
- "description": "Polished rem"
- },
- "theme": {
- "prefix": "theme",
- "body": [
- "${({ theme }) => theme.typography.${0:typography}};",
- ],
- "description": "theme"
- },
- "above": {
- "prefix": "above",
- "body": [
- "import { above } from '@autogravity/web-styles';",
- "\t${above(",
- "\t'$0',",
- "\t`$1",
- "\t`,",
- ")};",
- ],
- "description": "above"
- },
- "jest_describe": {
- "prefix": "jest describe",
- "body": [
- "describe('${1:string}', () => {",
- "\t$0",
- "})"
- ],
- "description": "Jest Describe"
- },
- "jest_beforeEach": {
- "prefix": "jest beforeEach",
- "body": [
- "beforeEach(() => {",
- "\t$0",
- "})"
- ],
- "description": "Jest Before Each"
- },
- "jest_test": {
- "prefix": "jest test",
- "body": [
- "test('${1:string}', () => {",
- "//Arrange--------------",
- "${2:string}",
- "//Act------------------",
- "//Assert---------------",
- "\t$0",
- "})"
- ],
- "description": "Jest Test"
- },
- "jest_comments": {
- "prefix": "jest comments",
- "body": [
- "//Arrange--------------",
- "${1:string}",
- "//Act------------------",
- "//Assert---------------"
- ],
- "description": "Jest Comments"
- }
- }
Add Comment
Please, Sign In to add comment