Skip to content

Instantly share code, notes, and snippets.

@manakuro
Created April 5, 2020 12:08
Show Gist options
  • Save manakuro/db59af21e5e2ba322089015fe9efe694 to your computer and use it in GitHub Desktop.
Save manakuro/db59af21e5e2ba322089015fe9efe694 to your computer and use it in GitHub Desktop.
module.exports = {
extends: [
'react-app',
'plugin:prettier/recommended',
'prettier/react',
],
rules: {
quotes: ['error', 'single'],
'no-debugger': process.env.NODE_ENV === 'production' ? 2 : 0,
'no-console': process.env.NODE_ENV === 'production' ? 2 : 0,
'prettier/prettier': [
'error',
{
singleQuote: true,
semi: false,
trailingComma: 'all'
},
],
"@typescript-eslint/no-angle-bracket-type-assertion": "off",
"@typescript-eslint/consistent-type-assertions": "warn"
},
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment