Skip to content

Instantly share code, notes, and snippets.

@dr-dimitru
Last active October 4, 2018 08:38
Show Gist options
  • Save dr-dimitru/887052cbe665a62a7e90c0f9d9ababe6 to your computer and use it in GitHub Desktop.
Save dr-dimitru/887052cbe665a62a7e90c0f9d9ababe6 to your computer and use it in GitHub Desktop.
Sublime Text 3 setup
android_bundle/
dev_bundle/
docs/
examples/
packages/
scripts/
tools/
!tools/*.js
!tools/isobuild/*.js
!tools/catalog/*.js
!tools/packaging/*.js
!tools/cli/*.js
!tools/runners/*.js
!tools/tool-env/*.js
!tools/fs/*.js
# Below, files that have yet to be converted to match the linter
tools/archinfo.js
tools/auth-client.js
tools/auth.js
tools/buildmessage.js
tools/cleanup.js
tools/colon-converter.js
tools/config.js
tools/console.js
tools/deploy.js
tools/fiber-helpers.js
tools/fs/files.js
tools/fs/mini-files.js
tools/func-utils.js
tools/http-helpers.js
tools/inspector.js
tools/index.js
tools/mongo-exit-codes.js
tools/processes.js
tools/progress.js
tools/project-context.js
tools/runners/run-log.js
tools/fs/safe-pathwatcher.js
tools/selftest.js
tools/service-connection.js
tools/shell-client.js
tools/stats.js
tools/test-utils.js
tools/upgraders.js
tools/utils/utils.js
tools/fs/watch.js
tools/catalog/catalog-local.js
tools/catalog/catalog-remote.js
tools/catalog/catalog.js
tools/catalog/catalog-utils.js
tools/cli/commands-cordova.js
tools/cli/commands-packages-query.js
tools/cli/commands-packages.js
tools/cli/commands.js
tools/cli/main.js
tools/tool-env/flush-buffers-on-exit-in-windows.js
tools/tool-env/install-babel.js
tools/tool-env/isopackets.js
tools/tool-env/profile-require.js
tools/tool-env/profile.js
tools/runners/run-all.js
tools/runners/run-app.js
tools/runners/run-mongo.js
tools/runners/run-proxy.js
tools/runners/run-selenium.js
tools/runners/run-updater.js
tools/packaging/package-client.js
tools/packaging/package-map.js
tools/packaging/package-version-parser.js
tools/packaging/release.js
tools/packaging/tropohouse.js
tools/packaging/updater.js
tools/packaging/warehouse.js
tools/isobuild/build-plugin.js
tools/isobuild/builder.js
tools/isobuild/bundler.js
tools/isobuild/compiler-deprecated-compile-step.js
tools/isobuild/compiler-plugin.js
tools/isobuild/compiler.js
tools/isobuild/import-scanner.js
tools/isobuild/isopack-cache.js
tools/isobuild/isopack.js
tools/isobuild/js-analyze.js
tools/isobuild/linker.js
tools/isobuild/linter-plugin.js
tools/isobuild/meteor-npm.js
tools/isobuild/npm-discards.js
tools/isobuild/package-api.js
tools/isobuild/package-source.js
tools/isobuild/source-arch.js
{
"parser": "babel-eslint",
"env": {
"browser": true,
"node": true,
"es6": true
},
"globals": {
"Package": true,
"Tinytest": true,
"Map": true,
"Promise": true,
"Npm": true
},
"rules": {
/**
* Strict mode
*/
"strict": [2, "never"], // http://eslint.org/docs/rules/strict
/**
* Variables
*/
"no-shadow": 2, // http://eslint.org/docs/rules/no-shadow
"no-shadow-restricted-names": 2, // http://eslint.org/docs/rules/no-shadow-restricted-names
"no-unused-vars": [2, { // http://eslint.org/docs/rules/no-unused-vars
"vars": "local",
"args": "after-used"
}],
"no-use-before-define": [2, "nofunc"], // http://eslint.org/docs/rules/no-use-before-define
/**
* Possible errors
*/
"no-cond-assign": [2, "always"], // http://eslint.org/docs/rules/no-cond-assign
"no-console": 1, // http://eslint.org/docs/rules/no-console
"no-debugger": 1, // http://eslint.org/docs/rules/no-debugger
"no-alert": 1, // http://eslint.org/docs/rules/no-alert
"no-constant-condition": 1, // http://eslint.org/docs/rules/no-constant-condition
"no-dupe-keys": 2, // http://eslint.org/docs/rules/no-dupe-keys
"no-duplicate-case": 2, // http://eslint.org/docs/rules/no-duplicate-case
"no-empty": 2, // http://eslint.org/docs/rules/no-empty
"no-ex-assign": 2, // http://eslint.org/docs/rules/no-ex-assign
"no-extra-boolean-cast": 0, // http://eslint.org/docs/rules/no-extra-boolean-cast
"no-extra-semi": 2, // http://eslint.org/docs/rules/no-extra-semi
"no-func-assign": 2, // http://eslint.org/docs/rules/no-func-assign
"no-inner-declarations": 2, // http://eslint.org/docs/rules/no-inner-declarations
"no-invalid-regexp": 2, // http://eslint.org/docs/rules/no-invalid-regexp
"no-irregular-whitespace": 2, // http://eslint.org/docs/rules/no-irregular-whitespace
"no-obj-calls": 2, // http://eslint.org/docs/rules/no-obj-calls
"no-sparse-arrays": 2, // http://eslint.org/docs/rules/no-sparse-arrays
"no-unreachable": 2, // http://eslint.org/docs/rules/no-unreachable
"use-isnan": 2, // http://eslint.org/docs/rules/use-isnan
"block-scoped-var": 0, // http://eslint.org/docs/rules/block-scoped-var
"no-undef": "error",
/**
* Best practices
*/
"consistent-return": 2, // http://eslint.org/docs/rules/consistent-return
"curly": [2, "multi-line"], // http://eslint.org/docs/rules/curly
"default-case": 2, // http://eslint.org/docs/rules/default-case
"dot-notation": [2, { // http://eslint.org/docs/rules/dot-notation
"allowKeywords": true
}],
"eqeqeq": 2, // http://eslint.org/docs/rules/eqeqeq
"guard-for-in": 2, // http://eslint.org/docs/rules/guard-for-in
"no-caller": 2, // http://eslint.org/docs/rules/no-caller
"no-else-return": 2, // http://eslint.org/docs/rules/no-else-return
"no-eq-null": 2, // http://eslint.org/docs/rules/no-eq-null
"no-eval": 2, // http://eslint.org/docs/rules/no-eval
"no-extend-native": 2, // http://eslint.org/docs/rules/no-extend-native
"no-extra-bind": 2, // http://eslint.org/docs/rules/no-extra-bind
"no-fallthrough": 2, // http://eslint.org/docs/rules/no-fallthrough
"no-floating-decimal": 2, // http://eslint.org/docs/rules/no-floating-decimal
"no-implied-eval": 2, // http://eslint.org/docs/rules/no-implied-eval
"no-lone-blocks": 2, // http://eslint.org/docs/rules/no-lone-blocks
"no-loop-func": 2, // http://eslint.org/docs/rules/no-loop-func
"no-multi-str": 2, // http://eslint.org/docs/rules/no-multi-str
"no-native-reassign": 2, // http://eslint.org/docs/rules/no-native-reassign
"no-new": 2, // http://eslint.org/docs/rules/no-new
"no-new-func": 2, // http://eslint.org/docs/rules/no-new-func
"no-new-wrappers": 2, // http://eslint.org/docs/rules/no-new-wrappers
"no-octal": 2, // http://eslint.org/docs/rules/no-octal
"no-octal-escape": 2, // http://eslint.org/docs/rules/no-octal-escape
"no-param-reassign": 2, // http://eslint.org/docs/rules/no-param-reassign
"no-proto": 2, // http://eslint.org/docs/rules/no-proto
"no-redeclare": 2, // http://eslint.org/docs/rules/no-redeclare
"no-return-assign": 2, // http://eslint.org/docs/rules/no-return-assign
"no-script-url": 2, // http://eslint.org/docs/rules/no-script-url
"no-self-compare": 2, // http://eslint.org/docs/rules/no-self-compare
"no-sequences": 2, // http://eslint.org/docs/rules/no-sequences
"no-throw-literal": 2, // http://eslint.org/docs/rules/no-throw-literal
"no-with": 2, // http://eslint.org/docs/rules/no-with
"wrap-iife": [2, "any"], // http://eslint.org/docs/rules/wrap-iife
"yoda": 2, // http://eslint.org/docs/rules/yoda
/**
* Style
*/
"indent": [2, 2], // http://eslint.org/docs/rules/indent
"brace-style": [2, // http://eslint.org/docs/rules/brace-style
"1tbs", {
"allowSingleLine": true
}],
"quotes": [
2, "single", "avoid-escape" // http://eslint.org/docs/rules/quotes
],
"camelcase": [2, { // http://eslint.org/docs/rules/camelcase
"properties": "never"
}],
"comma-spacing": [2, { // http://eslint.org/docs/rules/comma-spacing
"before": false,
"after": true
}],
"comma-style": [2, "last"], // http://eslint.org/docs/rules/comma-style
"eol-last": 2, // http://eslint.org/docs/rules/eol-last
"key-spacing": [2, { // http://eslint.org/docs/rules/key-spacing
"beforeColon": false,
"afterColon": true
}],
// "new-cap": [2, { // http://eslint.org/docs/rules/new-cap
// "newIsCap": true
// }],
"no-multiple-empty-lines": [2, { // http://eslint.org/docs/rules/no-multiple-empty-lines
"max": 2
}],
"no-nested-ternary": 2, // http://eslint.org/docs/rules/no-nested-ternary
"no-new-object": 2, // http://eslint.org/docs/rules/no-new-object
"no-array-constructor": 2, // http://eslint.org/docs/rules/no-array-constructor
"no-trailing-spaces": 2, // http://eslint.org/docs/rules/no-trailing-spaces
"no-underscore-dangle": 0, // http://eslint.org/docs/rules/no-underscore-dangle
"one-var": [2, "never"], // http://eslint.org/docs/rules/one-var
"padded-blocks": [2, "never"], // http://eslint.org/docs/rules/padded-blocks
"semi": [2, "always"], // http://eslint.org/docs/rules/semi
"semi-spacing": [2, { // http://eslint.org/docs/rules/semi-spacing
"before": false,
"after": true
}],
"space-infix-ops": 2, // http://eslint.org/docs/rules/space-infix-ops
}
}
{
"plugins": []
}
{
"default": true,
"line_length": false,
"no-trailing-punctuation": false,
"ul-start-left": false,
"no-inline-html": false,
"first-line-h1": false
}
{
"options": {
"merge-default-rules": false,
"max-warnings": 50
},
"rules": {
"extends-before-mixins": 2,
"extends-before-declarations": 2,
"placeholder-in-extend": 1,
"mixins-before-declarations": [
2,
{
"exclude": [
"breakpoint",
"mq"
]
}
],
"no-warn": 1,
"no-debug": 1,
"no-ids": 1,
"no-important": 2,
"hex-notation": [
2,
{
"style": "uppercase"
}
],
"indentation": [
2,
{
"size": 2
}
]
}
}
#!/bin/bash
npm install -g eslint babel-eslint htmllint-cli node-sass sass-lint markdownlint-cli
{
"bootstrapped": true,
"in_process_packages":
[
],
"installed_packages":
[
"Babel",
"BracketHighlighter",
"Dockerfile Syntax Highlighting",
"GitGutter",
"MarkdownHighlighting",
"NeoVintageous",
"Package Control",
"Sass",
"SublimeLinter",
"SublimeLinter-contrib-htmllint",
"SublimeLinter-contrib-markdownlint",
"SublimeLinter-contrib-sass-lint",
"SublimeLinter-eslint",
"Theme - Spacegray"
]
}
{
"added_words": [],
"always_show_minimap_viewport": true,
"animation_enabled": true,
"auto_find_in_selection": true,
"bold_folder_labels": false,
"caret_extra_bottom": 4,
"caret_extra_top": 4,
"caret_extra_width": 2,
"caret_style": "phase",
"color_scheme": "Packages/Color Scheme - Default/Monokai.tmTheme",
"disable_custom_title_bar": false,
"drag_text": false,
"draw_minimap_border": true,
"draw_white_space": "all",
"enable_tab_scrolling": true,
"fold_buttons": true,
"folder_exclude_patterns":
[
".svn",
".git",
".hg",
"CVS",
".meteor/*",
"node_modules/*"
],
"font_face": "Roboto Mono",
"font_options":
[
"gray_antialias"
],
"font_size": 13,
"highlight_line": true,
"highlight_modified_tabs": true,
"ignored_packages":
[
"Six",
"Vintage",
"Vintageous"
],
"indent_guide_options":
[
"draw_normal",
"draw_active"
],
"index_files": false,
"line_number": true,
"line_padding_bottom": 3,
"line_padding_top": 3,
"match_brackets": false,
"match_brackets_angle": false,
"match_brackets_braces": false,
"match_brackets_content": false,
"match_brackets_square": false,
"match_selection": true,
"match_tags": false,
"overlay_scroll_bars": "enabled",
"preview_on_click": true,
"save_on_focus_lost": false,
"show_definitions": false,
"show_encoding": true,
"show_full_path": true,
"show_line_endings": true,
"show_tab_close_buttons": true,
"sidebar_small": true,
"spacegray_color_expanded_folder": true,
"spacegray_fileicons": true,
"spacegray_sidebar_font_xlarge": true,
"spacegray_sidebar_tree_normal": true,
"spacegray_tabs_auto_width": true,
"spacegray_tabs_font_xlarge": true,
"spacegray_tabs_large": true,
"spell_check": true,
"tab_size": 2,
"tabs_small": true,
"theme": "Spacegray Eighties.sublime-theme",
"theme_font_options":
[
"subpixel_antialias",
"no_round"
],
"translate_tabs_to_spaces": true,
"tree_animation_enabled": true,
"vintageous_hlsearch": false,
"vintageous_scrolloff": 7,
"vintageous_sidescrolloff": 7,
"vintageous_use_ctrl_keys": true,
"vintageous_use_sys_clipboard": false,
"wide_caret": true,
"word_wrap": true
}
{
"gutter_theme": "Default",
"lint_mode": "save",
"show_panel_on_save": "view",
"syntax_map": {
"coffeescript (gulpfile)": "coffeescript",
"html (django)": "html",
"html (rails)": "html",
"html 5": "html",
"javascript (babel)": "javascript",
"javascript (eslint)": "javascript",
"javascript (gruntfile)": "javascript",
"javascript (gulpfile)": "javascript",
"javascript (postcss)": "javascript",
"javascript (puglint)": "javascript",
"javascript (stylelint)": "javascript",
"javascript (webpack)": "javascript",
"json (babel)": "json",
"json (bower)": "json",
"json (composer)": "json",
"json (eslint)": "json",
"json (npm)": "json",
"json (postcss)": "json",
"json (puglint)": "json",
"json (settings)": "json",
"json (stylelint)": "json",
"json (sublime)": "json",
"json (tern js)": "json",
"magicpython": "python",
"php": "html",
"python django": "python",
"pythonimproved": "python",
"xml (config)": "xml",
"xml (svg)": "xml",
"yaml (circleci)": "yaml",
"yaml (docker)": "yaml",
"yaml (eslint)": "yaml",
"yaml (lock)": "yaml",
"yaml (procfile)": "yaml",
"yaml (stylelint)": "yaml",
"yaml (yarn)": "yaml"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment