Skip to content

Commit

Permalink
use ES modules
Browse files Browse the repository at this point in the history
  • Loading branch information
davidchambers committed Dec 14, 2023
1 parent 0d4281e commit 485a3a0
Show file tree
Hide file tree
Showing 8 changed files with 509 additions and 549 deletions.
1 change: 0 additions & 1 deletion .config
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
repo-owner = sanctuary-js
repo-name = sanctuary-descending
contributing-file = .github/CONTRIBUTING.md
module-type = commonjs
9 changes: 7 additions & 2 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,18 @@
{
"root": true,
"extends": ["./node_modules/sanctuary-style/eslint.json"],
"parserOptions": {"sourceType": "module"},
"rules": {
"comma-dangle": ["off"]
},
"overrides": [
{
"files": ["*.md"],
"globals": {"$": "readonly", "Descending": "readonly", "S": "readonly", "Z": "readonly"}
"globals": {"$": "readonly", "Descending": "readonly", "S": "readonly", "Useless": "readonly", "Z": "readonly"},
"rules": {
"no-unused-vars": ["error", {"varsIgnorePattern": "^([$]|S|Useless)$"}],
"semi": ["off"]
}
},
{
"files": ["index.js"],
Expand All @@ -18,7 +23,7 @@
},
{
"files": ["test/**/*.js"],
"parserOptions": {"ecmaVersion": 2020, "sourceType": "module"}
"parserOptions": {"ecmaVersion": 2020}
}
]
}
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/
Loading

0 comments on commit 485a3a0

Please sign in to comment.