Created
February 24, 2020 23:08
-
-
Save manakuro/c6e04cef707a82bc0af1832c7f313c99 to your computer and use it in GitHub Desktop.
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 = { | |
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