Skip to content

Commit

Permalink
Update eslint.config.js
Browse files Browse the repository at this point in the history
  • Loading branch information
techxplorer committed Sep 22, 2024
1 parent eed50e7 commit 98f74ab
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,11 +66,27 @@ const rulesConfig = {
}
};

const noConsoleConfig = {
files: [
"src/**/*.js",
"tests/**/*.js"
],
ignores: [
"src/commands/*.js"
],
rules: {
"no-console": [
"warn"
]
}
};

const config = [
ignoresConfig,
filesConfig,
rulesConfig,
globalsConfig,
noConsoleConfig,
pluginJs.configs.recommended,
jqueryConfig,
...jsdocConfig
Expand Down

0 comments on commit 98f74ab

Please sign in to comment.