Created
March 22, 2019 18:32
-
-
Save marclove/4a09189c9165180fcce6b006aae4248f to your computer and use it in GitHub Desktop.
ESLint + Prettier + VSCode Configuration
This file contains 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
{ | |
"plugins": ["prettier"], | |
"extends": [ | |
"plugin:prettier/recommended", | |
"plugin:jest/recommended" | |
], | |
"rules": { | |
// only rules that don't conflict with the rules declared in .prettierrc | |
} | |
// other eslint stuff | |
} |
This file contains 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
{ | |
"printWidth": 120, | |
"trailingComma": "all", | |
"singleQuote": true, | |
"bracketSpacing": true | |
} |
This file contains 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
ESLint (dbaeumer.vscode-eslint) | |
Prettier (esbenp.prettier-vscode) | |
TSLint (ms-vscode.vscode-typescript-tslint-plugin) |
This file contains 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
"devDependencies": { | |
"eslint-config-prettier": "^4.1.0", | |
"eslint-plugin-prettier": "^3.0.0", | |
"prettier": "^1.16.4", | |
} |
This file contains 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
{ | |
"files.autoSave": "onFocusChange", | |
"editor.codeActionsOnSave": { | |
"source.fixAll": true | |
}, | |
"eslint.enable": true, | |
"eslint.autoFixOnSave": true, | |
"prettier.eslintIntegration": true, | |
"prettier.requireConfig": true, | |
"tslint.jsEnable": false | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment