Skip to content

Commit

Permalink
[#3] eslint disallow console.log
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuapease committed May 22, 2024
1 parent 7f91046 commit aac6b96
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion src/js/app.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
import '../css/app.css'

console.log('Hello Craft CMS Starter')
console.warn('Hello Craft CMS Starter')

0 comments on commit aac6b96

Please sign in to comment.