Commit 80327168 authored by Adam Brenecki's avatar Adam Brenecki

misc stuff

parent dd435fa6
EditorConfig.EditorConfig
PeterJausovec.vscode-docker
TeddyDD.fish
bungcip.better-toml
eg2.tslint
esbenp.prettier-vscode
formulahendry.auto-rename-tag
kalitaalexey.vscode-rust
kumar-harsh.graphql-for-vscode
lextudio.restructuredtext
......@@ -9,3 +11,6 @@ lunaryorn.fish-ide
ms-python.python
onecrayon.theme-quietlight-vsc
redhat.java
rust-lang.rust
skyapps.fish-vscode
teabyii.ayu
......@@ -4,11 +4,9 @@
"editor.fontSize": 12.5,
"editor.wordWrap": "on",
"editor.wrappingIndent": "indent",
"editor.wordWrap": "on",
"editor.fontLigatures": true,
"files.autoSave": "onFocusChange",
//"files.autoSaveDelay": 100,
"window.reopenFolders": "none",
"files.exclude": {
"**/.git": true,
"**/.DS_Store": true,
......@@ -40,8 +38,9 @@
"media/**": true,
"cookbooks/**": true
},
"python.linting.enabled": false,
"python.linting.prospectorEnabled": true,
"python.linting.enabled": true,
"python.linting.mypyEnabled": true,
"python.linting.pylintEnabled": false,
"python.workspaceSymbols.tagFilePath": "${workspaceRoot}/.tags",
"python.venvPath": "~/.virtualenvs",
"editor.rulers": [80],
......@@ -49,34 +48,60 @@
"Vagrantfile": "ruby"
},
"[python]": {
"editor.rulers": [72, 79]
"editor.rulers": [72, 79, 88]
},
"[javascript]": {
"editor.tabSize": 2,
"editor.formatOnSave": true
},
"workbench.colorTheme": "Quiet Light",
"workbench.colorTheme": "Ayu Light",
"editor.minimap.enabled": false,
"workbench.editor.showIcons": false,
"workbench.iconTheme": null,
"python.formatting.provider": "yapf",
"python.formatting.provider": "black",
"[restructuredtext]": {
"editor.wordWrapColumn": 80,
"editor.wordWrap": "bounded"
},
"[markdown]": {
"editor.wordWrapColumn": 80,
"editor.wordWrap": "bounded"
},
"[ruby]": {
"editor.tabSize": 2
},
"workbench.colorTheme": "Quiet Light",
"window.zoomLevel": 0,
"prettier.requireConfig": true,
"[typescript]": {
"editor.tabSize": 2
"editor.tabSize": 2,
"editor.formatOnSave": true
},
"[typescriptreact]": {
"editor.tabSize": 2
"editor.tabSize": 2,
"editor.formatOnSave": true
},
"git.autofetch": true,
"java.errors.incompleteClasspath.severity": "ignore",
"extensions.ignoreRecommendations": false
"extensions.ignoreRecommendations": false,
"rust.rustup": {
"toolchain": "stable-x86_64-apple-darwin"
},
"rust.mode": "legacy",
"[rust]": {
"editor.formatOnSave": true
},
"python.jediEnabled": false,
"python.venvFolders": [
"envs",
".pyenv",
".direnv",
"Library/Caches/pypoetry/virtualenvs"
],
"typescript.updateImportsOnFileMove.enabled": "always",
"breadcrumbs.enabled": true,
"python.linting.flake8Enabled": true,
"python.linting.flake8CategorySeverity.E": "Warning",
"python.formatting.blackPath": "/Users/adam/.local/bin/black",
"git.enableSmartCommit": true,
"git.confirmSync": false,
}
......@@ -82,7 +82,7 @@
"Django URL conf": {
"prefix": "urlspy",
"body": [
"from django.conf.urls import url",
"from django.urls import path",
"",
"from . import views",
"",
......@@ -93,7 +93,7 @@
},
"Django URL entry": {
"prefix": "url",
"body": ["url(r'^$1$', views.$2.as_view(), name='$3'),"]
"body": ["path('^$1', views.$2.as_view(), name='$3'),"]
},
"Django CMS plugin preamble": {
"prefix": "cmsplugin-preamble",
......
......@@ -28,5 +28,21 @@
" }",
"}"
]
}
},
"Redux action and action creator": {
"prefix": "actionCreator",
"body": [
// "export const ${1/(.*)/${1:/upcase}/} = \"${1/(.*)/${1:/upcase}/}\"",
"export const ${1/([A-Z]?)([a-z]+)/${1:+_}$1${2:/upcase}/g} = \"${1/([A-Z]?)([a-z]+)/${1:+_}$1${2:/upcase}/g}\"",
"export type ${1/^(.)/${1:/upcase}/} = {",
" type: typeof ${1/([A-Z]?)([a-z]+)/${1:+_}$1${2:/upcase}/g}",
" $0",
"}",
"export function $1(): ${1/^(.)/${1:/upcase}/} {",
" return {",
" type: ${1/([A-Z]?)([a-z]+)/${1:+_}$1${2:/upcase}/g},",
" }",
"}"
]
},
}
\ No newline at end of file
{
// Place your snippets for typescriptreact here. Each snippet is defined under a snippet name and has a prefix, body and
// description. 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": {
// "prefix": "log",
// "body": [
// "console.log('$1');",
// "$2"
// ],
// "description": "Log output to console"
// }
"React-Redux container component": {
"prefix": "container",
"body": [
"import * as React from \"react\"",
"import { connect } from \"react-redux\"",
"import { State as ReduxState, Action as ReduxAction } from \"../state\"",
"",
"type OwnProps = {",
"}",
"",
"type State = {",
"}",
"",
"type Props = OwnProps &",
" ReturnType<typeof mapStateToProps> &",
" ReturnType<typeof mapDispatchToProps>",
"",
"class $TM_FILENAME_BASE extends React.Component<Props, State> {",
" render() {",
" return null",
" }",
"}",
"",
"function mapStateToProps(state: ReduxState, ownProps: OwnProps) {",
" return {",
" }",
"}",
"",
"function mapDispatchToProps(",
" dispatch: (action: ReduxAction) => void,",
" ownProps: OwnProps,",
") {",
" return {",
" }",
"}",
"",
"export default connect(",
" mapStateToProps,",
" mapDispatchToProps,",
")($TM_FILENAME_BASE)",
]
},
"React component": {
"prefix": "component",
"body": [
"import * as React from \"react\"",
"",
"type Props = {}",
"type State = {}",
"",
"export default class $TM_FILENAME_BASE extends React.Component<Props, State> {",
" render(){",
" return null",
" }",
"}"
]
}
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment