-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update dependencies, enable react-hooks plugin and customize rules
- Loading branch information
1 parent
efa9de1
commit d162081
Showing
4 changed files
with
69 additions
and
58 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,34 @@ | ||
module.exports = { | ||
parserOptions: { | ||
ecmaVersion: 9, | ||
ecmaVersion: 11, | ||
sourceType: 'module' | ||
}, | ||
extends: [ | ||
'airbnb', | ||
'plugin:promise/recommended' | ||
'plugin:promise/recommended', | ||
|
||
], | ||
plugins: [ | ||
'react-hooks' | ||
], | ||
rules: { | ||
'import/order': ['error', { | ||
'groups': ['builtin', 'external', 'internal', 'parent', 'sibling', 'index'] | ||
}], | ||
'no-multiple-empty-lines': ['error', { 'max': 1 }], | ||
'object-curly-newline': ['error', { | ||
'multiline': true, | ||
'minProperties': 2, | ||
'consistent': true | ||
}], | ||
'object-curly-spacing': ['error', 'always'], | ||
'object-property-newline': ['error', { 'allowMultiplePropertiesPerLine': false }], | ||
'sort-keys': ['error', 'asc'], | ||
'no-undef-init': ['error'] | ||
'no-multiple-empty-lines': ['error', { 'max': 1 }], | ||
'no-undef-init': ['error'], | ||
'promise/catch-or-return': ['off'], | ||
'promise/no-nesting': ['off'], | ||
'react/jsx-props-no-spreading': ['off'], | ||
'react-hooks/exhaustive-deps': ['error'], | ||
'react-hooks/rules-of-hooks': ['error'], | ||
'sort-keys': ['error', 'asc'] | ||
} | ||
}; |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains 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