Skip to content

Instantly share code, notes, and snippets.

@OlegLustenko
Last active December 17, 2018 21:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save OlegLustenko/b8209b9117ddf12b4ae7a85ddb9dff37 to your computer and use it in GitHub Desktop.
Save OlegLustenko/b8209b9117ddf12b4ae7a85ddb9dff37 to your computer and use it in GitHub Desktop.
Visual Studio Code Settings Sync Gist
{"lastUpload":"2018-12-17T21:13:37.137Z","extensionVersion":"v3.2.4"}
[
{
"metadata": {
"id": "114ba528-4ad5-4660-b0c8-894fa5beae7b",
"publisherId": "NoHomey.angular-io-code",
"publisherDisplayName": "NoHomey"
},
"name": "angular-io-code",
"publisher": "NoHomey",
"version": "0.0.6"
},
{
"metadata": {
"id": "6e440e71-8ed9-4f25-bb78-4b13096b8a03",
"publisherId": "formulahendry.auto-rename-tag",
"publisherDisplayName": "formulahendry"
},
"name": "auto-rename-tag",
"publisher": "formulahendry",
"version": "0.0.15"
},
{
"metadata": {
"id": "5178733e-4b02-4829-95c5-1ce970847c23",
"publisherId": "teabyii.ayu",
"publisherDisplayName": "teabyii"
},
"name": "ayu",
"publisher": "teabyii",
"version": "0.17.0"
},
{
"metadata": {
"id": "e337c67b-55c2-4fef-8949-eb260e7fb7fd",
"publisherId": "Shan.code-settings-sync",
"publisherDisplayName": "Shan"
},
"name": "code-settings-sync",
"publisher": "Shan",
"version": "3.2.4"
},
{
"metadata": {
"id": "1ec62ca5-d7f9-4ddb-a882-e8d018c0aefd",
"publisherId": "msjsdiag.debugger-for-chrome",
"publisherDisplayName": "msjsdiag"
},
"name": "debugger-for-chrome",
"publisher": "msjsdiag",
"version": "4.11.1"
},
{
"metadata": {
"id": "532533c9-a894-4a58-9eee-bbfbe7c06f71",
"publisherId": "mikestead.dotenv",
"publisherDisplayName": "mikestead"
},
"name": "dotenv",
"publisher": "mikestead",
"version": "1.0.1"
},
{
"metadata": {
"id": "975d187d-7d95-4292-92ef-ad9e8f083ca3",
"publisherId": "kuscamara.electron",
"publisherDisplayName": "kuscamara"
},
"name": "electron",
"publisher": "kuscamara",
"version": "0.2.5"
},
{
"metadata": {
"id": "e7e1b7ba-5671-442a-93b4-6d332f13520d",
"publisherId": "brpaz.file-templates",
"publisherDisplayName": "brpaz"
},
"name": "file-templates",
"publisher": "brpaz",
"version": "1.2.0"
},
{
"metadata": {
"id": "53ceb0a7-7e7a-4f26-a91d-084f3d714420",
"publisherId": "lkytal.FlatUI",
"publisherDisplayName": "lkytal"
},
"name": "FlatUI",
"publisher": "lkytal",
"version": "1.4.9"
},
{
"metadata": {
"id": "b3917e4f-5086-4def-a82b-2ae6b708db16",
"publisherId": "flowtype.flow-for-vscode",
"publisherDisplayName": "flowtype"
},
"name": "flow-for-vscode",
"publisher": "flowtype",
"version": "0.8.5"
},
{
"metadata": {
"id": "4de763bd-505d-4978-9575-2b7696ecf94e",
"publisherId": "eamodio.gitlens",
"publisherDisplayName": "eamodio"
},
"name": "gitlens",
"publisher": "eamodio",
"version": "9.2.1"
},
{
"metadata": {
"id": "be992f3f-9f22-4b66-a1d2-ecad04c28a28",
"publisherId": "abusaidm.html-snippets",
"publisherDisplayName": "abusaidm"
},
"name": "html-snippets",
"publisher": "abusaidm",
"version": "0.2.1"
},
{
"metadata": {
"id": "5db78037-f674-459f-a236-db622c427c5b",
"publisherId": "PKief.material-icon-theme",
"publisherDisplayName": "PKief"
},
"name": "material-icon-theme",
"publisher": "PKief",
"version": "3.6.1"
},
{
"metadata": {
"id": "26a529c9-2654-4b95-a63f-02f6a52429e6",
"publisherId": "zhuangtongfa.Material-theme",
"publisherDisplayName": "zhuangtongfa"
},
"name": "Material-theme",
"publisher": "zhuangtongfa",
"version": "2.18.1"
},
{
"metadata": {
"id": "1bb92b2c-526c-4bfd-bb38-5bae1b278c89",
"publisherId": "leizongmin.node-module-intellisense",
"publisherDisplayName": "leizongmin"
},
"name": "node-module-intellisense",
"publisher": "leizongmin",
"version": "1.5.0"
},
{
"metadata": {
"id": "dff6b801-247e-40e9-82e8-8c9b1d19d1b8",
"publisherId": "christian-kohler.npm-intellisense",
"publisherDisplayName": "christian-kohler"
},
"name": "npm-intellisense",
"publisher": "christian-kohler",
"version": "1.3.0"
},
{
"metadata": {
"id": "585e998c-f7ad-46a3-8d1b-1e0f02cbb232",
"publisherId": "hackwaly.ocaml",
"publisherDisplayName": "hackwaly"
},
"name": "ocaml",
"publisher": "hackwaly",
"version": "0.6.43"
},
{
"metadata": {
"id": "b027c4b2-25ad-46db-b574-05dae3b2dc92",
"publisherId": "azemoh.one-monokai",
"publisherDisplayName": "azemoh"
},
"name": "one-monokai",
"publisher": "azemoh",
"version": "0.3.7"
},
{
"metadata": {
"id": "113b22c8-8125-42ec-8c6b-80c3f5d5fa5f",
"publisherId": "IBM.output-colorizer",
"publisherDisplayName": "IBM"
},
"name": "output-colorizer",
"publisher": "IBM",
"version": "0.1.2"
},
{
"metadata": {
"id": "a41c1549-4053-44d4-bf30-60fc809b4a86",
"publisherId": "christian-kohler.path-intellisense",
"publisherDisplayName": "christian-kohler"
},
"name": "path-intellisense",
"publisher": "christian-kohler",
"version": "1.4.2"
},
{
"metadata": {
"id": "04a962b1-1f76-484a-adcb-28119ea5ae1f",
"publisherId": "ricard.postcss",
"publisherDisplayName": "ricard"
},
"name": "postcss",
"publisher": "ricard",
"version": "2.0.0"
},
{
"metadata": {
"id": "96fa4707-6983-4489-b7c5-d5ffdfdcce90",
"publisherId": "esbenp.prettier-vscode",
"publisherDisplayName": "esbenp"
},
"name": "prettier-vscode",
"publisher": "esbenp",
"version": "1.7.2"
},
{
"metadata": {
"id": "797a79de-a0fd-4349-9034-bec47be9a941",
"publisherId": "2gua.rainbow-brackets",
"publisherDisplayName": "2gua"
},
"name": "rainbow-brackets",
"publisher": "2gua",
"version": "0.0.6"
},
{
"metadata": {
"id": "ef35225b-a836-473d-b2c3-c3fd0386ae6f",
"publisherId": "timothymclane.react-redux-es6-snippets",
"publisherDisplayName": "timothymclane"
},
"name": "react-redux-es6-snippets",
"publisher": "timothymclane",
"version": "2.1.0"
},
{
"metadata": {
"id": "c807e072-5951-4a01-9542-450f946c7ec1",
"publisherId": "xabikos.ReactSnippets",
"publisherDisplayName": "xabikos"
},
"name": "ReactSnippets",
"publisher": "xabikos",
"version": "2.2.1"
},
{
"metadata": {
"id": "8a8e3e61-d49b-47f8-b98f-b7169d624b29",
"publisherId": "jaredly.reason-vscode",
"publisherDisplayName": "jaredly"
},
"name": "reason-vscode",
"publisher": "jaredly",
"version": "1.4.1"
},
{
"metadata": {
"id": "cb9cc98b-7140-4f13-b993-1e26c4a7bd42",
"publisherId": "Arjun.swagger-viewer",
"publisherDisplayName": "Arjun"
},
"name": "swagger-viewer",
"publisher": "Arjun",
"version": "2.1.0"
},
{
"metadata": {
"id": "b667131c-87e0-4607-aaeb-20cedb0f682e",
"publisherId": "qnsolutions.swaggitor",
"publisherDisplayName": "qnsolutions"
},
"name": "swaggitor",
"publisher": "qnsolutions",
"version": "0.1.1"
},
{
"metadata": {
"id": "fb374ce1-5343-46c8-a425-900fdad15523",
"publisherId": "wesbos.theme-cobalt2",
"publisherDisplayName": "wesbos"
},
"name": "theme-cobalt2",
"publisher": "wesbos",
"version": "2.1.6"
},
{
"metadata": {
"id": "043cbe69-59a0-4952-a548-2366587a1226",
"publisherId": "thomaspink.theme-github",
"publisherDisplayName": "thomaspink"
},
"name": "theme-github",
"publisher": "thomaspink",
"version": "1.0.1"
},
{
"metadata": {
"id": "9001c3f8-94bf-484d-92fc-07f2fd03ff5e",
"publisherId": "ms-vscode.Theme-MarkdownKit",
"publisherDisplayName": "ms-vscode"
},
"name": "Theme-MarkdownKit",
"publisher": "ms-vscode",
"version": "0.1.4"
},
{
"metadata": {
"id": "e7931f72-4188-4f71-b973-08019f5828ed",
"publisherId": "onecrayon.theme-quietlight-vsc",
"publisherDisplayName": "onecrayon"
},
"name": "theme-quietlight-vsc",
"publisher": "onecrayon",
"version": "1.0.2"
},
{
"metadata": {
"id": "eb0f25d0-4e44-466f-b9e9-ea8fd0f57267",
"publisherId": "NoHomey.theme-realgithub",
"publisherDisplayName": "NoHomey"
},
"name": "theme-realgithub",
"publisher": "NoHomey",
"version": "1.0.9"
},
{
"metadata": {
"id": "8d912f11-39d6-4200-92dc-95714358a0d1",
"publisherId": "ms-vscode.typescript-javascript-grammar",
"publisherDisplayName": "ms-vscode"
},
"name": "typescript-javascript-grammar",
"publisher": "ms-vscode",
"version": "0.0.47"
},
{
"metadata": {
"id": "dffaf5a1-2219-434b-9d87-cb586fd59260",
"publisherId": "Equinusocio.vsc-material-theme",
"publisherDisplayName": "Equinusocio"
},
"name": "vsc-material-theme",
"publisher": "Equinusocio",
"version": "2.6.2"
},
{
"metadata": {
"id": "d7b592dd-41c9-4f2b-acf3-055ae65e55c6",
"publisherId": "dzannotti.vscode-babel-coloring",
"publisherDisplayName": "dzannotti"
},
"name": "vscode-babel-coloring",
"publisher": "dzannotti",
"version": "0.0.4"
},
{
"metadata": {
"id": "d960eabf-f421-4568-8be0-2633af2c37b0",
"publisherId": "patrys.vscode-code-outline",
"publisherDisplayName": "patrys"
},
"name": "vscode-code-outline",
"publisher": "patrys",
"version": "0.2.1"
},
{
"metadata": {
"id": "37d7747f-e652-4eac-83de-f2939f7e2121",
"publisherId": "anseki.vscode-color",
"publisherDisplayName": "anseki"
},
"name": "vscode-color",
"publisher": "anseki",
"version": "0.4.5"
},
{
"metadata": {
"id": "0479fc1c-3d67-49f9-b087-fb9069afe48f",
"publisherId": "PeterJausovec.vscode-docker",
"publisherDisplayName": "PeterJausovec"
},
"name": "vscode-docker",
"publisher": "PeterJausovec",
"version": "0.4.0"
},
{
"metadata": {
"id": "583b2b34-2c1e-4634-8c0b-0b82e283ea3a",
"publisherId": "dbaeumer.vscode-eslint",
"publisherDisplayName": "dbaeumer"
},
"name": "vscode-eslint",
"publisher": "dbaeumer",
"version": "1.7.2"
},
{
"metadata": {
"id": "829a192d-496c-44ac-87f3-0a84ce36a853",
"publisherId": "emmanuelbeziat.vscode-great-icons",
"publisherDisplayName": "emmanuelbeziat"
},
"name": "vscode-great-icons",
"publisher": "emmanuelbeziat",
"version": "2.1.46"
},
{
"metadata": {
"id": "9ccc1dd7-7ec4-4a46-bd4f-7d7b8b9d322a",
"publisherId": "robertohuertasm.vscode-icons",
"publisherDisplayName": "robertohuertasm"
},
"name": "vscode-icons",
"publisher": "robertohuertasm",
"version": "8.0.0"
},
{
"metadata": {
"id": "da00c08c-ff11-4cf3-b619-fdbd967d44c5",
"publisherId": "kalitaalexey.vscode-rust",
"publisherDisplayName": "kalitaalexey"
},
"name": "vscode-rust",
"publisher": "kalitaalexey",
"version": "0.4.2"
},
{
"metadata": {
"id": "06cc3e44-aedb-41b8-a4ea-29ebf3c491fd",
"publisherId": "jpoissonnier.vscode-styled-components",
"publisherDisplayName": "jpoissonnier"
},
"name": "vscode-styled-components",
"publisher": "jpoissonnier",
"version": "0.0.25"
},
{
"metadata": {
"id": "ee33fd31-7bb4-4252-8368-fdd5bcd94cf8",
"publisherId": "akamud.vscode-theme-onelight",
"publisherDisplayName": "akamud"
},
"name": "vscode-theme-onelight",
"publisher": "akamud",
"version": "2.1.0"
},
{
"metadata": {
"id": "276fd2ee-2d7f-4a4c-b2ea-1780b1f8e59b",
"publisherId": "minhthai.vscode-todo-parser",
"publisherDisplayName": "minhthai"
},
"name": "vscode-todo-parser",
"publisher": "minhthai",
"version": "1.9.1"
},
{
"metadata": {
"id": "876e8f93-74d0-4f4f-91b7-34a09f19f444",
"publisherId": "VisualStudioExptTeam.vscodeintellicode",
"publisherDisplayName": "VisualStudioExptTeam"
},
"name": "vscodeintellicode",
"publisher": "VisualStudioExptTeam",
"version": "1.1.2"
},
{
"metadata": {
"id": "fd6d3dc6-b307-4589-82a6-78e2afec3d77",
"publisherId": "johnpapa.winteriscoming",
"publisherDisplayName": "johnpapa"
},
"name": "winteriscoming",
"publisher": "johnpapa",
"version": "0.8.8"
}
]
// Empty
[
{
"key": "shift+backspace",
"command": "editor.action.deleteLines",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "shift+alt+k",
"command": "-editor.action.deleteLines",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "alt+w",
"command": "editor.action.formatDocument",
"when": "editorHasDocumentFormattingProvider && editorTextFocus && !editorReadonly"
},
{
"key": "shift+alt+f",
"command": "-editor.action.formatDocument",
"when": "editorHasDocumentFormattingProvider && editorTextFocus && !editorReadonly"
},
{
"key": "ctrl+w",
"command": "workbench.action.closeActiveEditor"
},
{
"key": "alt+w",
"command": "-workbench.action.closeActiveEditor"
},
{
"key": "shift+cmd+w",
"command": "workbench.action.closeWindow",
"when": "!editorIsOpen"
},
{
"key": "alt+w",
"command": "-workbench.action.closeWindow",
"when": "!editorIsOpen"
},
{
"key": "ctrl+d",
"command": "editor.action.copyLinesDownAction",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "shift+alt+down",
"command": "-editor.action.copyLinesDownAction",
"when": "editorTextFocus && !editorReadonly"
}
]
// Empty
[
{
"key": "shift+backspace",
"command": "editor.action.deleteLines",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "shift+cmd+k",
"command": "-editor.action.deleteLines",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "shift+cmd+w",
"command": "editor.action.formatDocument",
"when": "editorHasDocumentFormattingProvider && editorTextFocus && !editorReadonly"
},
{
"key": "shift+alt+f",
"command": "-editor.action.formatDocument",
"when": "editorHasDocumentFormattingProvider && editorTextFocus && !editorReadonly"
},
{
"key": "ctrl+w",
"command": "workbench.action.closeActiveEditor"
},
{
"key": "cmd+w",
"command": "-workbench.action.closeActiveEditor"
},
{
"key": "shift+cmd+w",
"command": "-workbench.action.closeWindow",
"when": "!editorIsOpen"
},
{
"key": "cmd+w",
"command": "-workbench.action.closeWindow",
"when": "!editorIsOpen"
},
{
"key": "cmd+d",
"command": "editor.action.copyLinesDownAction",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "shift+alt+down",
"command": "-editor.action.copyLinesDownAction",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "shift+alt+w",
"command": "workbench.action.closeWindow"
},
{
"key": "shift+cmd+w",
"command": "-workbench.action.closeWindow"
},
{
"key": "alt+w",
"command": "-gitlens.diffLineWithWorking",
"when": "editorTextFocus && gitlens:activeIsTracked && gitlens:keymap == 'alternate'"
},
{
"key": "alt+w",
"command": "editor.action.format"
},
{
"key": "cmd+n",
"command": "-workbench.action.files.newUntitledFile"
},
{
"key": "cmd+n",
"command": "explorer.newFile"
},
{
"key": "shift+alt+n",
"command": "explorer.newFolder"
}
]
{
// Defines VSCode's display language.
// See https://go.microsoft.com/fwlink/?LinkId=761051 for a list of supported languages.
// Changing the value requires to restart VSCode.
"locale":"en"
}
{
"name": "material-icon-theme",
"version": "2.1.0"
}
{
// Place your settings in this file to overwrite the default settings
// "html.format.wrapAttributes": "force-aligned",
// "reason.debounce.linter": 3000,
// "terminal.integrated.shellArgs.osx": [],
// "terminal.integrated.fontFamily": "Inconsolata-g for Powerline",
"explorer.confirmDragAndDrop": false,
// "window.nativeTabs": true,
"workbench.statusBar.feedback.visible": false,
"workbench.fontAliasing": "antialiased",
"terminal.integrated.fontSize": 17,
"terminal.integrated.shell.osx": "/bin/zsh",
"terminal.integrated.shell.windows": "C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\powershell.exe",
"terminal.explorerKind": "external",
"terminal.external.osxExec": "xterm",
// "reason"
"emmet.includeLanguages": {"html": "html"},
// "files.eol": "\n",
"html.suggest.angular1": false,
"html.suggest.ionic": false,
"html.format.wrapLineLength": 80,
"vsicons.presets.angular": false,
"extensions.autoUpdate": true,
"editor.minimap.enabled": true,
"files.defaultLanguage": "javascript",
"window.zoomLevel": 1,
"files.associations": {
"*.ml": "ocaml",
"*.mli": "ocaml",
"*.css": "css"
},
// "editor.fontFamily": "Fira Code",
"prettier.jsxBracketSameLine": true,
"prettier.singleQuote": true,
"prettier.printWidth": 80,
// "prettier.semi": false,
"prettier.trailingComma": "all",
"prettier.bracketSpacing": false,
"editor.fontLigatures": true,
"editor.fontSize": 15,
"javascript.validate.enable": false,
"javascript.format.insertSpaceAfterFunctionKeywordForAnonymousFunctions": false,
"files.autoSave": "onFocusChange",
// "files.autoSaveDelay": 10000,
"eslint.autoFixOnSave": true,
"emmet.syntaxProfiles": {
"javascript": "html"
},
"editor.fontFamily": "'Fira Code', 'Consolas', 'Droid Sans Fallback'",
"editor.tabSize": 2,
"editor.formatOnSave": false,
"eslint.enable": true,
"eslint.options": {
"settings": {
"flowtype": {
"onlyFilesWithFlowAnnotation": false
}
},
"plugins": ["flowtype", "react"],
"extends": ["airbnb-base", "prettier", "plugin:react/recommended"],
"parser": "babel-eslint",
"rules": {
// "flowtype/boolean-style": [2, "boolean"],
// "flowtype/define-flow-type": 1,
// "flowtype/generic-spacing": [2, "never"],
// "flowtype/no-weak-types": 0,
// "flowtype/object-type-delimiter": [2, "comma"],
// "flowtype/require-parameter-type": 0,
// "flowtype/require-return-type": [
// 0,
// "always",
// {
// "annotateUndefined": "never"
// }
// ],
// "flowtype/require-valid-file-annotation": 2,
// "flowtype/semi": [2, "always"],
// "flowtype/space-after-type-colon": [2, "always"],
// "flowtype/space-before-generic-bracket": [2, "never"],
// "flowtype/space-before-type-colon": [2, "never"],
// "flowtype/type-id-match": [2, "^([A-Z][a-z0-9]+)+Type$"],
// "flowtype/union-intersection-spacing": [2, "always"],
// "flowtype/use-flow-type": 1,
// "flowtype/valid-syntax": 1,
"semi": 0,
"react/jsx-uses-react": "error",
"react/jsx-uses-vars": "error",
"comma-dangle": 0, // disallow or enforce trailing commas
"no-cond-assign": 2, // disallow assignment in conditional expressions
"no-console": 0, // disallow use of console (off by default in the node environment)
"no-constant-condition": 2, // disallow use of constant expressions in conditions
"no-control-regex": 2, // disallow control characters in regular expressions
"no-debugger": 2, // disallow use of debugger
"no-dupe-args": 2, // disallow duplicate arguments in functions
"no-dupe-keys": 2, // disallow duplicate keys when creating object literals
"no-duplicate-case": 2, // disallow a duplicate case label.
"no-empty": 2, // disallow empty statements
"no-empty-character-class": 2, // disallow the use of empty character classes in regular expressions
"no-ex-assign": 2, // disallow assigning to the exception in a catch block
"no-extra-boolean-cast": 2, // disallow double-negation boolean casts in a boolean context
"no-extra-parens": 0, // disallow unnecessary parentheses (off by default)
"no-extra-semi": 2, // disallow unnecessary semicolons
"no-func-assign": 2, // disallow overwriting functions written as function declarations
"no-inner-declarations": 2, // disallow function or variable declarations in nested blocks
"no-invalid-regexp": 2, // disallow invalid regular expression strings in the RegExp constructor
"no-irregular-whitespace": 2, // disallow irregular whitespace outside of strings and comments
"no-negated-in-lhs": 2, // disallow negation of the left operand of an in expression
"no-obj-calls": 2, // disallow the use of object properties of the global object (Math and JSON) as functions
"no-regex-spaces": 2, // disallow multiple spaces in a regular expression literal
"quote-props": 0, // disallow reserved words being used as object literal keys (off by default)
"no-sparse-arrays": 2, // disallow sparse arrays
"no-unreachable": 2, // disallow unreachable statements after a return, throw, continue, or break statement
"use-isnan": 2, // disallow comparisons with the value NaN
"valid-jsdoc": 2, // Ensure JSDoc comments are valid (off by default)
"valid-typeof": 2, // Ensure that the results of typeof are compared against a valid string
//
// Best Practices
//
// These are rules designed to prevent you from making mistakes.
// They either prescribe a better way of doing something or help you avoid footguns.
//
"jsx-curly-spacing": [0, "never"],
"block-scoped-var": 0, // treat var statements as if they were block scoped (off by default). 0: deep destructuring is not compatible https://github.com/eslint/eslint/issues/1863
"complexity": 0, // specify the maximum cyclomatic complexity allowed in a program (off by default)
"consistent-return": 2, // require return statements to either always or never specify values
"curly": 0, // specify curly brace conventions for all control statements
"default-case": 0, // require default case in switch statements (off by default)
"dot-notation": 2, // encourages use of dot notation whenever possible
"eqeqeq": 1, // require the use of === and !==
"guard-for-in": 0, // make sure for-in loops have an if statement (off by default)
"no-alert": 2, // disallow the use of alert, confirm, and prompt
"no-caller": 2, // disallow use of arguments.caller or arguments.callee
"no-div-regex": 2, // disallow division operators explicitly at beginning of regular expression (off by default)
"no-else-return": 2, // disallow else after a return in an if (off by default)
"no-labels": 2, // disallow use of labels for anything other then loops and switches
"no-eq-null": 2, // disallow comparisons to null without a type-checking operator (off by default)
"no-eval": 2, // disallow use of eval()
"no-extend-native": 2, // disallow adding to native types
"no-extra-bind": 2, // disallow unnecessary function binding
"no-fallthrough": 2, // disallow fallthrough of case statements
"no-floating-decimal": 2, // disallow the use of leading or trailing decimal points in numeric literals (off by default)
"no-implied-eval": 2, // disallow use of eval()-like methods
"no-iterator": 2, // disallow usage of __iterator__ property
"no-lone-blocks": 2, // disallow unnecessary nested blocks
"no-loop-func": 2, // disallow creation of functions within loops
"no-multi-spaces": 2, // disallow use of multiple spaces
"no-multi-str": 2, // disallow use of multiline strings
"no-native-reassign": 2, // disallow reassignments of native objects
"no-new": 2, // disallow use of new operator when not part of the assignment or comparison
"no-new-func": 2, // disallow use of new operator for Function object
"no-new-wrappers": 2, // disallows creating new instances of String,Number, and Boolean
"no-octal": 2, // disallow use of octal literals
"no-octal-escape": 2, // disallow use of octal escape sequences in string literals, such as var foo = "Copyright \251";
"no-param-reassign": 1, // disallow reassignment of function parameters (off by default)
"no-process-env": 0, // disallow use of process.env (off by default)
"no-proto": 2, // disallow usage of __proto__ property
"no-redeclare": 2, // disallow declaring the same variable more then once
"no-return-assign": 2, // disallow use of assignment in return statement
"no-script-url": 2, // disallow use of javascript: urls.
"no-self-compare": 2, // disallow comparisons where both sides are exactly the same (off by default)
"no-sequences": 2, // disallow use of comma operator
"no-throw-literal": 2, // restrict what can be thrown as an exception (off by default)
"no-unused-expressions": 2, // disallow usage of expressions in statement position
"no-void": 2, // disallow use of void operator (off by default)
"no-warning-comments": [
0,
{
"terms": ["todo", "fixme"],
"location": "start"
}
], // disallow usage of configurable warning terms in comments": 2, // e.g. TODO or FIXME (off by default)
"no-with": 2, // disallow use of the with statement
"radix": 2, // require use of the second argument for parseInt() (off by default)
"vars-on-top": 2, // requires to declare all vars on top of their containing scope (off by default)
"wrap-iife": 2, // require immediate function invocation to be wrapped in parentheses (off by default)
"yoda": 2, // require or disallow Yoda conditions
//
// Strict Mode
//
// These rules relate to using strict mode.
//
"strict": 0, // controls location of Use Strict Directives. 0: required by `babel-eslint`
//
// Variables
//
// These rules have to do with variable declarations.
//
"no-catch-shadow": 2, // disallow the catch clause parameter name being the same as a variable in the outer scope (off by default in the node environment)
"no-delete-var": 2, // disallow deletion of variables
"no-label-var": 2, // disallow labels that share a name with a variable
"no-shadow": 0, // disallow declaration of variables already declared in the outer scope
"no-shadow-restricted-names": 2, // disallow shadowing of names such as arguments
// "no-undef": 2, // disallow use of undeclared variables unless mentioned in a /*global */ block
// "no-undef-init": 2, // disallow use of undefined when initializing variables
// "no-undefined": 2, // disallow use of undefined variable (off by default)
"no-unused-vars": 2, // disallow declaration of variables that are not used in the code
"no-use-before-define": 1, // disallow use of variables before they are defined
//
//Stylistic Issues
//
// These rules are purely matters of style and are quite subjective.
//
// "indent": [ 1, 2 ], // this option sets a specific tab width for your code (off by default)
"brace-style": 1, // enforce one true brace style (off by default)
"camelcase": 1, // require camel case names
"comma-spacing": [
1,
{
"before": false,
"after": true
}
], // enforce spacing before and after comma
"comma-style": [1, "last"], // enforce one true comma style (off by default)
"consistent-this": [1, "_this"], // enforces consistent naming when capturing the current execution context (off by default)
"eol-last": 0, // enforce newline at the end of file, with no multiple empty lines
"func-names": 0, // require function expressions to have a name (off by default)
"func-style": 0, // enforces use of function declarations or expressions (off by default)
"key-spacing": [
1,
{
"beforeColon": false,
"afterColon": true
}
], // enforces spacing between keys and values in object literal properties
"max-nested-callbacks": [1, 3], // specify the maximum depth callbacks can be nested (off by default)
"new-cap": [
1,
{
"newIsCap": true,
"capIsNew": false
}
], // require a capital letter for constructors
"new-parens": 1, // disallow the omission of parentheses when invoking a constructor with no arguments
"newline-after-var": 0, // allow/disallow an empty newline after var statement (off by default)
"no-array-constructor": 1, // disallow use of the Array constructor
"no-inline-comments": 1, // disallow comments inline after code (off by default)
"no-lonely-if": 1, // disallow if as the only statement in an else block (off by default)
"no-mixed-spaces-and-tabs": 1, // disallow mixed spaces and tabs for indentation
"no-multiple-empty-lines": [
1,
{
"max": 2
}
], // disallow multiple empty lines (off by default)
"no-nested-ternary": 1, // disallow nested ternary expressions (off by default)
"no-new-object": 1, // disallow use of the Object constructor
"no-spaced-func": 1, // disallow space between function identifier and application
"no-ternary": 0, // disallow the use of ternary operators (off by default)
"no-trailing-spaces": 1, // disallow trailing whitespace at the end of lines
"no-underscore-dangle": 0, // disallow dangling underscores in identifiers
// "no-extra-parens": 1, // disallow wrapping of non-IIFE statements in parens
"one-var": [0, "never"], // allow just one var statement per function (off by default)
"operator-assignment": [1, "never"], // require assignment operator shorthand where possible or prohibit it entirely (off by default)
"padded-blocks": [1, "never"], // enforce padding within blocks (off by default)
"quotes": [1, "single"], // specify whether double or single quotes should be used
"semi-spacing": [
1,
{
"before": false,
"after": true
}
], // enforce spacing before and after semicolons
"sort-vars": 0, // sort variables within the same declaration block (off by default)
// "keywords-spacing": 1, // require a space after certain keywords (off by default)
"space-before-blocks": [1, "always"], // require or disallow space before blocks (off by default)
"space-before-function-paren": [
0,
{
"anonymous": "never",
"named": "never"
}
], // require or disallow space before function opening parenthesis (off by default)
"computed-property-spacing": [1, "never"], // require or disallow spaces inside brackets (off by default)
"space-in-parens": [1, "never"], // require or disallow spaces inside parentheses (off by default)
// "space-infix-ops": [
// 1,
// "always"
// ], // require spaces around operators
"keyword-spacing": [
"error",
{
"before": true,
"after": true,
"overrides": {}
}
], // require a space after return, throw, and case
"space-unary-ops": [
1,
{
"words": true,
"nonwords": false
}
], // Require or disallow spaces before/after unary operators (words on by default, nonwords off by default)
"spaced-comment": [1, "always"], // require or disallow a space immediately following the // in a line comment (off by default)
"wrap-regex": 0, // require regex literals to be wrapped in parentheses (off by default)
//
// ECMAScript 6
//
// These rules are only relevant to ES6 environments and are off by default.
//
"no-var": 2, // require let or const instead of var (off by default)
"generator-star-spacing": [2, "after"], // enforce the spacing around the * in generator functions (off by default)
//
// Legacy
//
// The following rules are included for compatibility with JSHint and JSLint.
// While the names of the rules may not match up with the JSHint/JSLint counterpart,
// the functionality is the same.
//
"max-depth": [2, 3], // specify the maximum depth that blocks can be nested (off by default)
"max-len": [
2,
115,
2,
{
"ignoreTemplateLiterals": true
}
], // specify the maximum length of a line in your program (off by default)
"max-params": [2, 5], // limits the number of parameters that can be used in the function declaration. (off by default)
"max-statements": 0, // specify the maximum number of statement allowed in a function (off by default)
"no-bitwise": 0, // disallow use of bitwise operators (off by default)
"no-plusplus": 0 // disallow use of unary operators, ++ and -- (off by default)
},
"parserOptions": {
"ecmaVersion": 8,
"sourceType": "module",
"ecmaFeatures": {
"arrowFunctions": true,
"binaryLiterals": true,
"blockBindings": true,
"classes": true,
"defaultParams": true,
"destructuring": true,
"forOf": true,
"generators": true,
"modules": true,
"experimentalObjectRestSpread": true,
"objectLiteralComputedProperties": true,
"objectLiteralDuplicateProperties": true,
"objectLiteralShorthandMethods": true,
"objectLiteralShorthandProperties": true,
"octalLiterals": true,
"regexUFlag": true,
"regexYFlag": true,
"spread": true,
"superInFunctions": true,
"templateStrings": true,
"unicodeCodePointEscapes": true,
"globalReturn": true,
"jsx": true
}
}
},
"sync.gist": "b8209b9117ddf12b4ae7a85ddb9dff37",
"sync.autoDownload": false,
"sync.autoUpload": false,
"sync.forceDownload": false,
"vsicons.projectDetection.disableDetect": true,
"vsicons.dontShowNewVersionMessage": true,
"workbench.iconTheme": "vscode-icons",
"workbench.activityBar.visible": true,
"workbench.sideBar.location": "left",
// "workbench.welcome.enabled": true,
"material-icon-theme.showWelcomeMessage": false,
"material-icon-theme.showUpdateMessage": false,
"sync.quietSync": false,
// "typescript.check.tscVersion": false,
"sync.askGistName": false,
"workbench.colorCustomizations": {
"activityBarBadge.background": "#2979FF",
"list.activeSelectionForeground": "#2979FF",
"list.inactiveSelectionForeground": "#2979FF",
"list.highlightForeground": "#2979FF",
"scrollbarSlider.activeBackground": "#2979FF50",
"editorSuggestWidget.highlightForeground": "#2979FF",
"textLink.foreground": "#2979FF",
"progressBar.background": "#2979FF",
"pickerGroup.foreground": "#2979FF",
"tab.activeBorder": "#2979FF"
},
"explorer.confirmDelete": false,
"rust.rustup": {
"toolchain": "stable-x86_64-apple-darwin"
},
"rust.mode": null,
"gitlens.advanced.messages": {
"suppressCommitHasNoPreviousCommitWarning": false,
"suppressCommitNotFoundWarning": false,
"suppressFileNotUnderSourceControlWarning": false,
"suppressGitVersionWarning": false,
"suppressLineUncommittedWarning": false,
"suppressNoRepositoryWarning": false,
"suppressResultsExplorerNotice": false,
"suppressShowKeyBindingsNotice": true,
"suppressUpdateNotice": false,
"suppressWelcomeNotice": true
},
"gitlens.keymap": "none",
"workbench.colorTheme": "RealGithub",
"gitlens.historyExplorer.enabled": true,
"javascript.updateImportsOnFileMove.enabled": "always",
"workbench.editor.enablePreview": false,
"editor.fontWeight": "bold",
"workbench.startupEditor": "welcomePage",
"typescript.suggest.completeFunctionCalls": true,
"gitlens.views.fileHistory.enabled": true,
"gitlens.views.lineHistory.enabled": true
}
{
/*
// Place your snippets for Javascript (Babel) 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, ${id} and ${id:label} and ${1:label} for variables. Variables with the same id are connected.
// Example:
"Print to console": {
"prefix": "log",
"body": [
"console.log('$1');",
"$2"
],
"description": "Log output to console"
}
*/
"Print to console": {
"prefix": "log",
"body": [
"console.log('$1');",
"$2"
],
"description": "Log output to console"
},
"Create Styled component": {
"prefix": "stl",
"body": [
"import styled from 'styled-components'\n",
"const ${styledComponent} = styled.$2`\n`;\n",
"export default ${styledComponent}"
],
"description": "styled-component template"
}
}
{
/*
// Place your snippets for JavaScript React 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"
}
*/
}
{"version":"1.9.1","status":"enabled"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment