|
192 | 192 | "🟨 reactFnComp": { |
193 | 193 | "prefix": "rFC.$rFC", |
194 | 194 | "body": [ |
195 | | - "export default function ${1:${RELATIVE_FILEPATH/(^.+?(?=[\\/\\\\][^\\/\\\\]+[\\/\\\\][^\\/\\\\]+\\.[jt]sx?))|(\\.[jt]sx?$|[\\/\\\\](?:index|\\[).*|.+[\\/\\\\](?!(?:index|\\[))|[.\\-_\\/\\\\])|(\\w+)/${3:/capitalize}/g}}() {$0", |
| 195 | + "export default function ${1:${RELATIVE_FILEPATH/(\\.[jt]sx?$|[\\/\\\\](?:index|\\[).*|.+[\\/\\\\](?!(?:index|page|\\[))|[.\\-_\\/\\\\])|(\\w+)/${2:/capitalize}/g}}() {$0", |
196 | 196 | "\treturn (", |
197 | 197 | "\t\t<${2:div}>${3:$1}</$2>", |
198 | 198 | "\t)", |
|
205 | 205 | "🟨 reactFnCompExport": { |
206 | 206 | "prefix": "rFCe.$rFCe", |
207 | 207 | "body": [ |
208 | | - "function ${1:${RELATIVE_FILEPATH/(^.+?(?=[\\/\\\\][^\\/\\\\]+[\\/\\\\][^\\/\\\\]+\\.[jt]sx?))|(\\.[jt]sx?$|[\\/\\\\](?:index|\\[).*|.+[\\/\\\\](?!(?:index|\\[))|[.\\-_\\/\\\\])|(\\w+)/${3:/capitalize}/g}}() {$0", |
| 208 | + "function ${1:${RELATIVE_FILEPATH/(\\.[jt]sx?$|[\\/\\\\](?:index|\\[).*|.+[\\/\\\\](?!(?:index|page|\\[))|[.\\-_\\/\\\\])|(\\w+)/${2:/capitalize}/g}}() {$0", |
209 | 209 | "\treturn (", |
210 | 210 | "\t\t<${2:div}>${3:$1}</$2>", |
211 | 211 | "\t)", |
|
220 | 220 | "🟨 reactFnCompNoExport": { |
221 | 221 | "prefix": "rFCne.$rFCne", |
222 | 222 | "body": [ |
223 | | - "function ${1:${RELATIVE_FILEPATH/(^.+?(?=[\\/\\\\][^\\/\\\\]+[\\/\\\\][^\\/\\\\]+\\.[jt]sx?))|(\\.[jt]sx?$|[\\/\\\\](?:index|\\[).*|.+[\\/\\\\](?!(?:index|\\[))|[.\\-_\\/\\\\])|(\\w+)/${3:/capitalize}/g}}() {$0", |
| 223 | + "function ${1:${RELATIVE_FILEPATH/(\\.[jt]sx?$|[\\/\\\\](?:index|\\[).*|.+[\\/\\\\](?!(?:index|page|\\[))|[.\\-_\\/\\\\])|(\\w+)/${2:/capitalize}/g}}() {$0", |
224 | 224 | "\treturn (", |
225 | 225 | "\t\t<${2:div}>${3:$1}</$2>", |
226 | 226 | "\t)", |
|
235 | 235 | "body": [ |
236 | 236 | "import PropTypes from 'prop-types'", |
237 | 237 | "", |
238 | | - "export default function ${1:${RELATIVE_FILEPATH/(^.+?(?=[\\/\\\\][^\\/\\\\]+[\\/\\\\][^\\/\\\\]+\\.[jt]sx?))|(\\.[jt]sx?$|[\\/\\\\](?:index|\\[).*|.+[\\/\\\\](?!(?:index|\\[))|[.\\-_\\/\\\\])|(\\w+)/${3:/capitalize}/g}}() {$0", |
| 238 | + "export default function ${1:${RELATIVE_FILEPATH/(\\.[jt]sx?$|[\\/\\\\](?:index|\\[).*|.+[\\/\\\\](?!(?:index|page|\\[))|[.\\-_\\/\\\\])|(\\w+)/${2:/capitalize}/g}}() {$0", |
239 | 239 | "\treturn (", |
240 | 240 | "\t\t<${2:div}>${3:$1}</$2>", |
241 | 241 | "\t)", |
|
252 | 252 | "body": [ |
253 | 253 | "import PropTypes from 'prop-types'", |
254 | 254 | "", |
255 | | - "export default function ${1:${RELATIVE_FILEPATH/(^.+?(?=[\\/\\\\][^\\/\\\\]+[\\/\\\\][^\\/\\\\]+\\.[jt]sx?))|(\\.[jt]sx?$|[\\/\\\\](?:index|\\[).*|.+[\\/\\\\](?!(?:index|\\[))|[.\\-_\\/\\\\])|(\\w+)/${3:/capitalize}/g}}({ children }) {$0", |
| 255 | + "export default function ${1:${RELATIVE_FILEPATH/(\\.[jt]sx?$|[\\/\\\\](?:index|\\[).*|.+[\\/\\\\](?!(?:index|page|\\[))|[.\\-_\\/\\\\])|(\\w+)/${2:/capitalize}/g}}({ children }) {$0", |
256 | 256 | "\treturn (", |
257 | 257 | "\t\t<${2:div}>${3:{ children \\}}</$2>", |
258 | 258 | "\t)", |
|
269 | 269 | "🟨 reactArrowFnComp": { |
270 | 270 | "prefix": "rAFC.$rAFC", |
271 | 271 | "body": [ |
272 | | - "export const ${1:${RELATIVE_FILEPATH/(^.+?(?=[\\/\\\\][^\\/\\\\]+[\\/\\\\][^\\/\\\\]+\\.[jt]sx?))|(\\.[jt]sx?$|[\\/\\\\](?:index|\\[).*|.+[\\/\\\\](?!(?:index|\\[))|[.\\-_\\/\\\\])|(\\w+)/${3:/capitalize}/g}} = () => {$0", |
| 272 | + "export const ${1:${RELATIVE_FILEPATH/(\\.[jt]sx?$|[\\/\\\\](?:index|\\[).*|.+[\\/\\\\](?!(?:index|page|\\[))|[.\\-_\\/\\\\])|(\\w+)/${2:/capitalize}/g}} = () => {$0", |
273 | 273 | "\treturn (", |
274 | 274 | "\t\t<${2:div}>${3:$1}</$2>", |
275 | 275 | "\t)", |
|
282 | 282 | "🟨 reactArrowFnCompExport": { |
283 | 283 | "prefix": "rAFCe.$rAFCe", |
284 | 284 | "body": [ |
285 | | - "const ${1:${RELATIVE_FILEPATH/(^.+?(?=[\\/\\\\][^\\/\\\\]+[\\/\\\\][^\\/\\\\]+\\.[jt]sx?))|(\\.[jt]sx?$|[\\/\\\\](?:index|\\[).*|.+[\\/\\\\](?!(?:index|\\[))|[.\\-_\\/\\\\])|(\\w+)/${3:/capitalize}/g}} = () => {$0", |
| 285 | + "const ${1:${RELATIVE_FILEPATH/(\\.[jt]sx?$|[\\/\\\\](?:index|\\[).*|.+[\\/\\\\](?!(?:index|page|\\[))|[.\\-_\\/\\\\])|(\\w+)/${2:/capitalize}/g}} = () => {$0", |
286 | 286 | "\treturn (", |
287 | 287 | "\t\t<${2:div}>${3:$1}</$2>", |
288 | 288 | "\t)", |
|
297 | 297 | "🟨 reactArrowFnCompNoExport": { |
298 | 298 | "prefix": "rAFCne.$rAFCne", |
299 | 299 | "body": [ |
300 | | - "const ${1:${RELATIVE_FILEPATH/(^.+?(?=[\\/\\\\][^\\/\\\\]+[\\/\\\\][^\\/\\\\]+\\.[jt]sx?))|(\\.[jt]sx?$|[\\/\\\\](?:index|\\[).*|.+[\\/\\\\](?!(?:index|\\[))|[.\\-_\\/\\\\])|(\\w+)/${3:/capitalize}/g}} = () => {$0", |
| 300 | + "const ${1:${RELATIVE_FILEPATH/(\\.[jt]sx?$|[\\/\\\\](?:index|\\[).*|.+[\\/\\\\](?!(?:index|page|\\[))|[.\\-_\\/\\\\])|(\\w+)/${2:/capitalize}/g}} = () => {$0", |
301 | 301 | "\treturn (", |
302 | 302 | "\t\t<${2:div}>${3:$1}</$2>", |
303 | 303 | "\t)", |
|
312 | 312 | "body": [ |
313 | 313 | "import PropTypes from 'prop-types'", |
314 | 314 | "", |
315 | | - "const ${1:${RELATIVE_FILEPATH/(^.+?(?=[\\/\\\\][^\\/\\\\]+[\\/\\\\][^\\/\\\\]+\\.[jt]sx?))|(\\.[jt]sx?$|[\\/\\\\](?:index|\\[).*|.+[\\/\\\\](?!(?:index|\\[))|[.\\-_\\/\\\\])|(\\w+)/${3:/capitalize}/g}} = () => {$0", |
| 315 | + "const ${1:${RELATIVE_FILEPATH/(\\.[jt]sx?$|[\\/\\\\](?:index|\\[).*|.+[\\/\\\\](?!(?:index|page|\\[))|[.\\-_\\/\\\\])|(\\w+)/${2:/capitalize}/g}} = () => {$0", |
316 | 316 | "\treturn (", |
317 | 317 | "\t\t<${2:div}>${3:$1}</$2>", |
318 | 318 | "\t)", |
|
331 | 331 | "body": [ |
332 | 332 | "import PropTypes from 'prop-types'", |
333 | 333 | "", |
334 | | - "const ${1:${RELATIVE_FILEPATH/(^.+?(?=[\\/\\\\][^\\/\\\\]+[\\/\\\\][^\\/\\\\]+\\.[jt]sx?))|(\\.[jt]sx?$|[\\/\\\\](?:index|\\[).*|.+[\\/\\\\](?!(?:index|\\[))|[.\\-_\\/\\\\])|(\\w+)/${3:/capitalize}/g}} = ({ children }) => {$0", |
| 334 | + "const ${1:${RELATIVE_FILEPATH/(\\.[jt]sx?$|[\\/\\\\](?:index|\\[).*|.+[\\/\\\\](?!(?:index|page|\\[))|[.\\-_\\/\\\\])|(\\w+)/${2:/capitalize}/g}} = ({ children }) => {$0", |
335 | 335 | "\treturn (", |
336 | 336 | "\t\t<${2:div}>${3:{ children \\}}</$2>", |
337 | 337 | "\t)", |
|
350 | 350 | "🟨 hocComponent": { |
351 | 351 | "prefix": "hoc.$hoc.rHOC", |
352 | 352 | "body": [ |
353 | | - "export default function ${1:${RELATIVE_FILEPATH/(^.+?(?=[\\/\\\\][^\\/\\\\]+[\\/\\\\][^\\/\\\\]+\\.[jt]sx?))|(\\.[jt]sx?$|[\\/\\\\](?:index|\\[).*|.+[\\/\\\\](?!(?:index|\\[))|[.\\-_\\/\\\\])|([\\w\\-_]*)/${3:/camelcase}/g}}(WrappedComponent) {$0", |
| 353 | + "export default function ${1:${RELATIVE_FILEPATH/(\\.[jt]sx?$|[\\/\\\\](?:index|\\[).*|.+[\\/\\\\](?!(?:index|page|\\[))|[.\\-_\\/\\\\])|([\\w\\-_]*)/${2:/camelcase}/g}}(WrappedComponent) {$0", |
354 | 354 | "\tconst Component = (props) => {", |
355 | 355 | "\t\treturn <WrappedComponent {...props} />", |
356 | 356 | "\t}", |
|
470 | 470 | "body": [ |
471 | 471 | "import { useEffect } from 'react'", |
472 | 472 | "", |
473 | | - "export default function ${1:${RELATIVE_FILEPATH/(^.+?(?=[\\/\\\\][^\\/\\\\]+[\\/\\\\][^\\/\\\\]+\\.[jt]sx?))|(\\.[jt]sx?$|[\\/\\\\](?:index|\\[).*|.+[\\/\\\\](?!(?:index|\\[))|[.\\-_\\/\\\\])|([\\w\\-_]*)/${3:/camelcase}/g}}() {", |
| 473 | + "export default function ${1:${RELATIVE_FILEPATH/(\\.[jt]sx?$|[\\/\\\\](?:index|\\[).*|.+[\\/\\\\](?!(?:index|page|\\[))|[.\\-_\\/\\\\])|([\\w\\-_]*)/${2:/camelcase}/g}}() {", |
474 | 474 | "\t${0:// code}", |
475 | 475 | "\t", |
476 | 476 | "\tuseEffect(() => {", |
|
488 | 488 | "body": [ |
489 | 489 | "import { useEffect } from 'react'", |
490 | 490 | "", |
491 | | - "const ${1:${RELATIVE_FILEPATH/(^.+?(?=[\\/\\\\][^\\/\\\\]+[\\/\\\\][^\\/\\\\]+\\.[jt]sx?))|(\\.[jt]sx?$|[\\/\\\\](?:index|\\[).*|.+[\\/\\\\](?!(?:index|\\[))|[.\\-_\\/\\\\])|([\\w\\-_]*)/${3:/camelcase}/g}} = () => {", |
| 491 | + "const ${1:${RELATIVE_FILEPATH/(\\.[jt]sx?$|[\\/\\\\](?:index|\\[).*|.+[\\/\\\\](?!(?:index|page|\\[))|[.\\-_\\/\\\\])|([\\w\\-_]*)/${2:/camelcase}/g}} = () => {", |
492 | 492 | "\t${0:// code}", |
493 | 493 | "\t", |
494 | 494 | "\tuseEffect(() => {", |
|
508 | 508 | "body": [ |
509 | 509 | "import { useEffect } from 'react'", |
510 | 510 | "", |
511 | | - "export const ${1:${RELATIVE_FILEPATH/(^.+?(?=[\\/\\\\][^\\/\\\\]+[\\/\\\\][^\\/\\\\]+\\.[jt]sx?))|(\\.[jt]sx?$|[\\/\\\\](?:index|\\[).*|.+[\\/\\\\](?!(?:index|\\[))|[.\\-_\\/\\\\])|([\\w\\-_]*)/${3:/camelcase}/g}} = () => {", |
| 511 | + "export const ${1:${RELATIVE_FILEPATH/(\\.[jt]sx?$|[\\/\\\\](?:index|\\[).*|.+[\\/\\\\](?!(?:index|page|\\[))|[.\\-_\\/\\\\])|([\\w\\-_]*)/${2:/camelcase}/g}} = () => {", |
512 | 512 | "\t${0:// code}", |
513 | 513 | "\t", |
514 | 514 | "\tuseEffect(() => {", |
|
674 | 674 | "import React from 'react'", |
675 | 675 | "import { View, Text } from 'react-native'", |
676 | 676 | "", |
677 | | - "export default function ${1:${RELATIVE_FILEPATH/(^.+?(?=[\\/\\\\][^\\/\\\\]+[\\/\\\\][^\\/\\\\]+\\.[jt]sx?))|(\\.[jt]sx?$|[\\/\\\\](?:index|\\[).*|.+[\\/\\\\](?!(?:index|\\[))|[.\\-_\\/\\\\])|(\\w+)/${3:/capitalize}/g}}() {$0", |
| 677 | + "export default function ${1:${RELATIVE_FILEPATH/(\\.[jt]sx?$|[\\/\\\\](?:index|\\[).*|.+[\\/\\\\](?!(?:index|page|\\[))|[.\\-_\\/\\\\])|(\\w+)/${2:/capitalize}/g}}() {$0", |
678 | 678 | "\treturn (", |
679 | 679 | "\t\t<View>", |
680 | 680 | "\t\t\t<Text>${2:$1}</Text>", |
|
692 | 692 | "import React from 'react'", |
693 | 693 | "import { View, Text } from 'react-native'", |
694 | 694 | "", |
695 | | - "function ${1:${RELATIVE_FILEPATH/(^.+?(?=[\\/\\\\][^\\/\\\\]+[\\/\\\\][^\\/\\\\]+\\.[jt]sx?))|(\\.[jt]sx?$|[\\/\\\\](?:index|\\[).*|.+[\\/\\\\](?!(?:index|\\[))|[.\\-_\\/\\\\])|(\\w+)/${3:/capitalize}/g}}() {$0", |
| 695 | + "function ${1:${RELATIVE_FILEPATH/(\\.[jt]sx?$|[\\/\\\\](?:index|\\[).*|.+[\\/\\\\](?!(?:index|page|\\[))|[.\\-_\\/\\\\])|(\\w+)/${2:/capitalize}/g}}() {$0", |
696 | 696 | "\treturn (", |
697 | 697 | "\t\t<View>", |
698 | 698 | "\t\t\t<Text>${2:$1}</Text>", |
|
712 | 712 | "import React from 'react'", |
713 | 713 | "import { View, Text } from 'react-native'", |
714 | 714 | "", |
715 | | - "export const ${1:${RELATIVE_FILEPATH/(^.+?(?=[\\/\\\\][^\\/\\\\]+[\\/\\\\][^\\/\\\\]+\\.[jt]sx?))|(\\.[jt]sx?$|[\\/\\\\](?:index|\\[).*|.+[\\/\\\\](?!(?:index|\\[))|[.\\-_\\/\\\\])|(\\w+)/${3:/capitalize}/g}} = () => {$0", |
| 715 | + "export const ${1:${RELATIVE_FILEPATH/(\\.[jt]sx?$|[\\/\\\\](?:index|\\[).*|.+[\\/\\\\](?!(?:index|page|\\[))|[.\\-_\\/\\\\])|(\\w+)/${2:/capitalize}/g}} = () => {$0", |
716 | 716 | "\treturn (", |
717 | 717 | "\t\t<View>", |
718 | 718 | "\t\t\t<Text>${2:$1}</Text>", |
|
730 | 730 | "import React from 'react'", |
731 | 731 | "import { View, Text } from 'react-native'", |
732 | 732 | "", |
733 | | - "const ${1:${RELATIVE_FILEPATH/(^.+?(?=[\\/\\\\][^\\/\\\\]+[\\/\\\\][^\\/\\\\]+\\.[jt]sx?))|(\\.[jt]sx?$|[\\/\\\\](?:index|\\[).*|.+[\\/\\\\](?!(?:index|\\[))|[.\\-_\\/\\\\])|(\\w+)/${3:/capitalize}/g}} = () => {$0", |
| 733 | + "const ${1:${RELATIVE_FILEPATH/(\\.[jt]sx?$|[\\/\\\\](?:index|\\[).*|.+[\\/\\\\](?!(?:index|page|\\[))|[.\\-_\\/\\\\])|(\\w+)/${2:/capitalize}/g}} = () => {$0", |
734 | 734 | "\treturn (", |
735 | 735 | "\t\t<View>", |
736 | 736 | "\t\t\t<Text>${2:$1}</Text>", |
|
1153 | 1153 | "body": [ |
1154 | 1154 | "import * as styles from './styles'", |
1155 | 1155 | "", |
1156 | | - "export default function ${1:${RELATIVE_FILEPATH/(^.+?(?=[\\/\\\\][^\\/\\\\]+[\\/\\\\][^\\/\\\\]+\\.[jt]sx?))|(\\.[jt]sx?$|[\\/\\\\](?:index|\\[).*|.+[\\/\\\\](?!(?:index|\\[))|[.\\-_\\/\\\\])|(\\w+)/${3:/capitalize}/g}}() {$0", |
| 1156 | + "export default function ${1:${RELATIVE_FILEPATH/(\\.[jt]sx?$|[\\/\\\\](?:index|\\[).*|.+[\\/\\\\](?!(?:index|page|\\[))|[.\\-_\\/\\\\])|(\\w+)/${2:/capitalize}/g}}() {$0", |
1157 | 1157 | "\treturn (", |
1158 | 1158 | "\t\t<${2:div} css={styles.${3:container}}>${4:$1}</$2>", |
1159 | 1159 | "\t)", |
|
1168 | 1168 | "body": [ |
1169 | 1169 | "import * as styles from './styles'", |
1170 | 1170 | "", |
1171 | | - "function ${1:${RELATIVE_FILEPATH/(^.+?(?=[\\/\\\\][^\\/\\\\]+[\\/\\\\][^\\/\\\\]+\\.[jt]sx?))|(\\.[jt]sx?$|[\\/\\\\](?:index|\\[).*|.+[\\/\\\\](?!(?:index|\\[))|[.\\-_\\/\\\\])|(\\w+)/${3:/capitalize}/g}}() {$0", |
| 1171 | + "function ${1:${RELATIVE_FILEPATH/(\\.[jt]sx?$|[\\/\\\\](?:index|\\[).*|.+[\\/\\\\](?!(?:index|page|\\[))|[.\\-_\\/\\\\])|(\\w+)/${2:/capitalize}/g}}() {$0", |
1172 | 1172 | "\treturn (", |
1173 | 1173 | "\t\t<${2:div} css={styles.${3:container}}>${4:$1}</$2>", |
1174 | 1174 | "\t)", |
|
1185 | 1185 | "body": [ |
1186 | 1186 | "import * as styles from './styles'", |
1187 | 1187 | "", |
1188 | | - "export const ${1:${RELATIVE_FILEPATH/(^.+?(?=[\\/\\\\][^\\/\\\\]+[\\/\\\\][^\\/\\\\]+\\.[jt]sx?))|(\\.[jt]sx?$|[\\/\\\\](?:index|\\[).*|.+[\\/\\\\](?!(?:index|\\[))|[.\\-_\\/\\\\])|(\\w+)/${3:/capitalize}/g}} = () => {$0", |
| 1188 | + "export const ${1:${RELATIVE_FILEPATH/(\\.[jt]sx?$|[\\/\\\\](?:index|\\[).*|.+[\\/\\\\](?!(?:index|page|\\[))|[.\\-_\\/\\\\])|(\\w+)/${2:/capitalize}/g}} = () => {$0", |
1189 | 1189 | "\treturn (", |
1190 | 1190 | "\t\t<${2:div} css={styles.${3:container}}>${4:$1}</$2>", |
1191 | 1191 | "\t)", |
|
1200 | 1200 | "body": [ |
1201 | 1201 | "import * as styles from './styles'", |
1202 | 1202 | "", |
1203 | | - "const ${1:${RELATIVE_FILEPATH/(^.+?(?=[\\/\\\\][^\\/\\\\]+[\\/\\\\][^\\/\\\\]+\\.[jt]sx?))|(\\.[jt]sx?$|[\\/\\\\](?:index|\\[).*|.+[\\/\\\\](?!(?:index|\\[))|[.\\-_\\/\\\\])|(\\w+)/${3:/capitalize}/g}} = () => {$0", |
| 1203 | + "const ${1:${RELATIVE_FILEPATH/(\\.[jt]sx?$|[\\/\\\\](?:index|\\[).*|.+[\\/\\\\](?!(?:index|page|\\[))|[.\\-_\\/\\\\])|(\\w+)/${2:/capitalize}/g}} = () => {$0", |
1204 | 1204 | "\treturn (", |
1205 | 1205 | "\t\t<${2:div} css={styles.${3:container}}>${4:$1}</$2>", |
1206 | 1206 | "\t)", |
|
1215 | 1215 | "🟨 testDescribe": { |
1216 | 1216 | "prefix": "tDescribe.$tDescribe.describe(test)", |
1217 | 1217 | "body": [ |
1218 | | - "describe('${1:${RELATIVE_FILEPATH/(^.+?(?=[\\/\\\\][^\\/\\\\]+[\\/\\\\][^\\/\\\\]+\\.[jt]sx?))|(\\.[jt]sx?$|[\\/\\\\](?:index|\\[).*|.+[\\/\\\\](?!(?:index|\\[))|[.\\-_\\/\\\\])|(\\w+)/${3:/capitalize}/g}}', () => {", |
| 1218 | + "describe('${1:${RELATIVE_FILEPATH/(\\.[jt]sx?$|[\\/\\\\](?:index|\\[).*|.+[\\/\\\\](?!(?:index|page|\\[))|[.\\-_\\/\\\\])|(\\w+)/${2:/capitalize}/g}}', () => {", |
1219 | 1219 | "\t${0:// code}", |
1220 | 1220 | "})" |
1221 | 1221 | ], |
|
1235 | 1235 | "🟨 test": { |
1236 | 1236 | "prefix": "tTest.$tTest.(test)", |
1237 | 1237 | "body": [ |
1238 | | - "test('${1:${RELATIVE_FILEPATH/(^.+?(?=[\\/\\\\][^\\/\\\\]+[\\/\\\\][^\\/\\\\]+\\.[jt]sx?))|(\\.[jt]sx?$|[\\/\\\\](?:index|\\[).*|.+[\\/\\\\](?!(?:index|\\[))|[.\\-_\\/\\\\])|(\\w+)/${3:/capitalize}/g}}', ${2:async }() => {", |
| 1238 | + "test('${1:${RELATIVE_FILEPATH/(\\.[jt]sx?$|[\\/\\\\](?:index|\\[).*|.+[\\/\\\\](?!(?:index|page|\\[))|[.\\-_\\/\\\\])|(\\w+)/${2:/capitalize}/g}}', ${2:async }() => {", |
1239 | 1239 | "\t${0:// code}", |
1240 | 1240 | "})" |
1241 | 1241 | ], |
|
1445 | 1445 | "🟨 getFileNamePascalCase": { |
1446 | 1446 | "prefix": "fnpascalcase.$fnpascalcase", |
1447 | 1447 | "body": [ |
1448 | | - "${RELATIVE_FILEPATH/(^.+?(?=[\\/\\\\][^\\/\\\\]+[\\/\\\\][^\\/\\\\]+\\.[jt]sx?))|(\\.[jt]sx?$|[\\/\\\\](?:index|\\[).*|.+[\\/\\\\](?!(?:index|\\[))|[.\\-_\\/\\\\])|(\\w+)/${3:/capitalize}/g}" |
| 1448 | + "${RELATIVE_FILEPATH/(\\.[jt]sx?$|[\\/\\\\](?:index|\\[).*|.+[\\/\\\\](?!(?:index|page|\\[))|[.\\-_\\/\\\\])|(\\w+)/${2:/capitalize}/g}" |
1449 | 1449 | ], |
1450 | 1450 | "description": "Get filename in PascalCase", |
1451 | 1451 | "scope": "javascript,javascriptreact" |
1452 | 1452 | }, |
1453 | 1453 | "🟨 getFileNameCamelCase": { |
1454 | 1454 | "prefix": "fncamelcase.$fncamelcase", |
1455 | 1455 | "body": [ |
1456 | | - "${RELATIVE_FILEPATH/(^.+?(?=[\\/\\\\][^\\/\\\\]+[\\/\\\\][^\\/\\\\]+\\.[jt]sx?))|(\\.[jt]sx?$|[\\/\\\\](?:index|\\[).*|.+[\\/\\\\](?!(?:index|\\[))|[.\\-_\\/\\\\])|([\\w\\-_]*)/${3:/camelcase}/g}" |
| 1456 | + "${RELATIVE_FILEPATH/(\\.[jt]sx?$|[\\/\\\\](?:index|\\[).*|.+[\\/\\\\](?!(?:index|page|\\[))|[.\\-_\\/\\\\])|([\\w\\-_]*)/${2:/camelcase}/g}" |
1457 | 1457 | ], |
1458 | 1458 | "description": "Get filename in camelCase", |
1459 | 1459 | "scope": "javascript,javascriptreact" |
1460 | 1460 | }, |
1461 | 1461 | "🟨 generatePropTypes": { |
1462 | 1462 | "prefix": "genPropTypes.$genPropTypes", |
1463 | 1463 | "body": [ |
1464 | | - "${1:${RELATIVE_FILEPATH/(^.+?(?=[\\/\\\\][^\\/\\\\]+[\\/\\\\][^\\/\\\\]+\\.[jt]sx?))|(\\.[jt]sx?$|[\\/\\\\](?:index|\\[).*|.+[\\/\\\\](?!(?:index|\\[))|[.\\-_\\/\\\\])|(\\w+)/${3:/capitalize}/g}}.propTypes = {", |
| 1464 | + "${1:${RELATIVE_FILEPATH/(\\.[jt]sx?$|[\\/\\\\](?:index|\\[).*|.+[\\/\\\\](?!(?:index|page|\\[))|[.\\-_\\/\\\\])|(\\w+)/${2:/capitalize}/g}}.propTypes = {", |
1465 | 1465 | "${CLIPBOARD/(\\=\\s*[^,]*),?|(\\w+)|(\\s*),?/${2:+ }$2${2:+: PropTypes.any,\n}/gm}}", |
1466 | 1466 | "" |
1467 | 1467 | ], |
|
0 commit comments