Skip to content

Commit d7ef594

Browse files
committed
fix: tweak a few snippets
The changes are mostly internal to prepare for preview images and MUI v5. Squashed commit of the following: commit a0175ac15bac86045b515d5ecf9422bebfd8aaa0 Author: Andy Edwards <jedwards@fastmail.com> Date: Fri Sep 24 11:34:46 2021 -0500 chore: upgrade build deps commit edfa5c848d62ec3531aa96099be2db792f1bb44d Author: Andy Edwards <jedwards@fastmail.com> Date: Thu Sep 16 16:47:40 2021 -0500 feat: finish converting snippets to new syntax commit 61fc6d81f3c70500872a5b0044407fd5bfa48ffa Author: Andy Edwards <jedwards@fastmail.com> Date: Wed Sep 15 13:51:16 2021 -0500 fix: WIP on more snippet syntax changes commit d25294ebd0dbb04897908c6f84b565f50167b3d4 Author: Andy Edwards <jedwards@fastmail.com> Date: Fri May 21 00:02:31 2021 -0500 feat: simplify new snippet syntax [WIP] commit 934142ced9e7db4c249c01d139ccef7d67736216 Author: Andy Edwards <jedwards@fastmail.com> Date: Thu May 20 23:16:42 2021 -0500 feat: more WIP on new system commit 292bc044e8a948135469d0c1bbcdb9dd5d69e7aa Author: Andy Edwards <jedwards@fastmail.com> Date: Wed May 19 22:28:37 2021 -0500 feat: WIP on new system commit 8a1ecf390d66407f52e0113d4d67e784a185e5f8 Author: Andy Edwards <jedwards@fastmail.com> Date: Wed May 5 23:51:09 2021 -0500 feat: even more WIP on new snippet declaration system commit 13289416c61a852704f4b1435cea24c60154cb1d Author: Andy Edwards <jedwards@fastmail.com> Date: Wed May 5 23:32:53 2021 -0500 feat: more WIP on new snippet declaration system commit cb6bdec41deb87e600c90ff9a699ebfbf3ebb2e4 Author: Andy Edwards <jedwards@fastmail.com> Date: Wed May 5 14:45:38 2021 -0500 feat: WIP on new snippet declaration system
1 parent afcc4a7 commit d7ef594

File tree

141 files changed

+7216
-6953
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

141 files changed

+7216
-6953
lines changed

.babelrc.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1-
module.exports = function(api) {
1+
module.exports = function (api) {
22
const plugins = ['@babel/plugin-transform-runtime']
33
const presets = [
44
['@babel/preset-env', { targets: { node: 10 } }],
5+
'@babel/preset-react',
56
'@babel/preset-typescript',
67
]
78

.eslintrc

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
{
22
"extends": [
33
"@jedwards1211/eslint-config-typescript",
4-
"eslint-config-prettier"
5-
]
4+
"@jedwards1211/eslint-config-react",
5+
"prettier",
6+
"prettier/@typescript-eslint"
7+
],
8+
"rules": {
9+
"@typescript-eslint/no-explicit-any": 0
10+
}
611
}

.vscode/snippets.code-snippets

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,15 @@
22
"Snippet Template": {
33
"prefix": "snip",
44
"body": [
5-
"import snip from '../snip'",
5+
"import * as React from 'react'",
6+
"import { SnippetOptions } from './index'",
67
"",
78
"export const description = '$1'",
89
"",
9-
"export const body = snip`",
10-
"$0",
11-
"`"
10+
"export const body = ({ $, Components: { $2 } }: SnippetOptions) => (",
11+
" $3",
12+
")",
13+
""
1214
]
1315
}
1416
}

0 commit comments

Comments
 (0)