Skip to content

Instantly share code, notes, and snippets.

@kalloc
Last active December 19, 2018 19:39
Show Gist options
  • Select an option

  • Save kalloc/acd83ac2e929ab677f6171232d69fc12 to your computer and use it in GitHub Desktop.

Select an option

Save kalloc/acd83ac2e929ab677f6171232d69fc12 to your computer and use it in GitHub Desktop.
VSCode JS Linting
{
"parser": "babel-eslint",
"extends": [
"google",
"airbnb",
"plugin:flowtype/recommended",
"eslint:recommended"
],
"rules": {
"no-console": "off",
"key-spacing": "error"
},
"env": {
"browser": true,
"es6": true,
"commonjs": true
},
"globals": {
"process": true,
"module": true
},
"plugins": ["babel", "flowtype"]
}
{
"printWidth": 120,
"parser": "flow",
"semi": false,
"tabWidth": 2,
"singleQuote": true,
"overrides": [{
"files": [".eslintrc"],
"options": {
"parser": "json",
"tabWidth": 2
}
},
{
"files": ["*.js"],
"options": {
"insertPragma": false
}
}
]
}
{
"folders": [{
"path": "edge-port-admin"
},
{
"path": "edge-port-api"
},
{
"path": "edge-tugboat-front"
},
{
"path": "edge-port-contracts"
}
],
"settings": {
"jira.projectNames": "EP",
"javascript.validate.enable": false,
"typescript.validate.enable": false,
"editor.formatOnSave": false,
"eslint.autoFixOnSave": true,
"eslint.alwaysShowStatus": true,
"prettier.eslintIntegration": true,
"files.exclude": {
"flow-typed": true,
"build": true,
"public": true,
"dist": true,
"build_webpack": true,
".idea": true,
"*.swp": true,
".vscode": true,
"node_modules": true,
".next": true
}
}
}
  • ext install editorconfig.editorconfig
  • ext install dbaeumer.vscode-eslint
  • ext install flowtype.flow-for-vscode
  • ext install eamodio.gitlens
  • ext install knisterpeter.vscode-github
  • ext install esbenp.prettier-vscode
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment