Last active
February 16, 2018 07:50
-
-
Save westmark/134e49fb5e110625cb81 to your computer and use it in GitHub Desktop.
automatic update by http://atom.io/packages/sync-settings
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Your init script | |
# | |
# Atom will evaluate this file each time a new window is opened. It is run | |
# after packages are loaded/activated and after the previous editor state | |
# has been restored. | |
# | |
# An example hack to make opened Markdown files always be soft wrapped: | |
# | |
# path = require 'path' | |
# | |
# atom.workspaceView.eachEditorView (editorView) -> | |
# editor = editorView.getEditor() | |
# if path.extname(editor.getPath()) is '.md' | |
# editor.setSoftWrapped(true) | |
process.env.PATH = ["/usr/local/bin", process.env.PATH].join(":") | |
# prevent core:copy if and only if there's one selection in | |
# the active editor (mini or not) and its length equals 0 | |
atom.commands.add 'atom-text-editor', 'core:copy', (e) -> | |
editor = e.currentTarget.getModel() | |
# do nothing if there's more than 1 selection | |
return if editor.getSelectedBufferRanges().length > 1 | |
# get the starting and ending points of the selection | |
{start, end} = editor.getSelectedBufferRange() | |
# stop the command from immediate propagation (i.e. | |
# executing the same command on the same element or | |
# an element higher up the DOM tree). This works | |
# because atom executes commands in the reverse order | |
# they were registered with atom.commands.add, and this | |
# one's added after the core commands are already | |
# registered. | |
if start.column is end.column and start.row is end.row | |
e.stopImmediatePropagation() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Your keymap | |
# | |
# Atom keymaps work similarly to stylesheets. Just as stylesheets use selectors | |
# to apply styles to elements, Atom keymaps use selectors to associate | |
# keystrokes with events in specific contexts. | |
# | |
# You can create a new keybinding in this file by typing "key" and then hitting | |
# tab. | |
# | |
# Here's an example taken from Atom's built-in keymap: | |
# | |
# '.editor': | |
# 'enter': 'editor:newline' | |
# | |
# '.workspace': | |
# 'ctrl-shift-p': 'core:move-up' | |
# 'ctrl-p': 'core:move-down' | |
# | |
# You can find more information about keymaps in these guides: | |
# * https://atom.io/docs/latest/customizing-atom#customizing-key-bindings | |
# * https://atom.io/docs/latest/advanced/keymaps | |
'atom-workspace atom-text-editor:not(.mini)': | |
'ctrl-down': 'editor:move-line-down' | |
'ctrl-up': 'editor:move-line-up' | |
'alt-ctrl-down': 'editor:duplicate-lines' | |
'cmd-n': 'find-selection:find-next' | |
'cmd-+': 'spell-check:correct-misspelling' | |
'cmd-d': 'editor:delete-line' | |
'cmd-right': 'editor:move-to-end-of-screen-line' | |
'cmd-left': 'editor:move-to-first-character-of-line' | |
'cmd-up': 'core:move-to-top' | |
'cmd-down': 'core:move-to-bottom' | |
'cmd-enter': 'editor:newline-below' | |
'cmd-shift-right': 'editor:select-to-end-of-line' | |
'cmd-shift-left': 'editor:select-to-first-character-of-line' | |
'cmd-w': 'core:close' | |
'cmd-t': 'fuzzy-finder:toggle-file-finder' | |
'cmd-j': 'editor:join-lines' | |
'cmd-shift-L': 'editor:split-selections-into-lines' | |
'ctrl-cmd-g': 'find-and-replace:select-all' | |
'body': | |
'cmd-s': 'core:save' | |
'cmd-z': 'core:undo' | |
'cmd-y': 'core:redo' | |
'cmd-c': 'core:copy' | |
'cmd-x': 'core:cut' | |
'cmd-v': 'core:paste' | |
'cmd-a': 'core:select-all' | |
#'atom-workspace': | |
# 'ctrl-tab': 'ctrl-last-tab:next' | |
#'ctrl-shift-tab': 'ctrl-last-tab:previous' | |
'atom-text-editor': | |
'ctrl-space': 'autocomplete-plus:activate' | |
'.platform-win32, .platform-linux': | |
'cmd-f': 'find-and-replace:show' | |
'cmd-shift-F': 'project-find:show' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"name": "about", | |
"version": "1.7.8" | |
}, | |
{ | |
"name": "advanced-open-file", | |
"version": "0.16.7" | |
}, | |
{ | |
"name": "archive-view", | |
"version": "0.64.1" | |
}, | |
{ | |
"name": "atom-beautify", | |
"version": "0.30.9" | |
}, | |
{ | |
"name": "atom-dark-syntax", | |
"version": "0.29.0", | |
"theme": "syntax" | |
}, | |
{ | |
"name": "atom-dark-ui", | |
"version": "0.53.1", | |
"theme": "ui" | |
}, | |
{ | |
"name": "atom-handlebars", | |
"version": "1.3.0" | |
}, | |
{ | |
"name": "atom-light-syntax", | |
"version": "0.29.0", | |
"theme": "syntax" | |
}, | |
{ | |
"name": "atom-light-ui", | |
"version": "0.46.1", | |
"theme": "ui" | |
}, | |
{ | |
"name": "autocomplete-atom-api", | |
"version": "0.10.6" | |
}, | |
{ | |
"name": "autocomplete-css", | |
"version": "0.17.5" | |
}, | |
{ | |
"name": "autocomplete-html", | |
"version": "0.8.4" | |
}, | |
{ | |
"name": "autocomplete-paths", | |
"version": "2.12.2" | |
}, | |
{ | |
"name": "autocomplete-plus", | |
"version": "2.40.0" | |
}, | |
{ | |
"name": "autocomplete-snippets", | |
"version": "1.11.2" | |
}, | |
{ | |
"name": "autoflow", | |
"version": "0.29.0" | |
}, | |
{ | |
"name": "autosave", | |
"version": "0.24.6" | |
}, | |
{ | |
"name": "background-tips", | |
"version": "0.27.1" | |
}, | |
{ | |
"name": "base16-tomorrow-dark-theme", | |
"version": "1.5.0", | |
"theme": "syntax" | |
}, | |
{ | |
"name": "base16-tomorrow-light-theme", | |
"version": "1.5.0", | |
"theme": "syntax" | |
}, | |
{ | |
"name": "bookmarks", | |
"version": "0.45.0" | |
}, | |
{ | |
"name": "bracket-matcher", | |
"version": "0.88.1" | |
}, | |
{ | |
"name": "busy-signal", | |
"version": "1.4.3" | |
}, | |
{ | |
"name": "color-picker", | |
"version": "2.2.5" | |
}, | |
{ | |
"name": "command-palette", | |
"version": "0.43.3" | |
}, | |
{ | |
"name": "dalek", | |
"version": "0.2.1" | |
}, | |
{ | |
"name": "deprecation-cop", | |
"version": "0.56.9" | |
}, | |
{ | |
"name": "dev-live-reload", | |
"version": "0.48.1" | |
}, | |
{ | |
"name": "docs-snippets", | |
"version": "0.8.0" | |
}, | |
{ | |
"name": "encoding-selector", | |
"version": "0.23.7" | |
}, | |
{ | |
"name": "exception-reporting", | |
"version": "0.42.0" | |
}, | |
{ | |
"name": "filesize", | |
"version": "4.0.0" | |
}, | |
{ | |
"name": "find-and-replace", | |
"version": "0.215.0" | |
}, | |
{ | |
"name": "find-selection", | |
"version": "0.16.0" | |
}, | |
{ | |
"name": "fuzzy-finder", | |
"version": "1.7.3" | |
}, | |
{ | |
"name": "git-control", | |
"version": "0.9.0" | |
}, | |
{ | |
"name": "git-diff", | |
"version": "1.3.6" | |
}, | |
{ | |
"name": "git-plus", | |
"version": "7.10.0" | |
}, | |
{ | |
"name": "github", | |
"version": "0.8.3" | |
}, | |
{ | |
"name": "go-to-line", | |
"version": "0.32.1" | |
}, | |
{ | |
"name": "grammar-selector", | |
"version": "0.49.8" | |
}, | |
{ | |
"name": "highlight-selected", | |
"version": "0.13.1" | |
}, | |
{ | |
"name": "image-view", | |
"version": "0.62.4" | |
}, | |
{ | |
"name": "incompatible-packages", | |
"version": "0.27.3" | |
}, | |
{ | |
"name": "intentions", | |
"version": "1.1.5" | |
}, | |
{ | |
"name": "json-schema", | |
"version": "0.1.15" | |
}, | |
{ | |
"name": "keybinding-resolver", | |
"version": "0.38.1" | |
}, | |
{ | |
"name": "language-babel", | |
"version": "2.83.4" | |
}, | |
{ | |
"name": "language-c", | |
"version": "0.58.1" | |
}, | |
{ | |
"name": "language-clojure", | |
"version": "0.22.5" | |
}, | |
{ | |
"name": "language-coffee-script", | |
"version": "0.49.3" | |
}, | |
{ | |
"name": "language-csharp", | |
"version": "0.14.3" | |
}, | |
{ | |
"name": "language-css", | |
"version": "0.42.8" | |
}, | |
{ | |
"name": "language-django", | |
"version": "0.1.1" | |
}, | |
{ | |
"name": "language-freemarker", | |
"version": "0.2.0" | |
}, | |
{ | |
"name": "language-gfm", | |
"version": "0.90.3" | |
}, | |
{ | |
"name": "language-git", | |
"version": "0.19.1" | |
}, | |
{ | |
"name": "language-glsl", | |
"version": "2.0.4" | |
}, | |
{ | |
"name": "language-go", | |
"version": "0.44.4" | |
}, | |
{ | |
"name": "language-html", | |
"version": "0.48.5" | |
}, | |
{ | |
"name": "language-hyperlink", | |
"version": "0.16.3" | |
}, | |
{ | |
"name": "language-jade", | |
"version": "0.7.2" | |
}, | |
{ | |
"name": "language-java", | |
"version": "0.27.6" | |
}, | |
{ | |
"name": "language-javascript", | |
"version": "0.127.7" | |
}, | |
{ | |
"name": "language-json", | |
"version": "0.19.1" | |
}, | |
{ | |
"name": "language-less", | |
"version": "0.34.1" | |
}, | |
{ | |
"name": "language-make", | |
"version": "0.22.3" | |
}, | |
{ | |
"name": "language-mustache", | |
"version": "0.14.4" | |
}, | |
{ | |
"name": "language-objective-c", | |
"version": "0.15.1" | |
}, | |
{ | |
"name": "language-perl", | |
"version": "0.38.1" | |
}, | |
{ | |
"name": "language-php", | |
"version": "0.43.0" | |
}, | |
{ | |
"name": "language-property-list", | |
"version": "0.9.1" | |
}, | |
{ | |
"name": "language-python", | |
"version": "0.45.6" | |
}, | |
{ | |
"name": "language-ruby", | |
"version": "0.71.4" | |
}, | |
{ | |
"name": "language-ruby-on-rails", | |
"version": "0.25.3" | |
}, | |
{ | |
"name": "language-sass", | |
"version": "0.61.3" | |
}, | |
{ | |
"name": "language-shellscript", | |
"version": "0.25.4" | |
}, | |
{ | |
"name": "language-source", | |
"version": "0.9.0" | |
}, | |
{ | |
"name": "language-sql", | |
"version": "0.25.9" | |
}, | |
{ | |
"name": "language-text", | |
"version": "0.7.3" | |
}, | |
{ | |
"name": "language-todo", | |
"version": "0.29.3" | |
}, | |
{ | |
"name": "language-toml", | |
"version": "0.18.1" | |
}, | |
{ | |
"name": "language-typescript", | |
"version": "0.2.3" | |
}, | |
{ | |
"name": "language-xml", | |
"version": "0.35.2" | |
}, | |
{ | |
"name": "language-yaml", | |
"version": "0.31.1" | |
}, | |
{ | |
"name": "line-ending-selector", | |
"version": "0.7.4" | |
}, | |
{ | |
"name": "link", | |
"version": "0.31.4" | |
}, | |
{ | |
"name": "linter", | |
"version": "2.2.0" | |
}, | |
{ | |
"name": "linter-eslint", | |
"version": "8.4.1" | |
}, | |
{ | |
"name": "linter-ui-default", | |
"version": "1.6.10" | |
}, | |
{ | |
"name": "markdown-preview", | |
"version": "0.159.20" | |
}, | |
{ | |
"name": "material", | |
"version": "2.2.0", | |
"theme": "syntax" | |
}, | |
{ | |
"name": "metrics", | |
"version": "1.2.6" | |
}, | |
{ | |
"name": "minimap", | |
"version": "4.29.7" | |
}, | |
{ | |
"name": "monokai", | |
"version": "0.24.0", | |
"theme": "syntax" | |
}, | |
{ | |
"name": "notifications", | |
"version": "0.70.2" | |
}, | |
{ | |
"name": "one-dark-syntax", | |
"version": "1.8.1", | |
"theme": "syntax" | |
}, | |
{ | |
"name": "one-dark-ui", | |
"version": "1.10.9", | |
"theme": "ui" | |
}, | |
{ | |
"name": "one-light-syntax", | |
"version": "1.8.1", | |
"theme": "syntax" | |
}, | |
{ | |
"name": "one-light-ui", | |
"version": "1.10.9", | |
"theme": "ui" | |
}, | |
{ | |
"name": "open-on-github", | |
"version": "1.3.1" | |
}, | |
{ | |
"name": "package-generator", | |
"version": "1.3.0" | |
}, | |
{ | |
"name": "prettier-atom", | |
"version": "0.50.0" | |
}, | |
{ | |
"name": "pretty-json", | |
"version": "1.6.4" | |
}, | |
{ | |
"name": "project-manager", | |
"version": "3.3.5" | |
}, | |
{ | |
"name": "react", | |
"version": "0.17.0" | |
}, | |
{ | |
"name": "seti-ui", | |
"version": "1.10.0", | |
"theme": "ui" | |
}, | |
{ | |
"name": "settings-view", | |
"version": "0.253.1-0" | |
}, | |
{ | |
"name": "single-click-open", | |
"version": "0.2.2" | |
}, | |
{ | |
"name": "snippets", | |
"version": "1.1.9" | |
}, | |
{ | |
"name": "solarized-dark-syntax", | |
"version": "1.1.3", | |
"theme": "syntax" | |
}, | |
{ | |
"name": "solarized-light-syntax", | |
"version": "1.1.3", | |
"theme": "syntax" | |
}, | |
{ | |
"name": "sort-lines", | |
"version": "0.18.0" | |
}, | |
{ | |
"name": "spell-check", | |
"version": "0.72.5" | |
}, | |
{ | |
"name": "status-bar", | |
"version": "1.8.15" | |
}, | |
{ | |
"name": "styleguide", | |
"version": "0.49.9" | |
}, | |
{ | |
"name": "symbols-view", | |
"version": "0.118.1" | |
}, | |
{ | |
"name": "sync-settings", | |
"version": "0.8.3" | |
}, | |
{ | |
"name": "tabs", | |
"version": "0.109.1" | |
}, | |
{ | |
"name": "timecop", | |
"version": "0.36.2" | |
}, | |
{ | |
"name": "toggle-quotes", | |
"version": "1.1.0" | |
}, | |
{ | |
"name": "tree-view", | |
"version": "0.221.3" | |
}, | |
{ | |
"name": "update-package-dependencies", | |
"version": "0.13.0" | |
}, | |
{ | |
"name": "welcome", | |
"version": "0.36.6" | |
}, | |
{ | |
"name": "whitespace", | |
"version": "0.37.5" | |
}, | |
{ | |
"name": "wrap-guide", | |
"version": "0.40.3" | |
}, | |
{ | |
"name": "zentabs", | |
"version": "0.8.9" | |
} | |
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"atom-beautify": { | |
"general": { | |
"_analyticsUserId": "e72c5ee9-3c65-4504-b05e-5a588b29c793" | |
}, | |
"js": { | |
"space_in_paren": true | |
} | |
}, | |
"atom-jshint": { | |
"hintOnModify": false | |
}, | |
"autocomplete-paths": { | |
"scopes": [ | |
{ | |
"scopes": [ | |
"source.js" | |
], | |
"prefixes": [ | |
"import\\s+.*?from\\s+['\"]", | |
"require\\(['\"]", | |
"define\\(\\[?['\"]" | |
], | |
"extensions": [ | |
"js", | |
"jsx", | |
"ts", | |
"coffee", | |
"svg", | |
"png", | |
"jpeg", | |
"jpg", | |
"json" | |
], | |
"relative": true, | |
"includeCurrentDirectory": true, | |
"replaceOnInsert": [ | |
[ | |
"/index(.js)?$", | |
"" | |
], | |
[ | |
".jsx?$", | |
"" | |
], | |
[ | |
".ts$", | |
"" | |
], | |
[ | |
".coffee$", | |
"" | |
] | |
] | |
} | |
] | |
}, | |
"autocomplete-plus": { | |
"autoActivationDelay": 200, | |
"confirmCompletion": "enter", | |
"maxVisibleSuggestions": 20, | |
"minimumWordLength": 2 | |
}, | |
"core": { | |
"disabledPackages": [ | |
"atom-jshint", | |
"autocomplete", | |
"react", | |
"atom-beautify" | |
], | |
"ignoredNames": [ | |
".git", | |
".svn", | |
".DS_Store", | |
"node_modules", | |
"es", | |
"lib" | |
], | |
"projectHome": "/Users/westmark/Documents/projects", | |
"telemetryConsent": "limited", | |
"themes": [ | |
"seti-ui", | |
"monokai" | |
] | |
}, | |
"editor": { | |
"autoIndentOnPaste": false, | |
"fontFamily": "Source Code Pro", | |
"fontSize": 12, | |
"lineHeight": 1.3, | |
"preferredLineLength": 160, | |
"scrollPastEnd": true, | |
"showIndentGuide": true, | |
"tabType": "soft" | |
}, | |
"exception-reporting": { | |
"userId": "0cc43d85-35f4-2e9b-b4c6-760405eb8bf3" | |
}, | |
"fuzzy-finder": { | |
"ignoredNames": [ | |
"node_modules" | |
] | |
}, | |
"git-plus": { | |
"general": { | |
"_analyticsUserId": "19bd0041-3896-47dc-9000-bcd80d5ae9f5" | |
} | |
}, | |
"go-plus": { | |
"environmentOverridesConfiguration": false, | |
"formatTool": "gofmt", | |
"goPath": "~/projects/gographql" | |
}, | |
"highlight-selected": { | |
"ignoreCase": true | |
}, | |
"language-babel": { | |
"allowLocalOverride": true | |
}, | |
"line-ending-selector": { | |
"defaultLineEnding": "LF" | |
}, | |
"linter": { | |
"lintOnChange": false, | |
"lintOnChangeInterval": 2000, | |
"statusBar": "Show all errors", | |
"subtleLinterErrors": [ | |
"jsxhint" | |
] | |
}, | |
"linter-eslint": { | |
"disableWhenNoEslintrcFileInPath": true, | |
"globalNodePath": "/Users/westmark/.nvm/versions/node/v6.9.1" | |
}, | |
"linter-jshint": { | |
"jshintExecutablePath": "/usr/local/bin/jshint" | |
}, | |
"linter-jsxhint": { | |
"harmony": true, | |
"jsxhintExecutablePath": "/usr/local/bin/jsxhint" | |
}, | |
"linter-ui-default": { | |
"panelHeight": 145, | |
"showPanel": true, | |
"showTooltip": false, | |
"tooltipFollows": "Keyboard" | |
}, | |
"markdown-preview": { | |
"useGitHubStyle": true | |
}, | |
"merge-conflicts": { | |
"gitPath": "/usr/local/bin/git" | |
}, | |
"metrics": { | |
"userId": "68c784dc393a351cfdb77886886479eeb70bdb90" | |
}, | |
"minimap": { | |
"absoluteMode": true, | |
"adjustAbsoluteModeHeight": true | |
}, | |
"prettier-atom": { | |
"formatOnSaveOptions": { | |
"isDisabledIfNoConfigFile": true, | |
"isDisabledIfNotInPackageJson": true, | |
"showInStatusBar": true | |
}, | |
"prettierEslintOptions": {}, | |
"prettierOptions": { | |
"jsxBracketSameLine": true, | |
"printWidth": 110, | |
"singleQuote": true, | |
"trailingComma": "es5" | |
}, | |
"useEslint": true | |
}, | |
"release-notes": { | |
"viewedVersion": "0.74.0" | |
}, | |
"seti-ui": { | |
"compactView": true, | |
"displayIgnored": false | |
}, | |
"spell-check": { | |
"grammars": [ | |
"text.plain text.javascript" | |
] | |
}, | |
"sync-settings": { | |
"quietUpdateCheck": true | |
}, | |
"tree-view": { | |
"autoReveal": true, | |
"focusOnReveal": false, | |
"hideIgnoredNames": true, | |
"hideVcsIgnoredFiles": true, | |
"revealActiveFile": true | |
}, | |
"welcome": { | |
"showOnStartup": false | |
}, | |
"whitespace": { | |
"ignoreWhitespaceOnCurrentLine": false | |
}, | |
"zentabs": { | |
"maximumOpenedTabs": 9, | |
"neverCloseUnsaved": true | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Your snippets | |
# | |
# Atom snippets allow you to enter a simple prefix in the editor and hit tab to | |
# expand the prefix into a larger code block with templated values. | |
# | |
# You can create a new snippet in this file by typing "snip" and then hitting | |
# tab. | |
# | |
# An example CoffeeScript snippet to expand log to console.log: | |
# | |
# '.source.coffee': | |
# 'Console log': | |
# 'prefix': 'log' | |
# 'body': 'console.log $1' | |
# | |
'.source.js, .source.jsx': | |
'jsdoc': | |
'prefix': 'jsdoc' | |
'body': """ | |
/** | |
* ${1:Description of what this does.} | |
* | |
* @param $2 | |
* @returns $3 | |
*/ | |
""" | |
'lodash': | |
'prefix': 'lodash' | |
'body': 'var _ = require(\'lodash\');' | |
'export const': | |
'prefix': 'exc' | |
'body': """export const $1 = '$1';""" | |
'bind function': | |
'prefix': 'bind' | |
'body': """this.$1 = this.$1.bind(this);""" | |
'promise': | |
'prefix': 'prom', | |
'body': """ | |
return new Promise((resolve, reject) => { | |
$1 | |
}); | |
""" | |
'for': | |
'prefix': 'for', | |
'body': """ | |
for ( let $1 = 0; $1 < $2; $1++ ) { | |
$3 | |
} | |
""" | |
'React comp prop': | |
'prefix': 'prop' | |
'body': """$1={ $1 }""" | |
'import recompose module': | |
'prefix': 'importrecompose' | |
'body': """import $1 from 'recompose/$1';""" | |
'Aphrodite className css': | |
'prefix': 'css' | |
'body': """className={ css( styles.$1 ) }""" | |
'React ES6 Stateless Component': | |
'prefix': 'rsc' | |
'body': """ | |
import React from 'react'; | |
import PropTypes from 'prop-types'; | |
const styles = {}; | |
const $1 = ( { $2 } ) => ( | |
<div style={ styles.container }> | |
$3 | |
</div> | |
); | |
$1.propTypes = { | |
}; | |
$1.defaultProps = { | |
}; | |
Object.assign( styles, { | |
container: { | |
}, | |
} ); | |
export default $1; | |
""" | |
'React ES6 Stateless Component w/ Aphrodite': | |
'prefix': 'rsca' | |
'body': """ | |
import React from 'react'; | |
import PropTypes from 'prop-types'; | |
import { css, StyleSheet } from 'aphrodite'; | |
let styles; | |
const $1 = ( { $2 } ) => ( | |
<div className={ css( styles.container ) }> | |
$3 | |
</div> | |
); | |
$1.propTypes = { | |
}; | |
$1.defaultProps = { | |
}; | |
styles = StyleSheet.create( { | |
container: { | |
}, | |
} ); | |
export default $1; | |
""" | |
'React ES6 Class w import': | |
'prefix': 'rec' | |
'body': """ | |
import React, { Component } from 'react'; | |
import PropTypes from 'prop-types'; | |
const styles = {}; | |
class $1 extends Component { | |
static propTypes = { | |
} | |
static defaultProps = { | |
} | |
state = {} | |
render() { | |
return ( | |
<div style={ styles.container }> | |
$2 | |
</div> | |
); | |
} | |
} | |
Object.assign( styles, { | |
container: { | |
}, | |
} ); | |
export default $1; | |
""" | |
'React ES6 Class w/ import, aphrodite': | |
'prefix': 'reca' | |
'body': """ | |
import React, { Component } from 'react'; | |
import PropTypes from 'prop-types'; | |
import { css, StyleSheet } from 'aphrodite'; | |
let styles; | |
class $1 extends Component { | |
static propTypes = { | |
} | |
static defaultProps = { | |
} | |
state = {} | |
render() { | |
return ( | |
<div className={ css( styles.container ) }> | |
$2 | |
</div> | |
); | |
} | |
} | |
styles = StyleSheet.create( { | |
container: { | |
}, | |
} ); | |
export default $1; | |
""" | |
'React ES6 Class': | |
'prefix': 'rc' | |
'body': """ | |
class $1 extends Component { | |
state = {} | |
render() { | |
return ( | |
$2 | |
); | |
} | |
} | |
""" | |
'React Container': | |
'prefix': 'rcontainer' | |
'body': """ | |
import React, { Component } from 'react'; | |
import PropTypes from 'prop-types'; | |
import { connect } from 'react-redux'; | |
import { bindActionCreators } from 'redux'; | |
class $1Container extends Component { | |
static contextTypes = { | |
} | |
static propTypes = { | |
} | |
static defaultProps = { | |
} | |
render() { | |
return ( | |
); | |
} | |
} | |
function mapStateToProps( state ) { | |
return { | |
}; | |
} | |
function mapDispatchToProps( dispatch ) { | |
return bindActionCreators( { | |
}, dispatch ); | |
} | |
export default connect( mapStateToProps, mapDispatchToProps )( $1Container ); | |
""" | |
'IF Clause': | |
'prefix': 'if' | |
'body': """ | |
if ( $1 ) { | |
$2 | |
} | |
""" | |
'DIV Element': | |
'prefix': 'div' | |
'body': """ | |
<div className={ css( styles.$1 ) }> | |
$2 | |
</div> | |
""" | |
'SPAN Element': | |
'prefix': 'span' | |
'body': '<span className="$1">$2</span>' | |
'BUTTON Element': | |
'prefix': 'button' | |
'body': '<button className="$1" onClick={this.$2}>$3</button>' | |
'componentDidMount': | |
'prefix': 'cdm' | |
'body': """ | |
componentDidMount() { | |
$1 | |
} | |
""" | |
'Mouse listeners': | |
'prefix': 'mouse' | |
'body': """ | |
onMouseOver(event) {} | |
onMouseOut(event) {} | |
onMouseMove(event) {} | |
""" | |
'FormattedMessage': | |
'prefix': 'formm' | |
'body': '<FormattedMessage id="$1" />' | |
'PropTypes.func': | |
'prefix': 'prf' | |
'body': 'PropTypes.func' | |
'PropTypes.func.isRequired': | |
'prefix': 'prfi' | |
'body': 'PropTypes.func.isRequired' | |
'PropTypes.string': | |
'prefix': 'prs' | |
'body': 'PropTypes.string' | |
'PropTypes.string.isRequired': | |
'prefix': 'prsi' | |
'body': 'PropTypes.string.isRequired' | |
'PropTypes.bool': | |
'prefix': 'prb' | |
'body': 'PropTypes.bool' | |
'PropTypes.bool.isRequired': | |
'prefix': 'prbi' | |
'body': 'PropTypes.bool.isRequired' | |
'PropTypes.number': | |
'prefix': 'prn' | |
'body': 'PropTypes.number' | |
'PropTypes.number.isRequired': | |
'prefix': 'prni' | |
'body': 'PropTypes.number.isRequired' | |
'Redux Action': | |
'prefix': 'reduxaction' | |
'body': """ | |
export const $1 = '$1'; | |
export function $2( $3 ) { | |
return { | |
type: $1, | |
payload: { | |
$3, | |
}, | |
meta: { | |
thunk: true, | |
}, | |
}; | |
} | |
""" | |
'Redux Symbol Action': | |
'prefix': 'reduxsymbolaction' | |
'body': """ | |
export const $1 = Symbol( '$1' ); | |
export function $2( $3 ) { | |
return { | |
type: $1, | |
payload: { | |
$3, | |
}, | |
meta: { | |
thunk: true, | |
}, | |
}; | |
} | |
""" | |
'Inline CSS rule': | |
'prefix': 'cssrule' | |
'body': """ | |
$1: { | |
$2 | |
}, | |
""" | |
'Redux Saga': | |
'prefix': 'reduxsaga' | |
'body': """ | |
function* $1Saga( { meta, payload } ) { | |
try { | |
$4 | |
} catch ( error ) { | |
yield put( genericError( error, meta.thunk ) ); | |
} | |
} | |
function* $1SagaWatcher() { | |
yield take${3:Latest}( $2, $1Saga ); | |
} | |
""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Your Stylesheet | |
* | |
* This stylesheet is loaded when Atom starts up and is reloaded automatically | |
* when it is changed. | |
* | |
* If you are unfamiliar with LESS, you can read more about it here: | |
* http://www.lesscss.org | |
*/ | |
html { | |
-webkit-font-smoothing: subpixel-antialiased; | |
} | |
@keyframes blink { | |
0% { | |
opacity: 1; | |
} | |
50% { | |
opacity: 0.2; | |
} | |
100% { | |
opacity: 1; | |
} | |
} | |
.editor { line-height: 1.4 } | |
.tree-view { | |
font-size: 12px; | |
} | |
.atom-text-editor { | |
font-weight: 500; | |
} | |
.list-tree.has-collapsable-children .list-nested-item > .list-tree > li, .list-tree.has-collapsable-children .list-nested-item > .list-group > li { | |
padding-left: 6px; | |
} | |
.highlight.linter-warning .region, .highlight.linter-error .region { | |
opacity: 0.2; | |
} | |
.minimap .minimap-editor { | |
background-color: #2f2f2f; | |
border-left: 1px solid #444; | |
} | |
autocomplete-suggestion-list.select-list.popover-list { | |
background-color: black; | |
} | |
.list-group .icon::before, .list-tree .icon::before { | |
margin-right: 2px; | |
} | |
.preview-pane .results-view .path.list-nested-item .matches.list-tree .search-result.list-item .list-item.match-line.selected .highlight-info { | |
color: #1e5066; | |
} | |
.tree-view .linter-warning, | |
.tree-view .linter-error { | |
top: 3px; | |
left: 1.5rem; | |
right: 0; | |
background: none; | |
} | |
.tree-view .linter-warning:after { | |
content: ''; | |
width: 5px; | |
height: 5px; | |
border-radius: 50%; | |
background-color: yellow; | |
position: absolute; | |
left: 0; | |
top: 50%; | |
margin-top: -4px; | |
margin-left: -30px; | |
box-shadow: 0 0 10px 2px rgba(255, 184, 0, 0.5); | |
} | |
.tree-view .linter-error:after { | |
content: ''; | |
width: 5px; | |
height: 5px; | |
border-radius: 50%; | |
background-color: rgb(238, 57, 17); | |
position: absolute; | |
left: 0; | |
top: 50%; | |
margin-top: -4px; | |
margin-left: -30px; | |
box-shadow: 0 0 10px 5px rgba(208, 57, 17, 0.55); | |
} | |
atom-workspace-axis .tab-bar .tab.modified, | |
atom-workspace-axis .tab-bar .tab.modified.active { | |
background: rgba(10,93,119, 0.3) ; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment