Skip to content

Commit

Permalink
Small improvement to our default eslint configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
denniscoorn committed Mar 7, 2019
1 parent e93c394 commit b6a9eef
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
16 changes: 11 additions & 5 deletions packages/eslint-config-default/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ module.exports = {
'arrow-body-style': 'off',
'class-methods-use-this': 'off',
'max-len': [2, 140, 4],
'indent': ['error', 4, {'SwitchCase': 1}],
'indent': ['error', 4, {
'SwitchCase': 1
}],
'no-continue': 'off',
'no-prototype-builtins': 'off',
'no-underscore-dangle': ['error', {
Expand All @@ -24,9 +26,13 @@ module.exports = {
'prefer-destructuring': ['error', {
'array': false
}],
'no-param-reassign': [
"error", { "props": false }
],
'operator-linebreak': 'off'
'no-param-reassign': ['error', {
'props': false
}],
'operator-linebreak': 'off',
'no-multiple-empty-lines': ['error', {
'max': 2,
'maxEOF': 1
}]
}
};
2 changes: 1 addition & 1 deletion packages/eslint-config-default/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@leviy/eslint-config-default",
"version": "1.1.1",
"version": "1.1.2",
"repository": {
"type": "git",
"url": "git+ssh://[email protected]:leviy/javascript-coding-standard.git"
Expand Down

0 comments on commit b6a9eef

Please sign in to comment.