Skip to content
This repository has been archived by the owner on Oct 1, 2023. It is now read-only.

Commit

Permalink
Update configs and move from nyc to c8 coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
rosingrind committed Feb 22, 2023
1 parent 03a20eb commit 0bf33ce
Show file tree
Hide file tree
Showing 13 changed files with 79 additions and 627 deletions.
8 changes: 8 additions & 0 deletions .c8rc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"src": "src",
"reporter": [
"text",
"html"
],
"all": true
}
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
/easing
/coverage
.*
!.*rc.*
!.*rc
!.github
CODEOWNERS
Expand Down
4 changes: 1 addition & 3 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,8 @@
"sourceType": "module",
"project": "./tsconfig.json"
},
"plugins": ["@typescript-eslint", "react", "mocha", "istanbul"],
"plugins": ["@typescript-eslint", "react", "mocha"],
"rules": {
"istanbul/no-ignore-file": "warn",
"istanbul/prefer-ignore-reason": "warn",
"max-len": "warn",
"no-nested-ternary": "warn"
}
Expand Down
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
/node_modules
/dist
/easing
/.nyc_output
/coverage
4 changes: 1 addition & 3 deletions .idea/prettier.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 11 additions & 0 deletions .mocharc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"require": [
"ts-node/register",
"source-map-support/register"
],
"node-option": [
"loader=ts-node/esm",
"experimental-specifier-resolution=node"
],
"recursive": true
}
7 changes: 0 additions & 7 deletions .mocharc.yml

This file was deleted.

1 change: 0 additions & 1 deletion .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,4 @@
/tsconfig.json
/src
/test
/.nyc_output
/coverage
4 changes: 0 additions & 4 deletions .nycrc.yml

This file was deleted.

1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
/easing
/coverage
.*
!.*rc.*
!.*rc
!.github
CODEOWNERS
Expand Down
1 change: 1 addition & 0 deletions .stylelintignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
/easing
/coverage
.*
!.*rc.*
!.*rc
!.github
CODEOWNERS
Expand Down
7 changes: 3 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
"style": "yarn run style-check --fix",
"style-check": "stylelint \"{**/*,*}.{scss,sass}\"",
"start": "rollup -c -w --configPlugin typescript",
"test": "mocha 'test/**'",
"coverage": "nyc yarn run test",
"test": "mocha --reporter min 'test/**'",
"coverage": "c8 yarn run test",
"all": "yarn run build && yarn run test",
"yalc": "yalc publish --sig --push"
},
Expand All @@ -33,18 +33,17 @@
"@typescript-eslint/eslint-plugin": "^5.13.0",
"@typescript-eslint/parser": "^5.0.0",
"autoprefixer": "^10.4.13",
"c8": "^7.13.0",
"chai": "^4.3.7",
"eslint": "^7.32.0 || ^8.2.0",
"eslint-config-airbnb": "^19.0.4",
"eslint-config-airbnb-typescript": "^17.0.0",
"eslint-plugin-import": "^2.25.3",
"eslint-plugin-istanbul": "^0.1.2",
"eslint-plugin-jsx-a11y": "^6.5.1",
"eslint-plugin-mocha": "^10.1.0",
"eslint-plugin-react": "^7.28.0",
"eslint-plugin-react-hooks": "^4.3.0",
"mocha": "^10.2.0",
"nyc": "^15.1.0",
"postcss": "^8.4.21",
"prettier": "^2.8.4",
"react": "^18.2.0",
Expand Down
Loading

0 comments on commit 0bf33ce

Please sign in to comment.