diff --git a/CHANGELOG.md b/CHANGELOG.md index 31d4267..bf7130f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,11 @@ and this project adheres to [Semantic Versioning](http://semver.org/). ## [Unreleased] +## [2.2.0] - 2018-02-01 +### Added +- `no-lonely-if` +- `no-useless-return` + ## [2.1.0] - 2017-10-10 ### Added - `comma-dangle` @@ -21,6 +26,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/). ### Added - initialize this project +[2.2.0]: https://github.com/super-fe/eslint-config-superfe-rn/compare/2.1.0...2.2.0 [2.1.0]: https://github.com/super-fe/eslint-config-superfe-rn/compare/2.0.0...2.1.0 [2.0.0]: https://github.com/super-fe/eslint-config-superfe-rn/compare/1.0.0...2.0.0 -[Unreleased]: https://github.com/super-fe/eslint-config-superfe-rn/compare/2.1.0...HEAD +[Unreleased]: https://github.com/super-fe/eslint-config-superfe-rn/compare/2.2.0...HEAD diff --git a/README.md b/README.md index 6d5f05f..05786c0 100644 --- a/README.md +++ b/README.md @@ -6,13 +6,13 @@ Eslint configration for Super-FE's HTML-Native apps. ## usage ```sh -npm install babel-eslint eslint-config-superfe-rn eslint-plugin-html eslint-plugin-babel eslint-plugin-promise --save-dev +npm install babel-eslint eslint-config-superfe-hn eslint-plugin-html eslint-plugin-babel eslint-plugin-promise --save-dev ``` ```js // .eslintrc { - "extends": ["superfe-rn"] + "extends": ["superfe-hn"] } ``` diff --git a/eslint.json b/eslint.json index 01478a0..06ef755 100644 --- a/eslint.json +++ b/eslint.json @@ -40,6 +40,8 @@ "no-void": 2, "no-proto": 2, "no-with": 2, + "no-lonely-if": 2, + "no-useless-return": 2, "prefer-promise-reject-errors": 2, "no-param-reassign": 2, "no-unused-vars": 2, diff --git a/package.json b/package.json index 8bf7d24..39a60c1 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "eslint-config-superfe-hn", - "version": "2.1.0", + "version": "2.2.0", "description": "Eslint configration for Super-FE's HTML-Native apps", "scripts": { "test": "eslint index.js -c eslint.json",