Skip to content
This repository was archived by the owner on Mar 19, 2024. It is now read-only.

Commit 6cc2972

Browse files
Merge pull request #54 from nhsuk/fix/code-coverage
Fix/code coverage
2 parents 7803507 + b23c820 commit 6cc2972

File tree

5 files changed

+15
-9
lines changed

5 files changed

+15
-9
lines changed

.eslintrc.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ module.exports = {
5151
object: true,
5252
},
5353
{
54-
enforceForRenamedProperties: true,
54+
enforceForRenamedProperties: false,
5555
},
5656
],
5757
'sort-keys': [

.nyc.yml

Lines changed: 0 additions & 6 deletions
This file was deleted.

.nycrc.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"check-coverage": true,
3+
"branches": 90,
4+
"lines": 90,
5+
"functions": 90,
6+
"statements": 90
7+
}

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
0.23.0 / 2019-10-10
2+
===================
3+
- Do not enforce destructuring option for renamed properties
4+
- Fix code coverage check
5+
16
0.22.0 / 2019-10-08
27
===================
38
- Disallow empty lines at BOF and EOF

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
{
22
"name": "eslint-config-nhsuk",
3-
"version": "0.22.0",
3+
"version": "0.23.0",
44
"description": "ESLint config. Primarily intended for use within NHSUK projects.",
55
"main": ".eslintrc.js",
66
"scripts": {
77
"git-hook": "yarn lint && yarn test",
88
"lint": "yarn eslint .",
9-
"test": "nyc mocha --exit --recursive test",
9+
"test": "nyc --nycrc-path .nycrc.json mocha --exit --recursive test",
1010
"test-watch": "yarn test --reporter min --watch",
1111
"test-with-coverage": "nyc --reporter=lcov --reporter=cobertura mocha --exit --recursive test --reporter mocha-junit-reporter"
1212
},

0 commit comments

Comments
 (0)