Skip to content

Instantly share code, notes, and snippets.

@Evalir
Last active April 7, 2019 04:55
Show Gist options
  • Select an option

  • Save Evalir/c77e542b278f317d4466d7e5ee878f85 to your computer and use it in GitHub Desktop.

Select an option

Save Evalir/c77e542b278f317d4466d7e5ee878f85 to your computer and use it in GitHub Desktop.
Vscode config & .eslintrc react setup.
// vscode
{
"workbench.colorTheme": "Level Up",
"window.zoomLevel": -1,
"editor.fontFamily": "Dank Mono, Operator Mono, Menlo, Monaco, 'Courier New', monospace",
"editor.fontSize": 16,
"editor.formatOnSave": true,
"[javascript]": {
"editor.formatOnSave": false
},
"eslint.autoFixOnSave": true,
"eslint.alwaysShowStatus": true,
"prettier.disableLanguages": ["js"],
"files.autoSave": "onFocusChange"
}
// eslintrc for react apps
// first run
// npm install eslint-plugin-prettier eslint-config-prettier prettier -D
{
"extends": ["react-app", "plugin:prettier/recommended"],
"rules": {
"prettier/prettier": [
"error",
{ "singleQuote": true, "trailingComma": "all" }
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment