Skip to content

Instantly share code, notes, and snippets.

@neciu
Last active July 27, 2017 19:30
Show Gist options
  • Save neciu/987f68d0f4c9c941b3c28b2d7da27e8e to your computer and use it in GitHub Desktop.
Save neciu/987f68d0f4c9c941b3c28b2d7da27e8e to your computer and use it in GitHub Desktop.
[Your last ESLint config] .eslintrc.js
module.exports = {
extends: ['eslint:recommended', 'prettier'], // extending recommended config and config derived from eslint-config-prettier
plugins: ['prettier'], // activating esling-plugin-prettier (--fix stuff)
rules: {
'prettier/prettier': [ // customizing prettier rules (unfortunately not many of them are customizable)
'error',
{
singleQuote: true,
trailingComma: 'all',
},
],
eqeqeq: ['error', 'always'], // adding some custom ESLint rules
},
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment