forked from fluxscape/fluxscape
-
Notifications
You must be signed in to change notification settings - Fork 0
/
noodl-editor.code-workspace
140 lines (140 loc) · 3.99 KB
/
noodl-editor.code-workspace
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
{
"folders": [
{
"path": "./",
"name": "Monorepo"
}
],
"extensions": {
"recommendations": [
"EditorConfig.EditorConfig",
"dbaeumer.vscode-eslint",
"esbenp.prettier-vscode",
"stylelint.vscode-stylelint",
"hektorw.create-react-folder-component"
]
},
"settings": {
"files.eol": "\r\n",
"editor.tabSize": 2,
"typescript.tsdk": "node_modules/typescript/lib",
"typescript.preferences.importModuleSpecifier": "non-relative",
"typescript.enablePromptUseWorkspaceTsdk": true,
"npm.packageManager": "npm",
"eslint.validate": [
"javascript",
"javascriptreact",
"html",
"typescriptreact",
"typescript"
],
"css.validate": false,
"scss.validate": false,
"editor.codeActionsOnSave": {
"source.fixAll": "explicit"
},
"search.exclude": {
"deps": true,
"**/node_modules": true,
"**/build": true,
"**/bundles": true,
"**/assets/lib": true
},
"[markdown]": {
"editor.formatOnSave": true,
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[css]": {
"editor.formatOnSave": true,
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[scss]": {
"editor.formatOnSave": true,
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[javascript]": {
"editor.formatOnSave": true,
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[javascriptreact]": {
"editor.formatOnSave": true,
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[typescript]": {
"editor.formatOnSave": true,
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[typescriptreact]": {
"editor.formatOnSave": true,
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"createreactfoldercomponent.templateLanguage": "TypeScript",
"createreactfoldercomponent.typeScriptStyledComponentTemplate": [
"import React from 'react'",
"import css from './$COMPONENT_NAME.module.scss'",
"",
"export interface $COMPONENT_NAMEProps {",
"}",
"",
"export function $COMPONENT_NAME({}: $COMPONENT_NAMEProps) {",
" return <div className={css['Root']}>TODO</div>",
"}"
],
"createreactfoldercomponent.typeScriptIndexTemplate": [
"export * from './$COMPONENT_NAME'"
],
"createreactfoldercomponent.typeScriptComponentTemplate": [
"import React from 'react'",
"",
"interface $COMPONENT_NAMEProps {",
"}",
"",
"export function $COMPONENT_NAME({}: $COMPONENT_NAMEProps) {",
"}"
],
"createreactfoldercomponent.typeScriptStyleFileNameTemplate": "$COMPONENT_NAME.module.scss",
"createreactfoldercomponent.typeScriptStyleTemplate": [
".Root {",
" font-family: var(--font-family);",
" color: var(--theme-color-fg-default);",
"}"
],
"createreactfoldercomponent.customFiles": [
{
"filename": "$COMPONENT_NAME.stories.tsx",
"outputForLanguage": "TypeScript",
"contents": [
"import React from 'react';",
"import { ComponentStory, ComponentMeta } from '@storybook/react';",
"",
"import { $COMPONENT_NAME } from './$COMPONENT_NAME';",
"",
"export default {",
" title: 'CATEGORY_HERE/$COMPONENT_NAME',",
" component: $COMPONENT_NAME,",
" argTypes: {},",
"} as ComponentMeta<typeof $COMPONENT_NAME>;",
"",
"const Template: ComponentStory<typeof $COMPONENT_NAME> = (args) => <$COMPONENT_NAME {...args} />;",
"",
"export const Common = Template.bind({});",
"Common.args = {};"
]
}
]
},
"tasks": {
"version": "2.0.0",
"tasks": [
{
"label": "Start editor",
"type": "shell",
"command": "npm run start",
"problemMatcher": [],
"presentation": {
"group": "one"
}
}
]
}
}