Skip to content

Commit

Permalink
fix(rules): 3 rules was eased
Browse files Browse the repository at this point in the history
max-len, newline-per-chained-call, no-magic-numbers
see readme or config for details
  • Loading branch information
valorkin committed Feb 26, 2016
1 parent 8bd6ebd commit 4e9df6a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@
"no-labels": 2,
"no-lone-blocks": 2,
"no-loop-func": 2,
"no-magic-numbers": 2,
"no-magic-numbers": [2, {"ignoreArrayIndexes": true, "enforceConst": true }],
"no-multi-spaces": 2,
"no-multi-str": 2,
"no-native-reassign": 2,
Expand Down Expand Up @@ -176,14 +176,14 @@
],
"lines-around-comment": 2,
"max-depth": 2,
"max-len": 2,
"max-len": [2, 120],
"max-nested-callbacks": 2,
"max-params": 2,
"max-statements": 2,
"new-cap": 2,
"new-parens": 2,
"newline-after-var": 2,
"newline-per-chained-call": 2,
"newline-per-chained-call": [2, {"ignoreChainWithDepth": 3}],
"no-array-constructor": 2,
"no-bitwise": 2,
"no-continue": 2,
Expand Down
3 changes: 3 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@

## What is tweaked
- `indent` - 2 spaces rulezzz!
- `max-len` - extended to 120 chars
- `newline-per-chained-call` - extended `ignoreChainWithDepth` to 3
- `eqeqeq` - `smart` mode enabled
- `dot-location` - `property` mode enabled
- `no-implicit-coercion` - boolean implicit coercion enabled
Expand All @@ -37,6 +39,7 @@
- `one-var` - `never` use one `var|let|const` per block
- `padded-blocks` - `never` add useless padding
- `quote-props` - quote properties only `as-needed` and `keywords`
- `no-magic-numbers` - enabled `ignoreArrayIndexes` and `enforceConst`

## Contribution
- what I really appreciate is configs for IDEs
Expand Down

0 comments on commit 4e9df6a

Please sign in to comment.