Skip to content

Instantly share code, notes, and snippets.

@jwkicklighter
Created March 12, 2019 15:04
Show Gist options
  • Select an option

  • Save jwkicklighter/667ba0421803db38c8fae88bee7d4cac to your computer and use it in GitHub Desktop.

Select an option

Save jwkicklighter/667ba0421803db38c8fae88bee7d4cac to your computer and use it in GitHub Desktop.
ESLint + Prettier + VSCode format on save issue
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',
},
}
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