Skip to content

Commit

Permalink
New rules (#28)
Browse files Browse the repository at this point in the history
* Add require-atomic-updates

Closes #26

* Add no-async-promise-executor rule

Close #27
  • Loading branch information
tclindner authored Aug 5, 2018
1 parent 95663e3 commit 01b372c
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 4 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,12 @@ This project adheres to [Semantic Versioning](http://semver.org/).

### Removed

## [4.2.0] - 2018-08-05
### Added
Added two new rules from ESLint v5.3.0.
* [require-atomic-updates](https://eslint.org/docs/rules/require-atomic-updates)
* [no-async-promise-executor](https://eslint.org/docs/rules/no-async-promise-executor)

## [4.1.0] - 2018-07-14
### Removed
* Removed deprecated ESLint rule, `no-catch-shadow`
Expand Down
2 changes: 2 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ module.exports = {
'new-parens': 'error',
'newline-per-chained-call': ['error', {ignoreChainWithDepth: 4}],
'no-array-constructor': 'error',
'no-async-promise-executor': 'error',
'no-await-in-loop': 'error',
'no-bitwise': 'error',
'no-buffer-constructor': 'error',
Expand Down Expand Up @@ -267,6 +268,7 @@ module.exports = {
ClassDeclaration: false
}
}],
'require-atomic-updates': 'error',
'semi': ['error', 'always'],
'semi-spacing': ['error', {
before: false,
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": "4.1.0",
"version": "4.2.0",
"description": "ESLint shareable config for JavaScript projects",
"keywords": [
"eslintconfig",
Expand Down Expand Up @@ -30,16 +30,16 @@
},
"devDependencies": {
"chai": "^4.1.2",
"eslint": "^5.1.0",
"eslint": "^5.3.0",
"eslint-formatter-pretty": "^1.3.0",
"is-plain-obj": "^1.1.0",
"mocha": "^5.2.0",
"npm-package-json-lint": "^3.2.0",
"npm-package-json-lint": "^3.3.0",
"npm-package-json-lint-config-tc": "^2.1.0",
"temp-write": "^3.4.0"
},
"peerDependencies": {
"eslint": "^5.1.0"
"eslint": "^5.3.0"
},
"engines": {
"node": ">=6.0.0",
Expand Down

0 comments on commit 01b372c

Please sign in to comment.