monaco-css-linter
Advanced tools
Comparing version 1.0.2 to 1.0.3
@@ -14,2 +14,4 @@ "use strict"; | ||
const code = this.editor.getValue(); | ||
if (code === '') | ||
return; | ||
const languageID = (_a = this.editor.getModel()) === null || _a === void 0 ? void 0 : _a.getLanguageId(); | ||
@@ -19,3 +21,3 @@ if (languageID === 'css') { | ||
if (model === null) { | ||
throw new Error("Your model still does't exist."); | ||
throw new Error("Your model still doesn't exist."); | ||
} | ||
@@ -22,0 +24,0 @@ const monacoLinter = new CSSMonacoMarks_1.CSSMonacoMarks(code, this.options, model); |
{ | ||
"name": "monaco-css-linter", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "Simple CSS Linter for the Monaco Editor.", | ||
@@ -11,2 +11,5 @@ "main": "./lib/index.js", | ||
"scripts": { | ||
"build": "npx tsc", | ||
"build-demo": "webpack --mode=production", | ||
"start-demo": "webpack -w --mode=development", | ||
"test": "echo \"Error: no test specified\" && exit 1" | ||
@@ -37,4 +40,9 @@ }, | ||
"devDependencies": { | ||
"typescript": "^4.7.4" | ||
"@babel/core": "^7.19.1", | ||
"@babel/preset-env": "^7.19.1", | ||
"babel-loader": "^8.2.5", | ||
"typescript": "^4.8.3", | ||
"webpack": "^5.74.0", | ||
"webpack-cli": "^4.10.0" | ||
} | ||
} | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
9959
120
6