Skip to content

Commit

Permalink
Merge pull request #3 from haensl/2
Browse files Browse the repository at this point in the history
Update object-curly-newline rule. Update indent rule. Remove newline-…
  • Loading branch information
haensl authored Nov 22, 2018
2 parents 766b0c4 + e6d42ba commit 31fdaa7
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 6 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,7 @@
## 1.1.0
* Update object-curly-newline rule.
* Update indent rule.
* Remove newline-per-chained-call rule.

## 1.0.0
* Initial release.
18 changes: 13 additions & 5 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,18 @@ module.exports = {
'object-curly-newline': [
'error',
{
'minProperties': 2
'ObjectExpression': {
'multiline': true,
'consistent': true,
'minProperties': 2
},
'ImportDeclaration': 'never',
'ExportDeclaration': {
'multiline': true
},
'ObjectPattern': {
'multiline': true
}
}
],
'object-curly-spacing': [
Expand Down Expand Up @@ -95,7 +106,7 @@ module.exports = {
2,
{
'SwitchCase': 1,
'MemberExpression': 1,
'MemberExpression': 'off',
'ArrayExpression': 1,
'CallExpression': {
'arguments': 1
Expand All @@ -106,9 +117,6 @@ module.exports = {
'new-parens': [
'error'
],
'newline-per-chained-call': [
'error'
],
'no-multiple-empty-lines': [
'error',
{
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@haensl/eslint-config",
"version": "1.0.0",
"version": "1.1.0",
"description": "Default ESLint configuration of HP Dietz.",
"main": "index.js",
"publishConfig": {
Expand Down

0 comments on commit 31fdaa7

Please sign in to comment.