Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hints #3

Open
tunnckoCore opened this issue Apr 26, 2017 · 4 comments
Open

hints #3

tunnckoCore opened this issue Apr 26, 2017 · 4 comments

Comments

@tunnckoCore
Copy link
Owner Author

tunnckoCore commented Jul 28, 2017

VSCode settings

{
  "workbench.colorTheme": "Sublime Material Theme - Dark",
  "files.autoSave": "onFocusChange",
  "files.insertFinalNewline": true,
  "files.trimTrailingWhitespace": true,
  "editor.fontSize": 14,
  "editor.fontFamily": "'Liberation Mono', 'Droid Sans Mono'",
  "editor.tabSize": 2,
  "editor.formatOnSave": true,
  "editor.tabCompletion": true,
  "editor.quickSuggestions": true,
  "editor.acceptSuggestionOnEnter": "smart",
  "editor.wordBasedSuggestions": true,
  "editor.snippetSuggestions": "top",
  "editor.minimap.enabled": true,
  "editor.folding": false,
  "editor.rulers": [80, 100],
  "docthis.automaticForBlockComments": false,
  "docthis.inferTypesFromNames": true,
  "extensions.autoUpdate": true,
  "window.menuBarVisibility": "toggle",
  "workbench.iconTheme": "material-icon-theme",
  "workbench.statusBar.visible": true,
  "explorer.openEditors.visible": 0,
  "git.path": "/usr/bin/git",
  "[markdown]": {
    "files.trimTrailingWhitespace": false,
    "files.insertFinalNewline": false
  },
  "eslint.autoFixOnSave": true,
  "prettier.eslintIntegration": true,
  "prettier.printWidth": 80,
  "prettier.tabWidth": 2,
  "prettier.singleQuote": true,
  "prettier.trailingComma": "es5",
  "prettier.bracketSpacing": true,
  "prettier.jsxBracketSameLine": false,
  "prettier.parser": "babylon",
  "prettier.semi": false,
  "prettier.useTabs": false,
  "prettier.javascriptEnable": ["javascript", "javascriptreact"],
  "prettier.typescriptEnable": ["typescript", "typescriptreact"],
  "prettier.cssEnable": ["css", "less", "scss"],
  "prettier.jsonEnable": ["json"],
  "prettier.graphqlEnable": ["graphql"]
}

@tunnckoCore
Copy link
Owner Author

tunnckoCore commented Jul 28, 2017

ESLint config json

{
  "extends": "standard",
  "rules": {
    "generator-star-spacing": ["error", { "before": true, "after": true }],
    "computed-property-spacing": ["error", "never"],
    "object-curly-spacing": ["error", "always"],
    "space-before-function-paren": ["error", "always"],
    "arrow-parens": ["error", "always"],
    "max-params": "error",
    "max-nested-callbacks": ["error", { "max": 5 }],
    "max-depth": ["error", { "max": 5 }],
    "no-empty": ["error", { "allowEmptyCatch": true }]
  }
}

@tunnckoCore
Copy link
Owner Author

VSCode plugins

  • tunnckocore.modern-javascript-snippets
  • dweizhe.docthis-customize-tags
  • dbaeumer.vscode-eslint
  • esbenp.prettier-vscode
  • PKief.material-icon-theme
  • jprestidge.theme-material-theme
  • ms-vscode.sublime-keybindings

@tunnckoCore
Copy link
Owner Author

tunnckoCore commented Jul 28, 2017

Linux helper for installing all standard peer deps

(                  
  export PKG=eslint-config-standard;
  npm info "$PKG@latest" peerDependencies --json | command sed 's/[\{\},]//g ; s/: /@/g' | xargs npm install --save-dev "$PKG"
)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant