Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
davidchambers committed Jan 8, 2024
1 parent 9b6545d commit 6c4eac6
Show file tree
Hide file tree
Showing 6 changed files with 247 additions and 313 deletions.
6 changes: 2 additions & 4 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,8 @@
"extends": ["./node_modules/sanctuary-style/eslint.json"],
"overrides": [
{
"files": ["*.md"],
"rules": {
"no-undef": ["off"]
}
"files": ["index.js"],
"globals": {"define": "readonly", "module": "readonly", "require": "readonly", "self": "readonly"}
}
]
}
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
/.nyc_output/
/coverage/
/node_modules/
3 changes: 2 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,15 @@

'use strict';

/* istanbul ignore else */
/* c8 ignore start */
if (typeof module === 'object' && typeof module.exports === 'object') {
module.exports = f (require ('sanctuary-def'));
} else if (typeof define === 'function' && define.amd != null) {
define (['sanctuary-def'], f);
} else {
self.sanctuaryInt = f (self.sanctuaryDef);
}
/* c8 ignore stop */

}) ($ => {

Expand Down
7 changes: 2 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
},
"devDependencies": {
"jsverify": "0.8.x",
"sanctuary-scripts": "6.0.x",
"sanctuary-scripts": "7.0.x",
"sanctuary-show": "3.0.x",
"sanctuary-type-classes": "13.0.x"
},
Expand All @@ -27,8 +27,5 @@
"/README.md",
"/index.js",
"/package.json"
],
"mocha": {
"ui": "tdd"
}
]
}
4 changes: 3 additions & 1 deletion test/.eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,7 @@
"extends": ["../node_modules/sanctuary-style/eslint.json"],
"parserOptions": {"sourceType": "module"},
"env": {"node": true},
"globals": {"suite": "readonly", "test": "readonly"}
"rules": {
"max-len": ["off"]
}
}
Loading

0 comments on commit 6c4eac6

Please sign in to comment.