Skip to content

Commit

Permalink
style: add prettier autoformat by eslint (ethersphere#66)
Browse files Browse the repository at this point in the history
  • Loading branch information
nugaon authored Jan 8, 2021
1 parent 4c3043b commit 8092a38
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
8 changes: 5 additions & 3 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module.exports = {
extends: ['plugin:@typescript-eslint/recommended'],
extends: ['plugin:@typescript-eslint/recommended', 'prettier', 'plugin:prettier/recommended'],
parserOptions: {
sourceType: 'module',
ecmaVersion: 2018,
Expand Down Expand Up @@ -44,7 +44,8 @@ module.exports = {
'max-depth': ['error', 4],
'require-await': 'error',
'space-before-function-paren': [
'error', {
'error',
{
anonymous: 'never',
named: 'never',
asyncArrow: 'always',
Expand All @@ -65,7 +66,8 @@ module.exports = {
'@typescript-eslint/no-useless-constructor': 'error',
'@typescript-eslint/no-unused-expressions': 'error',
'@typescript-eslint/member-delimiter-style': [
'error', {
'error',
{
multiline: {
delimiter: 'none',
requireLast: true,
Expand Down
5 changes: 3 additions & 2 deletions .prettierrc
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,11 @@
"tabWidth": 2,
"useTabs": false,
"bracketSpacing": true,
"quoteProps": "consistent",
"semi": false,
"singleQuote": true,
"quoteProps": "as-needed",
"trailingComma": "all",
"endOfLine": "lf",
"arrowParens": "avoid"
"arrowParens": "avoid",
"proseWrap": "always"
}

0 comments on commit 8092a38

Please sign in to comment.