Created
March 12, 2019 15:04
-
-
Save jwkicklighter/667ba0421803db38c8fae88bee7d4cac to your computer and use it in GitHub Desktop.
ESLint + Prettier + VSCode format on save issue
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
| module.exports = { | |
| root: true, | |
| parser: 'babel-eslint', | |
| parserOptions: { | |
| sourceType: 'module', | |
| }, | |
| env: { | |
| browser: true, | |
| 'jest/globals': true, | |
| }, | |
| extends: 'standard', | |
| plugins: ['html', 'jest'], | |
| rules: { | |
| 'arrow-parens': 0, | |
| 'generator-star-spacing': 0, | |
| 'no-console': ['warn', { allow: ['error', 'warn'] }], | |
| 'no-debugger': process.env.NODE_ENV === 'production' ? 2 : 0, | |
| 'comma-dangle': [ | |
| 'error', | |
| { | |
| arrays: 'always-multiline', | |
| objects: 'always-multiline', | |
| imports: 'always-multiline', | |
| exports: 'ignore', | |
| }, | |
| ], | |
| 'jest/no-disabled-tests': 'warn', | |
| 'jest/no-focused-tests': 'error', | |
| 'jest/no-identical-title': 'error', | |
| 'jest/prefer-to-have-length': 'warn', | |
| 'jest/valid-expect': 'error', | |
| }, | |
| } |
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
| module.exports = { | |
| trailingComma: 'es5', | |
| tabWidth: 2, | |
| semi: false, | |
| singleQuote: true, | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment