Skip to content

Commit 8692e56

Browse files
authored
Update rule set (#22)
1 parent d01ef7a commit 8692e56

File tree

3 files changed

+23
-9
lines changed

3 files changed

+23
-9
lines changed

CHANGELOG.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,21 @@ This project adheres to [Semantic Versioning](http://semver.org/).
1111

1212
### Removed
1313

14+
## [3.1.0] - 2018-06-09
15+
### Added
16+
* Added `max-lines` to test overrides.
17+
18+
### Changed
19+
* Updated `array-bracket-newline` to `consistent`
20+
* Updated `array-element-newline` to `multiline`
21+
* Updated `object-curly-newline` for `ObjectExpression` to `consistent`
22+
23+
### Removed
24+
* `no-magic-numbers`
25+
26+
Added one new rule from ESLint v4.12.0.
27+
* [implicit-arrow-linebreak](http://eslint.org/docs/rules/implicit-arrow-linebreak)
28+
1429
## [3.0.0] - 2018-05-12
1530
### Added
1631
* Disabled `id-length`, `newline-after-var`, and `no-process-env` for tests.

index.js

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ module.exports = {
1313
},
1414
rules: {
1515
'accessor-pairs': 'error',
16-
'array-bracket-newline': ['error', {multiline: true, minItems: 3}],
16+
'array-bracket-newline': ['error', 'consistent'],
1717
'array-bracket-spacing': ['error', 'never'],
1818
'array-callback-return': 'error',
19-
'array-element-newline': ['error', {minItems: 3}],
19+
'array-element-newline': ['error', {multiline: true}],
2020
'arrow-body-style': ['error', 'as-needed'],
2121
'arrow-parens': ['error', 'always'],
2222
'arrow-spacing': ['error', {
@@ -147,7 +147,6 @@ module.exports = {
147147
'no-lone-blocks': 'error',
148148
'no-lonely-if': 'error',
149149
'no-loop-func': 'error',
150-
'no-magic-numbers': ['error', {ignoreArrayIndexes: true}],
151150
'no-mixed-operators': ['error', {
152151
groups: [
153152
['+', '-', '*', '/', '%', '**'],
@@ -224,7 +223,7 @@ module.exports = {
224223
'no-whitespace-before-property': 'error',
225224
'no-with': 'error',
226225
'object-curly-newline': ['error', {
227-
ObjectExpression: {minProperties: 0, multiline: true},
226+
ObjectExpression: {consistent: true},
228227
ObjectPattern: 'never'
229228
}],
230229
'object-curly-spacing': ['error', 'never'],
@@ -308,10 +307,10 @@ module.exports = {
308307
'array-bracket-newline': 'off',
309308
'array-element-newline': 'off',
310309
'id-length': 'off',
310+
'max-lines': 'off',
311311
'max-nested-callbacks': 'off',
312312
'max-statements': 'off',
313313
'newline-after-var': 'off',
314-
'no-magic-numbers': 'off',
315314
'no-process-env': 'off',
316315
'no-unused-expressions': 'off',
317316
'no-unused-vars': 'off',

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "eslint-config-tc",
3-
"version": "3.0.0",
3+
"version": "3.1.0",
44
"description": "ESLint shareable config for JavaScript projects",
55
"keywords": [
66
"eslintconfig",
@@ -33,9 +33,9 @@
3333
"eslint": "^4.19.1",
3434
"eslint-formatter-pretty": "^1.3.0",
3535
"is-plain-obj": "^1.1.0",
36-
"mocha": "^5.1.1",
37-
"npm-package-json-lint": "^3.0.0",
38-
"npm-package-json-lint-config-tc": "^2.0.0",
36+
"mocha": "^5.2.0",
37+
"npm-package-json-lint": "^3.1.0",
38+
"npm-package-json-lint-config-tc": "^2.1.0",
3939
"temp-write": "^3.4.0"
4040
},
4141
"peerDependencies": {

0 commit comments

Comments
 (0)