Last active
April 7, 2019 04:55
-
-
Save Evalir/c77e542b278f317d4466d7e5ee878f85 to your computer and use it in GitHub Desktop.
Vscode config & .eslintrc react setup.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // 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