Skip to content

Commit

Permalink
fix linter
Browse files Browse the repository at this point in the history
  • Loading branch information
Harutyun Amirjanyan committed Jan 28, 2025
1 parent aea3108 commit 02c7a4a
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 8 deletions.
3 changes: 2 additions & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,5 @@ demo/
api/
**/* *
**/node_modules
0*
0*
esm-resolver.js
3 changes: 1 addition & 2 deletions Makefile.dryice.js
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ function demo() {
source = source.replace(/( |^)require\(/gm, "$1ace.require(");
}
source = source.replace(/"\.\.\/build\//g, function(e) {
console.log(e); return '"../';
return '"../';
});
return source;
}
Expand Down Expand Up @@ -668,7 +668,6 @@ function extractCss(callback) {
else
imageName = name + "-" + imageCounter + ".png";
images[imageName] = buffer;
console.log("url(\"" + directory + "/" + imageName + "\")");
return "url(\"" + directory + "/" + imageName + "\")";
}
);
Expand Down
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@
},
"devDependencies": {
"amd-loader": "~0.0.4",
"architect-build": "https://github.com/c9/architect-build/tarball/43a6fdeffe",
"architect-build": "0.1.1",
"async": "1.5.x",
"mkdirp": "0.3.0",
"asyncjs": "~0.0.12",
"dryice": "0.4.11",
"eslint": "^8.20.0",
Expand Down
2 changes: 2 additions & 0 deletions src/lib/event.js
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,9 @@ exports.onIdle = function(cb, timeout) {
}, timeout);
};

/**@type {null | ReturnType<typeof setTimeout>}*/
exports.$idleBlockId = null;
/** @arg [delay] {null | number} */
exports.blockIdle = function(delay) {
if (exports.$idleBlockId)
clearTimeout(exports.$idleBlockId);
Expand Down
4 changes: 2 additions & 2 deletions tool/ace_declaration_generator.js
Original file line number Diff line number Diff line change
Expand Up @@ -344,8 +344,8 @@ function fixDeclaration(content, aceNamespacePath) {
modules.forEach(key => {
const newSourceFile = context.factory.updateSourceFile(sourceFile, moduleOutputs[key]);
const dirPath = path.dirname(aceNamespacePath.replace("ace-internal", "ace"));
if (!fs.existsSync(dirPath)) {
fs.mkdirSync(dirPath);
if (!fs.existsSync(dirPath + "/types")) {
fs.mkdirSync(dirPath + "/types");
}
const outputName = key === "ace" ? `${dirPath}/ace.d.ts` : `${dirPath}/types/ace-${key}.d.ts`;
finalDeclarations.push(outputName);
Expand Down
4 changes: 2 additions & 2 deletions types/ace-lib.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,8 @@ declare module "ace-code/src/lib/event" {
export function nextTick(callback: any, win: any): void;
export const $idleBlocked: boolean;
export function onIdle(cb: CallableFunction, timeout: number): ReturnType<typeof setTimeout>;
export const $idleBlockId: number;
export function blockIdle(delay: any): void;
export const $idleBlockId: null | ReturnType<typeof setTimeout>;
export function blockIdle(delay?: null | number): void;
export const nextFrame: any;
}
declare module "ace-code/src/lib/event_emitter" {
Expand Down

0 comments on commit 02c7a4a

Please sign in to comment.