aboutsummaryrefslogtreecommitdiffstats
path: root/config/fileURLToDirname.js
diff options
context:
space:
mode:
authorLibravatar Kristóf Marussy <kristof@marussy.com>2022-01-09 22:16:29 +0100
committerLibravatar Kristóf Marussy <kristof@marussy.com>2022-01-09 22:17:26 +0100
commitfb7118ff1c8f0dcd61f15e51b193512283d83fa1 (patch)
tree721cee6a64b44a56b7f05f39750a65cda5fb4ef6 /config/fileURLToDirname.js
parentbuild: Add eslint-plugin-jest (diff)
downloadsophie-fb7118ff1c8f0dcd61f15e51b193512283d83fa1.tar.gz
sophie-fb7118ff1c8f0dcd61f15e51b193512283d83fa1.tar.zst
sophie-fb7118ff1c8f0dcd61f15e51b193512283d83fa1.zip
build: Add eslint-plugin-unicorn
Signed-off-by: Kristóf Marussy <kristof@marussy.com>
Diffstat (limited to 'config/fileURLToDirname.js')
-rw-r--r--config/fileURLToDirname.js10
1 files changed, 0 insertions, 10 deletions
diff --git a/config/fileURLToDirname.js b/config/fileURLToDirname.js
deleted file mode 100644
index 70654cb..0000000
--- a/config/fileURLToDirname.js
+++ /dev/null
@@ -1,10 +0,0 @@
1import { dirname } from 'path';
2import { fileURLToPath } from 'url';
3
4/**
5 * @param {string} url
6 * @returns {string}
7 */
8export default function fileURLToDirname(url) {
9 return dirname(fileURLToPath(url));
10}