Skip to content

Commit

Permalink
Update rule set (#22)
Browse files Browse the repository at this point in the history
  • Loading branch information
tclindner authored Jun 9, 2018
1 parent d01ef7a commit 8692e56
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 9 deletions.
15 changes: 15 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,21 @@ This project adheres to [Semantic Versioning](http://semver.org/).

### Removed

## [3.1.0] - 2018-06-09
### Added
* Added `max-lines` to test overrides.

### Changed
* Updated `array-bracket-newline` to `consistent`
* Updated `array-element-newline` to `multiline`
* Updated `object-curly-newline` for `ObjectExpression` to `consistent`

### Removed
* `no-magic-numbers`

Added one new rule from ESLint v4.12.0.
* [implicit-arrow-linebreak](http://eslint.org/docs/rules/implicit-arrow-linebreak)

## [3.0.0] - 2018-05-12
### Added
* Disabled `id-length`, `newline-after-var`, and `no-process-env` for tests.
Expand Down
9 changes: 4 additions & 5 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ module.exports = {
},
rules: {
'accessor-pairs': 'error',
'array-bracket-newline': ['error', {multiline: true, minItems: 3}],
'array-bracket-newline': ['error', 'consistent'],
'array-bracket-spacing': ['error', 'never'],
'array-callback-return': 'error',
'array-element-newline': ['error', {minItems: 3}],
'array-element-newline': ['error', {multiline: true}],
'arrow-body-style': ['error', 'as-needed'],
'arrow-parens': ['error', 'always'],
'arrow-spacing': ['error', {
Expand Down Expand Up @@ -147,7 +147,6 @@ module.exports = {
'no-lone-blocks': 'error',
'no-lonely-if': 'error',
'no-loop-func': 'error',
'no-magic-numbers': ['error', {ignoreArrayIndexes: true}],
'no-mixed-operators': ['error', {
groups: [
['+', '-', '*', '/', '%', '**'],
Expand Down Expand Up @@ -224,7 +223,7 @@ module.exports = {
'no-whitespace-before-property': 'error',
'no-with': 'error',
'object-curly-newline': ['error', {
ObjectExpression: {minProperties: 0, multiline: true},
ObjectExpression: {consistent: true},
ObjectPattern: 'never'
}],
'object-curly-spacing': ['error', 'never'],
Expand Down Expand Up @@ -308,10 +307,10 @@ module.exports = {
'array-bracket-newline': 'off',
'array-element-newline': 'off',
'id-length': 'off',
'max-lines': 'off',
'max-nested-callbacks': 'off',
'max-statements': 'off',
'newline-after-var': 'off',
'no-magic-numbers': 'off',
'no-process-env': 'off',
'no-unused-expressions': 'off',
'no-unused-vars': 'off',
Expand Down
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "eslint-config-tc",
"version": "3.0.0",
"version": "3.1.0",
"description": "ESLint shareable config for JavaScript projects",
"keywords": [
"eslintconfig",
Expand Down Expand Up @@ -33,9 +33,9 @@
"eslint": "^4.19.1",
"eslint-formatter-pretty": "^1.3.0",
"is-plain-obj": "^1.1.0",
"mocha": "^5.1.1",
"npm-package-json-lint": "^3.0.0",
"npm-package-json-lint-config-tc": "^2.0.0",
"mocha": "^5.2.0",
"npm-package-json-lint": "^3.1.0",
"npm-package-json-lint-config-tc": "^2.1.0",
"temp-write": "^3.4.0"
},
"peerDependencies": {
Expand Down

0 comments on commit 8692e56

Please sign in to comment.