Skip to content

Instantly share code, notes, and snippets.

@manakuro
Created February 24, 2020 23:08
Show Gist options
  • Save manakuro/c6e04cef707a82bc0af1832c7f313c99 to your computer and use it in GitHub Desktop.
Save manakuro/c6e04cef707a82bc0af1832c7f313c99 to your computer and use it in GitHub Desktop.
module.exports = {
extends: [
'react-app', // for editor
'eslint:recommended',
'plugin:prettier/recommended',
'prettier/react',
],
parser: 'babel-eslint',
plugins: ['babel'],
rules: {
quotes: ['error', 'single'],
'no-debugger': process.env.NODE_ENV === 'production' ? 2 : 0,
'no-console': process.env.NODE_ENV === 'production' ? 2 : 0,
'babel/no-unused-expressions': 'error',
'no-unused-expressions': 'off',
'prettier/prettier': [
'error',
{
singleQuote: true,
semi: false,
trailingComma: 'all',
jsxBracketSameLine: true,
},
],
},
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment