Last active
July 27, 2017 19:30
-
-
Save neciu/987f68d0f4c9c941b3c28b2d7da27e8e to your computer and use it in GitHub Desktop.
[Your last ESLint config] .eslintrc.js
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: ['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