Skip to content

Commit

Permalink
docs: Add links to opinion rules
Browse files Browse the repository at this point in the history
  • Loading branch information
Jan Krems committed Aug 25, 2017
1 parent f4d8eb6 commit f9cdaaf
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions lib/rules/opinions.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,30 @@
* If it can't be --fix'ed, it doesn't belong in here.
*/
module.exports = {
/**
* Everything reported by prettier will be fixed by prettier.
*
* See: https://github.com/prettier/eslint-plugin-prettier
*/
'prettier/prettier': [
'error',
{
singleQuote: true,
trailingComma: 'es5',
},
],

/**
* After 'use strict' there's a newline.
*
* See: https://eslint.org/docs/rules/lines-around-directive
*/
'lines-around-directive': ['error', 'always'],

/**
* After the last require/import statement, there's a newline.
*
* See: https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/newline-after-import.md
*/
'import/newline-after-import': 'error',
};

0 comments on commit f9cdaaf

Please sign in to comment.