Skip to content

Commit

Permalink
chore(release): 95.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-akait committed Dec 24, 2018
1 parent c3084e6 commit cec4934
Show file tree
Hide file tree
Showing 5 changed files with 1,825 additions and 3,232 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ All notable changes to this project will be documented in this file.
This project adheres to [Semantic Versioning](http://semver.org). Except add new
rule (it is breaking changed by default).

## 95.0.0 - 2018-12-24

- Added: `no-useless-catch` rule.
- Chore: minimum require `eslint` version is now `^5.11.0`.

## 94.0.0 - 2018-12-11

- Changed: move `unicorn` rules into `esnext` preset.
Expand Down
8 changes: 2 additions & 6 deletions __tests__/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,8 @@ test("should all configs are present in exports", t => {
const configDir = path.resolve(__dirname, "../lib/config");
let files = [];

try {
// eslint-disable-next-line no-sync
files = fs.readdirSync(configDir);
} catch (error) {
throw error;
}
// eslint-disable-next-line no-sync
files = fs.readdirSync(configDir);

const actual = files
.filter(resource => resource !== ".eslintrc.js" && resource !== "rules")
Expand Down
2 changes: 2 additions & 0 deletions lib/config/rules/best-practices.js
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,8 @@ module.exports = {
"no-unused-labels": "error",
// Disallow unnecessary .call() and .apply()
"no-useless-call": "error",
// Disallow unnecessary `catch` clauses
"no-useless-catch": "error",
// Disallow unnecessary concatenation of literals or template literals
"no-useless-concat": "error",
// Disallow unnecessary usage of escape character
Expand Down
Loading

0 comments on commit cec4934

Please sign in to comment.