Skip to content

Instantly share code, notes, and snippets.

@fresh5447
Created April 20, 2018 02:15
Show Gist options
  • Save fresh5447/b7fc719192649d758f2dc06366b4d8d4 to your computer and use it in GitHub Desktop.
Save fresh5447/b7fc719192649d758f2dc06366b4d8d4 to your computer and use it in GitHub Desktop.
eslint w/ prettier
module.exports = {
env: {
browser: true,
es6: true,
node: true,
},
extends: [
'standard',
'standard-react',
'prettier',
'prettier/react',
'prettier/standard',
'plugin:lodash-fp/recommended',
],
globals: {},
parser: 'babel-eslint',
parserOptions: {
ecmaVersion: 2017,
jsx: true,
sourceType: 'module',
},
plugins: ['lodash-fp', 'prettier', 'standard'],
root: true,
rules: {
'prettier/prettier': [
'error',
{
bracketSpacing: false,
printWidth: 100,
semi: false,
singleQuote: true,
trailingComma: 'all',
},
],
eqeqeq: ['error', 'smart'],
},
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment