Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion configs/javascript.js
Original file line number Diff line number Diff line change
Expand Up @@ -1016,7 +1016,7 @@ const unicornRules = {
// No need
// "unicorn/prevent-abbreviations": "error",

"unicorn/relative-url-style": "error",
"unicorn/relative-url-style": ["error", "always"],

// No need
// "unicorn/require-array-join-separator": "error",
Expand Down
4 changes: 3 additions & 1 deletion configs/markdown.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ async function getMarkdownRecommendedConfig() {
},
},
rules: {
"id-length": "off",

strict: "off",

// For different examples
Expand Down Expand Up @@ -70,7 +72,7 @@ async function getMarkdownRecommendedConfig() {
"n/no-unpublished-import": "off",

// Allow to use any ES builtins in documentation
"m/no-unsupported-features/es-builtins": "off",
"n/no-unsupported-features/es-builtins": "off",

// Allow to use any ES syntax in documentation
"n/no-unsupported-features/es-syntax": "off",
Expand Down
4 changes: 2 additions & 2 deletions validation/my-ts-code.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ const isFunction = typeof readFileSync === "function";

getSomething(isFunction);

const myPath: PathLike = new URL("file.txt", import.meta.url);
const myPath2: PathOrFileDescriptor = new URL("file.text", import.meta.url);
const myPath: PathLike = new URL("./file.txt", import.meta.url);
const myPath2: PathOrFileDescriptor = new URL("./file.text", import.meta.url);
const myTime: TimeLike = new Date();

getSomething(myPath);
Expand Down
2 changes: 1 addition & 1 deletion validation/universal/code.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ async function getRandomNumbers() {
let content;

try {
content = await readFile(new URL("file.txt", import.meta.url));
content = await readFile(new URL("./file.txt", import.meta.url));
} catch (err) {
throw new Error("Error fetching data", { cause: err });
}
Expand Down