Skip to content

Commit c5f7e7b

Browse files
committed
Update project linting
1 parent 8b680c1 commit c5f7e7b

File tree

5 files changed

+4
-8
lines changed

5 files changed

+4
-8
lines changed

.eslintrc.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@
145145
"jsdoc/check-indentation": [ "error" ],
146146
"no-bitwise": [ "error" ],
147147
"no-caller": [ "error" ],
148-
"no-console": [ "error" ],
148+
"no-console": ["error", { "allow": ["warn", "error"] }],
149149
"no-duplicate-imports": [ "error" ],
150150
"no-empty": "error",
151151
"no-eval": [ "error" ],

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@proangular/ngx-gist",
3-
"version": "1.0.5",
3+
"version": "1.0.6",
44
"description": "An Angular Material and HighlighJs styled display box for GitHub gist and local code snippets.",
55
"author": "Pro Angular <webmaster@proangular.com>",
66
"homepage": "https://www.proangular.com",

src/app/public/ngx-gist-line-numbers.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ export class NgxGistLineNumbersService {
3636
this.document.defaultView?.hljs?.initLineNumbersOnLoad!();
3737
});
3838
} catch (e: unknown) {
39-
console.log(e);
39+
console.error(e);
4040
} finally {
4141
this.isLoaded = true;
4242
}

src/app/public/ngx-gist-theme.service.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,18 +31,15 @@ export class NgxGistThemeService {
3131
const hljsThemeLinkEl = this.document.getElementById(hljsThemeId);
3232
if (hljsThemeLinkEl && hilightJsTheme === 'default' && !materialTheme) {
3333
// Default theme already in use, return.
34-
console.log('returned');
3534
return;
3635
} else if (
3736
hljsThemeLinkEl &&
3837
hilightJsTheme !== 'default' &&
3938
!materialTheme
4039
) {
4140
// Override previously used theme, but remove it first.
42-
console.log('remove');
4341
this.document.head.removeChild(hljsThemeLinkEl);
4442
}
45-
console.log('info: ', materialTheme, hilightJsTheme);
4643
if (materialTheme) {
4744
// !!! Update version when needed.
4845
const version = '14.1.0';
@@ -53,7 +50,6 @@ export class NgxGistThemeService {
5350
this.importElMaterialTheme.id = materialThemeId;
5451
this.document.head.appendChild(this.importElMaterialTheme);
5552
} else if (hilightJsTheme) {
56-
console.log('apply', hilightJsTheme);
5753
// !!! Update version when needed.
5854
const version = '11.6.0';
5955
const url = `highlight.js@${version}/styles/${hilightJsTheme}.css`;

0 commit comments

Comments
 (0)