diff --git a/eslint.config.js b/eslint.config.js index 204209e..429db94 100644 --- a/eslint.config.js +++ b/eslint.config.js @@ -5,7 +5,11 @@ import globals from 'globals' export default [ js.configs.recommended, eslintConfigPrettier, + { + rules: { + 'no-console': ['error', { allow: ['warn', 'error'] }], + }, languageOptions: { globals: { ...globals.browser, diff --git a/src/js/app.js b/src/js/app.js index fa9f6f9..75aaa9f 100644 --- a/src/js/app.js +++ b/src/js/app.js @@ -1,3 +1,3 @@ import '../css/app.css' -console.log('Hello Craft CMS Starter') +console.warn('Hello Craft CMS Starter')